Hi there
I'm new to Python an tkinter but I want to do a bigger project with that combination.
I installed Python 3.2 and PyQT and the new Eric IDe 5.5_1.
So now my question.
Where can I get an tkinter tutorial or example
The following example does not work
import tkinter
root = TK()
w = Label(..)
root.mainloop()
Does anyone know my fault?
Thanks Cyberwolf
TKInter with python 3.2
Page 1 of 15 Replies - 10367 Views - Last Post: 21 March 2011 - 12:47 PM
Replies To: TKInter with python 3.2
#2
Re: TKInter with python 3.2
Posted 27 February 2011 - 10:47 AM
Either of the following changes should get your code working:
or:
The difference is a) it's Tk, not TK, and
you either need to import classes/functions/constants/modules from the module to use them directly, or reference the module in each call.
from tkinter import * root = Tk() w = Label(..) root.mainloop()
or:
import tkinter root = tkinter.Tk() w = tkinter.Label(..) root.mainloop()
The difference is a) it's Tk, not TK, and
#3
Re: TKInter with python 3.2
Posted 03 March 2011 - 01:18 PM
Motoma, on 27 February 2011 - 10:47 AM, said:
Either of the following changes should get your code working:
or:
The difference is a) it's Tk, not TK, and
you either need to import classes/functions/constants/modules from the module to use them directly, or reference the module in each call.
from tkinter import * root = Tk() w = Label(..) root.mainloop()
or:
import tkinter root = tkinter.Tk() w = tkinter.Label(..) root.mainloop()
The difference is a) it's Tk, not TK, and
#4
Re: TKInter with python 3.2
Posted 03 March 2011 - 01:24 PM
Hi Motoma ,
thanks for your help
Cyberwolf
thanks for your help
Cyberwolf
#5
Re: TKInter with python 3.2
Posted 21 March 2011 - 02:21 AM
Hi I think i have some books you can use, they have been attached to this reply.
Attached File(s)
-
an-introduction-to-tkinter.pdf (732.61K)
Number of downloads: 1321 -
tkinter.pdf (1.04MB)
Number of downloads: 1199
#6
Re: TKInter with python 3.2
Posted 21 March 2011 - 12:47 PM
e-papa, on 21 March 2011 - 02:21 AM, said:
Hi I think i have some books you can use, they have been attached to this reply.
Hi e.papa ,
thanks for your help. I'll look into these tutorials. Do you have some experience in Gui programming with Python?
I'm asking myself useing Tkinter or using PyQT. That looks more professional then TK.
What would you prefer fpr building a nice GUI?
greeting Cyberwolf
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|