[Tutor] I Need Help With Using Tkinter/Console/Creating GUIs

Steven D'Aprano steve at pearwood.info
Fri Oct 5 00:17:17 CEST 2012


On 05/10/12 07:30, tayo rotimi wrote:
> Hi,
>
> I recently started learning as a python programming 'absolute beginner'.
>  I have Python 3.2 installed on my laptop, and I have learned to a point
>  where I need to create GUIs. I understand from the text book I am
>  reading that all I need to have access to the Tkinter toolkits in a
>  window-OS is double click on the Python icon to run Tkinter program
>directly; but I don't have Python icon on my desktop. I went to the
>program list and the relevant stuffs I have there are the IDLE (Python
>GUI) and Python (command line). Double clicking on any of these did not
>  bring out the console described for creating GUIs.

Then what did they do?


> I am in a fixed. Its either the Tkinter module is not available on my
>  Python installation or there are things I am not doing right. Please I
>  need help, I need some practical guides on how to start creating GUI.
>  Again, I have Python 3.2 installed on my system.

What operating system are you using?

Open the Python command line, and you should see a console open with
something like this:

Python 3.2.2 (default, Mar  4 2012, 10:50:33)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>> >


Type:

import tkinter

and press the Enter key. What happens? If you get an error, copy and paste
the entire traceback, not just the error message.



-- 
Steven


More information about the Tutor mailing list