[Tkinter-discuss] Strange Error - please help

2011-01-18 Thread Helmut Jarausch
Hi, I'm new to Tkinter+Python and my very first mini-widget fails with a strange error message. I'm using Python 2.7.1 and Tcl/Tk 8.5.9 1 #!/usr/bin/python 2 # _*_ coding: latin1 _*_ 3 4 import Tkinter as Tk 5 6 class LabEntry(Tk.Entry) : 7def __init__(self,root,label,**args)

Re: [Tkinter-discuss] Strange Error - please help

2011-01-18 Thread Martin B.
V Tue, 18 Jan 2011 09:46:54 +0100 Helmut Jarausch napsáno: hi, i think on line 10, 12 must be 'column' instead 'colmn' > Hi, I'm new to Tkinter+Python and my very first mini-widget fails > with a strange error message. I'm using Python 2.7.1 and Tcl/Tk 8.5.9 > > 1 #!/usr/bin/python > 2 # _

[Tkinter-discuss] grid manager does propagate width - why?

2011-01-18 Thread Helmut Jarausch
Hi, I have two version of a simple labeled entry widget. import Tkinter as Tk class LabEntry(Tk.Entry) : def __init__(self,root,label,**args) : self.Frame= Tk.Frame(root) Lab=Tk.Label(self.Frame,text=label) Lab.grid(column=0,row=0) Tk.Entry.__init__(self,self.Frame,**args)

Re: [Tkinter-discuss] grid manager does propagate width - why?

2011-01-18 Thread Martin B.
V Tue, 18 Jan 2011 11:23:30 +0100 Helmut Jarausch napsáno: hi, i make little rewrite your LabEntry. seems to work import tkinter as Tk class LabEntry(Tk.Frame) : def __init__(self,root,label,**args) : super().__init__() entry = Tk.Entry(self, **args) entry.grid(column=1, r

Re: [Tkinter-discuss] grid manager does propagate width - why?

2011-01-18 Thread Martin B.
V Tue, 18 Jan 2011 11:54:37 +0100 Helmut Jarausch napsáno: sry, my english is not good. But your prob is simple. you defined 'grid' method in class. but calling self.grid(column=1, row=0) after Tk.Entry.__init__() cause your problem. this call your defined 'grid' method. Entry not be positioned

[Tkinter-discuss] Python error: GC object already tracked

2011-01-18 Thread jadeite100
Hi: In the UT web site it says we're suppose to use Python 2.52: http://www.cdf.utoronto.ca/~csc148h/winter/python.shtml I am currently using Windows XP SP3 in my laptop. When I ran the following code in my home computer I get the following exception after the highlighted line in yellow:

[Tkinter-discuss] Checkbutton label-box order

2011-01-18 Thread Vasilis Vlachoudis
Hi all, How can I create a checkbutton with the text-label on the left Checkbutton(frame, text="Label", variable=...) Label [x] The standard one has the button on the left and the label on the right [x] Label I didn't find any option to change the order. I don't want to create the label and the