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

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

[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 Geometry Manager & ImageTk.PhotoImage

2009-10-23 Thread Michael Lange
Hi, On Fri, 23 Oct 2009 10:23:22 +0200 "Michael O'Donnell" wrote: > Sorry, yes, I should have specified I am working under Windows, > and was using python 2.5.4 with its default Tk. > > Which asked the question why you, a major Python/Tkinter user, > have not upgraded to 2.6 let alone 3.1? > >

Re: [Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

2009-10-23 Thread Michael O'Donnell
Sorry, yes, I should have specified I am working under Windows, and was using python 2.5.4 with its default Tk. Which asked the question why you, a major Python/Tkinter user, have not upgraded to 2.6 let alone 3.1? (myself, I had problems with making standalone applications using py2exe under win

Re: [Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

2009-10-23 Thread Michael Lange
Hi, On Thu, 22 Oct 2009 23:07:57 +0200 "Michael O'Donnell" wrote: > Hi Michael, Francis, > > Michael, if you change the bg of the canvases, you > will see that Francis is right, the canvas extends > past the edge of the photo image. That is exactly what I did, but I cannot confirm this behavio

Re: [Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

2009-10-22 Thread Michael O'Donnell
Hi Michael, Francis, Michael, if you change the bg of the canvases, you will see that Francis is right, the canvas extends past the edge of the photo image. I changed his code as follows adding the bg atributes: panel1 = tk.Canvas(root, bg="red") panel1.grid(row=0, column=0, sticky=tk.NSEW) panel

Re: [Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

2009-10-22 Thread Michael Lange
Hi, On Thu, 22 Oct 2009 08:46:19 -0700 (PDT) buckr02 wrote: (...) > > I am having trouble with the images, however, as they are being cut > off (only part of the image is being shown). I am using Canvas > objects to hold the images. > > I was able to throw in a few lines to fix most of the pr

[Tkinter-discuss] Grid Geometry Manager & ImageTk.PhotoImage

2009-10-22 Thread buckr02
I cannot for the life of me figure this out. I am trying to create a program that will display images and have some functions to go along with it. I am using the grid manager to organize everything, and the basic framework is as such: * 2x2 grid * Row 0, Column 0 is first image * Row 0, Column

Re: [Tkinter-discuss] Grid

2007-01-04 Thread Mikael Olofsson
Cam wrote: > Any grid experts about? This minimal Tkinter program: > > from Tkinter import * > root = Tk() > root.geometry('640x480') > B = Button(root) > B.grid(column=0,row=0,sticky='wn') > root.mainloop() > > produces a top-level with a Button centered in it. But I

[Tkinter-discuss] Grid

2007-01-03 Thread Cam
Any grid experts about? This minimal Tkinter program: from Tkinter import * root = Tk() root.geometry('640x480') B = Button(root) B.grid(column=0,row=0,sticky='wn') root.mainloop() produces a top-level with a Button centered in it. But I don't want the button in the

Re: [Tkinter-discuss] grid sticky problem

2006-07-03 Thread Jeff Epler
You need to give some rows or columns nonzero weight. master.grid_rowconfigure(rownum, weight=1) master.grid.columconfigure(colnum, weight=1) Jeff ___ Tkinter-discuss mailing list [email protected] http://mail.python.org/mailman/listinfo/tkinte

[Tkinter-discuss] grid sticky problem

2006-07-03 Thread Olivier Feys
I'm trying to add frames in a master frame with the grid manager, and it seems that the option 'sticky' doesn't work as it should When I change the size of the master frame, the subframes don't want to be resized like expand =1 , fill = 'both' for pack layout manager Thanks for help import Tki