Error correction issues
Thy
-
Felice_ Posted messages 271 Status Member -
Felice_ Posted messages 271 Status Member -
Hello,
Hi everyone... as a beginner, I'm facing a serious problem: as soon as I accidentally make a typo and an error message appears, I'm stuck because I can't correct the said error, I can no longer write/delete. Is this normal?
P.S.: I'm just starting out.
Thank you in advance to those who will be kind enough to reply.
Configuration: Windows / Chrome 55.0.2883.87
Hi everyone... as a beginner, I'm facing a serious problem: as soon as I accidentally make a typo and an error message appears, I'm stuck because I can't correct the said error, I can no longer write/delete. Is this normal?
P.S.: I'm just starting out.
Thank you in advance to those who will be kind enough to reply.
Configuration: Windows / Chrome 55.0.2883.87
6 answers
-
Are you writing in console mode?
What is the error message?
To exit Python mode, you press Control + Shift + D ;-)-
Thank you very much, I'll test this... console mode? No idea! For error messages, it can be any style, my concern being able to correct them.
I just tested and it completely closed Python for me!
For your information, I’m on Windows, Python 2.7.13 if that’s important.
I also just registered, my username is Thyours... thanks to you. -
-
Exactly, and it’s at that moment that I can't correct it because I can’t fix the error: if I place the cursor on the line, I can no longer write or delete. I tried to go through edit and then undo, but nothing happens. I also tried going to the line but still the same problem.
P.S. Sorry for the informal address. -
-
-
-
tkinter is normally part of the standard libraries of Python. There is therefore nothing to install.
It is a library for creating graphical user interfaces.
In Python 2, you can write the following code in your file:# -*- coding: utf-8 -*- from Tkinter import * fenetre = Tk() etiquette = Label(fenetre, text = 'Hello') etiquette.pack() fenetre.mainloop()
In Python 3, you replace:from Tkinter import *
With:from tkinter import *
-
Well, on the console everything is fine, no errors, but nothing happens!
Like many other attempts I've made by the way... pffff... annoying! -
I have a hard time following you, no mistake, but no window opens with "Hello" written on it?
-
-
The problem is that you are using this Python IDLE which allows you to run your code directly but not a Python file. You need to go through the Windows console.