From sandeep.patil at hcl.in Thu May 3 14:12:10 2007 From: sandeep.patil at hcl.in (Sandeep Patil , Bangalore) Date: Thu, 3 May 2007 17:42:10 +0530 Subject: [Tkinter-discuss] Popup Listbox in a New window Message-ID: Hi, I need help to create a popup window in Tkinter wherein, when I click on a button a new window(frame) is poped up with some text ( probably a list). Code-snippet or function to do so would be helpful. Thanks and Regards Sandeep Patil "Its in my blood, B +ve" DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20070503/58aad81f/attachment.htm From Cameron at phaseit.net Thu May 3 16:43:22 2007 From: Cameron at phaseit.net (Cameron Laird) Date: Thu, 3 May 2007 14:43:22 +0000 Subject: [Tkinter-discuss] Popup Listbox in a New window In-Reply-To: References: Message-ID: <20070503144321.GA22577@lairds.us> On Thu, May 03, 2007 at 05:42:10PM +0530, Sandeep Patil , Bangalore wrote: . . . > I need help to create a popup window in Tkinter wherein, when I click on > a button a new window(frame) is poped up with some text ( probably a > list). > > Code-snippet or function to do so would be helpful. . . . I don't understand the question. Is the answer? From tms43 at clearwire.net Fri May 4 05:49:09 2007 From: tms43 at clearwire.net (Teresa Stanton) Date: Thu, 3 May 2007 20:49:09 -0700 Subject: [Tkinter-discuss] Canvas -> move object and remove previous location Message-ID: <7FCEAAA1A6024DFE9740EDA4F35BD27B@TeresPC> Hi all: I am working on a program that will take a .gif and move it from origin, along a path where the mouse clicks. I understand that the move is simply changing the coordinates. I can place several .gif's on the canvas, but I would like to make the previous image go away (delete or be removed) and thus far been unable to do that. The example program I wrote simply takes the image and moves it. I should mention that I've tried 'move() and coord()' to get the object to move, but I am not getting the effect I want. When I use move in successive steps it just appears at the last move coordinates. And when I try to use delete, well, it doesn't work, I get an error message. I should mention that I'm using python25. Here is my rather early example code: from Tkinter import * root = Tk() root.title("Click me!") def next_image(event): global x, y, photo photoId = canvas1.create_image(x, y, image=photo) # I realize this isn't the best way to do it, but until I get something working... canvas1.create_image(x+10, y, image=photo) # this seems more successful, but the image remains canvas1.create_image(x+20, y, image=photo) # after I click. I don't want the image to remain, canvas1.create_image(x+30, y, image=photo) # I actually want to see a slow deliberate movement canvas1.create_image(x+40, y, image=photo) # to the final spot. canvas1.create_image(x+50, y, image=photo) canvas1.create_image(x+60, y, image=photo) canvas1.create_image(x+70, y, image=photo) #canvas1.move(, 100, 0) image = "DustY1.GIF" # use any gif, this is a cartoon of my dog photo = PhotoImage(file=image) # make canvas the size of image1/photo1 width1 = photo.width() height1 = photo.height() canvas1 = Canvas(width=width1, height=height1) canvas1.pack() # display photo, x, y is center x = (width1)/2.0 y = (height1)/2.0 # this is the first image canvas1.create_image(x, y, image=photo) canvas1.bind('', next_image) # bind left mouse click root.mainloop() Thank you for your help! T -------------------------------------------------------------------------------- _______________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20070503/0488affc/attachment.html From brewerofbeer at hotmail.com Fri May 4 22:09:08 2007 From: brewerofbeer at hotmail.com (RickB) Date: Fri, 4 May 2007 13:09:08 -0700 (PDT) Subject: [Tkinter-discuss] self modifying buttons - memory game Message-ID: <10329262.post@talk.nabble.com> I assume there is probably a better way to do this. The code is functional but its really slow if you have a large amount of buttons. http://www.nabble.com/file/8220/gui.py gui.py -- View this message in context: http://www.nabble.com/self-modifying-buttons---memory-game-tf3693914.html#a10329262 Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From Vasilis.Vlachoudis at cern.ch Sun May 6 16:46:57 2007 From: Vasilis.Vlachoudis at cern.ch (Vasilis Vlachoudis) Date: Sun, 06 May 2007 16:46:57 +0200 Subject: [Tkinter-discuss] OptionMenu and Keyboard Message-ID: <463DEA61.3000407@cern.ch> Hi All, In my application I am using quite often the OptionMenu to give to the user a list of possible choices. I've tried to do everything to work with the keyboard but I cannot manage to make the OptionMenu to get the keyboard focus. Tab is always ignoring it. Is this a problem of the Tkinter or from the tk/tcl libraries? Vasilis From jmcmonagle at velseis.com.au Tue May 8 01:48:37 2007 From: jmcmonagle at velseis.com.au (John McMonagle) Date: Tue, 08 May 2007 09:48:37 +1000 Subject: [Tkinter-discuss] Canvas -> move object and remove previous location In-Reply-To: <7FCEAAA1A6024DFE9740EDA4F35BD27B@TeresPC> References: <7FCEAAA1A6024DFE9740EDA4F35BD27B@TeresPC> Message-ID: <463FBAD5.2080307@velseis.com.au> # move the image by the difference between the last point Teresa Stanton wrote: > Hi all: > > I am working on a program that will take a .gif and move it from origin, > along a path where the mouse clicks. I understand that the move is > simply changing the coordinates. I can place several .gif's on the > canvas, but I would like to make the previous image go away (delete or > be removed) and thus far been unable to do that. The example program I > wrote simply takes the image and moves it. I should mention that I've > tried 'move() and coord()' to get the object to move, but I am not > getting the effect I want. When I use move in successive steps it just > appears at the last move coordinates. And when I try to use delete, > well, it doesn't work, I get an error message. I should mention that > I'm using python25. > > Ok. You need to understand some of the Canvas methods better. Firstly the canvasx and canvasy methods translate screen coordinates from your event to the Canvas coordinates. So when you generate a Button-1 event, the event.x and event.y attributes need to be converted to your Canvas x and y coordinates. x2 = canvas1.canvasx(event.x) y2 = canvas1.canvasy(event.y) Second, you need to know what the coordinates are of your canvas image object. This is where the coords method of the Canvas widget will help you. But before you get the coordinates you need to know the object tag or id. The easiest way to do this is to use the tags option when first creating the tag. canvas1.create_image(x,y, image=photo, tags='myPhoto') Now, you can get the coordinates of this tag: x1, y1 = canvas1.coords('myPhoto') Thirdly, the move method of the Canvas widget moves the tag or id dx, dy canvas units - it is a differential move. You could simply move the image to the new coordinates by computing the difference between the original x,y and the new x,y (as clicked): canvas1.move('myPhoto', x2-x1, y2-y1) However, you want to move the image to the clicked point in slow steps. So, this will require you computing a stepped difference between the two points, loop over the steps, moving the image, sleeping, then updating. Fourthly, the delete method of the Canvas widget deletes an item or tag (but you don't need it here). canvas1.delete('myPhoto') The following code is pretty rough, but should illustrate some of the concepts needed. It also doesn't handle the zero increment case. from Tkinter import * import time root = Tk() root.title("Click me!") def next_image(event): # Convert the screen coordinates of the event to canvas coordinates x2 = canvas1.canvasx(event.x) y2 = canvas1.canvasy(event.y) x2 = int(x2) y2 = int(y2) # get the phot object coordinates x1, y1 = canvas1.coords('myPhoto') x1 = int(x1) y1 = int(y1) # create two lists of stepped x and y xinc = (x2 - x1)/100 yinc = (y2 - y1)/100 print xinc, yinc xlist = [] for x in xrange(x1, x2+xinc, xinc): print x xlist.append(x) ylist = [] for y in xrange(y1, y2+yinc, yinc): print y ylist.append(y) # move the image by the difference between the last point, sleep # for half a millisecond, update the display for i, x in enumerate(xlist): if i == 0: canvas1.move('myPhoto', x-x1, ylist[i]-y1) else: canvas1.move('myPhoto', x-xlist[i-1], ylist[i]-ylist[i-1]) time.sleep(0.05) root.update() image = "DustY1.GIF" # use any gif, this is a cartoon of my dog photo = PhotoImage(file=image) # make canvas the size of image1/photo1 width1 = photo.width() height1 = photo.height() canvas1 = Canvas(width=width1, height=height1) canvas1.pack() # display photo, x, y is center x = (width1)/2.0 y = (height1)/2.0 # this is the first image canvas1.create_image(x, y, image=photo, tags='myPhoto') # added tags option canvas1.bind('', next_image) # bind left mouse click root.mainloop() Regards, John From tms43 at clearwire.net Tue May 8 03:03:09 2007 From: tms43 at clearwire.net (Teresa Stanton) Date: Mon, 7 May 2007 18:03:09 -0700 Subject: [Tkinter-discuss] Canvas -> move object and remove previous location In-Reply-To: <463FBAD5.2080307@velseis.com.au> References: <7FCEAAA1A6024DFE9740EDA4F35BD27B@TeresPC> <463FBAD5.2080307@velseis.com.au> Message-ID: Thank you to both John's! I have some testing (playing, actually) to do so I can better understand what is going on. You've both given me a lot to work through and I'm sure it will be a much better project when completed. THANK YOU both very much. T ----- Original Message ----- From: "John McMonagle" To: "Teresa Stanton" Cc: Sent: Monday, May 07, 2007 4:48 PM Subject: Re: [Tkinter-discuss] Canvas -> move object and remove previous location > # move the image by the difference between the last point > Teresa Stanton wrote: >> Hi all: >> I am working on a program that will take a .gif and move it from origin, >> along a path where the mouse clicks. I understand that the move is >> simply changing the coordinates. I can place several .gif's on the >> canvas, but I would like to make the previous image go away (delete or be >> removed) and thus far been unable to do that. The example program I wrote >> simply takes the image and moves it. I should mention that I've tried >> 'move() and coord()' to get the object to move, but I am not getting the >> effect I want. When I use move in successive steps it just appears at >> the last move coordinates. And when I try to use delete, well, it >> doesn't work, I get an error message. I should mention that I'm using >> python25. >> > Ok. You need to understand some of the Canvas methods better. > > Firstly the canvasx and canvasy methods translate screen coordinates from > your event to the Canvas coordinates. So when you generate a Button-1 > event, the event.x and event.y attributes need to be converted to your > Canvas x and y coordinates. > > x2 = canvas1.canvasx(event.x) > y2 = canvas1.canvasy(event.y) > > Second, you need to know what the coordinates are of your canvas image > object. This is where the coords method of the Canvas widget will help > you. But before you get the coordinates you need to know the object tag > or id. The easiest way to do this is to use the tags option when first > creating the tag. > > canvas1.create_image(x,y, image=photo, tags='myPhoto') > > Now, you can get the coordinates of this tag: > > x1, y1 = canvas1.coords('myPhoto') > > Thirdly, the move method of the Canvas widget moves the tag or id dx, dy > canvas units - it is a differential move. You could simply move the image > to the new coordinates by computing the difference between the original > x,y and the new x,y (as clicked): > > canvas1.move('myPhoto', x2-x1, y2-y1) > > However, you want to move the image to the clicked point in slow steps. > So, this will require you computing a stepped difference between the two > points, loop over the steps, moving the image, sleeping, then updating. > > Fourthly, the delete method of the Canvas widget deletes an item or tag > (but you don't need it here). > > canvas1.delete('myPhoto') > > The following code is pretty rough, but should illustrate some of the > concepts needed. It also doesn't handle the zero increment case. > > from Tkinter import * > import time > > root = Tk() > root.title("Click me!") > > def next_image(event): > # Convert the screen coordinates of the event to canvas coordinates > x2 = canvas1.canvasx(event.x) > y2 = canvas1.canvasy(event.y) > x2 = int(x2) > y2 = int(y2) > > # get the phot object coordinates > x1, y1 = canvas1.coords('myPhoto') > x1 = int(x1) > y1 = int(y1) > > # create two lists of stepped x and y > xinc = (x2 - x1)/100 > yinc = (y2 - y1)/100 > print xinc, yinc > xlist = [] > for x in xrange(x1, x2+xinc, xinc): > print x > xlist.append(x) > ylist = [] > for y in xrange(y1, y2+yinc, yinc): > print y > ylist.append(y) > > # move the image by the difference between the last point, sleep > # for half a millisecond, update the display > for i, x in enumerate(xlist): > if i == 0: > canvas1.move('myPhoto', x-x1, ylist[i]-y1) > else: > canvas1.move('myPhoto', x-xlist[i-1], ylist[i]-ylist[i-1]) > time.sleep(0.05) > root.update() > > image = "DustY1.GIF" # use any gif, this is a cartoon of my dog > photo = PhotoImage(file=image) > > # make canvas the size of image1/photo1 > width1 = photo.width() > height1 = photo.height() > canvas1 = Canvas(width=width1, height=height1) > canvas1.pack() > > # display photo, x, y is center > x = (width1)/2.0 > y = (height1)/2.0 > # this is the first image > canvas1.create_image(x, y, image=photo, tags='myPhoto') # added tags > option > > canvas1.bind('', next_image) # bind left mouse click > > root.mainloop() > > > Regards, > > John > > From pollastri at iriti.cnr.it Mon May 21 12:26:14 2007 From: pollastri at iriti.cnr.it (Fabrizio Pollastri) Date: Mon, 21 May 2007 12:26:14 +0200 Subject: [Tkinter-discuss] python tcl mixed programming Message-ID: <465173C6.5090101@iriti.cnr.it> Hello, I am trying to import into a python program a TK gui designed with TkproE. My code is root = Tk() root.tk.evalfile('my_tcl_gui.tcl') The problem at this point is that root.children is empty. It seems that evalfile created the gui widgets somewhere else, not inside my root window. How I can access from python the widget tree created by evalfile? What I am missing? Thank for any help. Regards, F. Pollastri From jepler at unpythonic.net Mon May 21 15:33:46 2007 From: jepler at unpythonic.net (Jeff Epler) Date: Mon, 21 May 2007 08:33:46 -0500 Subject: [Tkinter-discuss] python tcl mixed programming In-Reply-To: <465173C6.5090101@iriti.cnr.it> References: <465173C6.5090101@iriti.cnr.it> Message-ID: <20070521133346.GC10860@unpythonic.net> This is the way I found to do it: http://cvs.linuxcnc.org/cgi-bin/cvsweb.cgi/emc2/lib/python/nf.py.in?rev=1.1 You're interested in the class 'Widgets' and the function 'makewidget' which does all the work. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. class Widgets: def __init__(self, master, *widgets): for (name, klass, path) in widgets: setattr(self, name, makewidget(master, klass, path)) def makewidget(master, klass, path): path = str(path) self = newinstance(klass) if path[0] == '.': if master._w == '.': self._name = path[1:] else: self._name = path[len(master._w)+1:] self._w = path else: self._name = path if master._w == '.': self._w = '.' + path else: self._w = master._w + '.' + path self.children = {} master.children[self._name] = self self.master = master self.tk = master.tk return self Here's a use of the Widgets class: widgets = nf.Widgets(root_window, ("help_window", Toplevel, ".keys"), ("about_window", Toplevel, ".about"), ("text", Text, pane_bottom + ".t.text"), ("preview_frame", Frame, pane_top + ".preview"), ...) after this, it is possible to refer to widgets.help_window, widgets.text, etc. Jeff From nadeem at acm.org Tue May 22 05:44:45 2007 From: nadeem at acm.org (nadeemabdulhamid) Date: Mon, 21 May 2007 20:44:45 -0700 (PDT) Subject: [Tkinter-discuss] Tkinter hangs in interpreter subprocess Message-ID: <10731091.post@talk.nabble.com> I am having real problems using Tkinter when launching a Python interpreter as a subprocess from another program in Windows. Tkinter seems to hang when the interpreter is not launched from the console, for some reason. I need to find a way around it, or somehow get it to think that it is being launched from a console. Basically, I'm trying to write a simple Python editor in Java and would like to be able to run an interactive interpreter shell in a pane within the editor. So I tried launching python from Java, and it works fine except when I import Tkinter and then create the root Tk() object, it stops accepting any further input. I've also tried launching the interpreter process from a Python script using popen and piping the input/output streams, and also from a native C application -- and in every case it does the same. However, the Java/Python code works just perfectly on a Macintosh -- it loads the Tkinter library and does not hang or anything. The Java code is posted in another thread: http://tinyurl.com/2h2dwx I'm using the latest versions of Java and Python on Windows XP. I would really appreciate if anyone has any ideas on how I can solve this problem, or another more appropriate forum to ask the question. Thanks in advance, nadeem -- View this message in context: http://www.nabble.com/Tkinter-hangs-in-interpreter-subprocess-tf3794092.html#a10731091 Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From Cameron at phaseit.net Mon May 28 16:40:34 2007 From: Cameron at phaseit.net (Cameron Laird) Date: Mon, 28 May 2007 14:40:34 +0000 Subject: [Tkinter-discuss] self modifying buttons - memory game In-Reply-To: <10329262.post@talk.nabble.com> References: <10329262.post@talk.nabble.com> Message-ID: <20070528144034.GA20924@lairds.us> On Fri, May 04, 2007 at 01:09:08PM -0700, RickB wrote: . . . > I assume there is probably a better way to do this. The code is functional > but its really slow if you have a large amount of buttons. > http://www.nabble.com/file/8220/gui.py gui.py . . . I suspect you are indeed working too hard. When I execute the "gui.py" source, I see a 6 x 5 grid of buttons. They all appear active, but there are no random color changes evident, as I suspect you intended. What's the effect you're after? My guess is that we can help you achieve it far more economically. I've scanned the source, but I don't get the point. From brewerofbeer at hotmail.com Mon May 28 22:46:25 2007 From: brewerofbeer at hotmail.com (RickB) Date: Mon, 28 May 2007 13:46:25 -0700 (PDT) Subject: [Tkinter-discuss] self modifying buttons - memory game In-Reply-To: <20070528144034.GA20924@lairds.us> References: <10329262.post@talk.nabble.com> <20070528144034.GA20924@lairds.us> Message-ID: <10844147.post@talk.nabble.com> Cameron Laird-2 wrote: > > On Fri, May 04, 2007 at 01:09:08PM -0700, RickB wrote: > . > . > . >> I assume there is probably a better way to do this. The code is >> functional >> but its really slow if you have a large amount of buttons. >> http://www.nabble.com/file/8220/gui.py gui.py > . > . > . > I suspect you are indeed working too hard. > > When I execute the "gui.py" source, I see a 6 x 5 grid of buttons. > They all appear active, but there are no random color changes > evident, as I suspect you intended. What's the effect you're after? > My guess is that we can help you achieve it far more economically. > I've scanned the source, but I don't get the point. > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > > I edited the original message. I don't know how this mailing list stuff works or if you guys got the edit or what. I am viewing it through nabble.com. I posted a new file in my edit: http://www.nabble.com/file/8227/gui2.py It is just a version of a memory game where you have a grid of cards and you have to pick a matching pair. If you click the one of buttons in the grid you will see a color. You then must click a button with a matching color. If you do both those buttons will stay that color. If your second pick does not match, both buttons turn back to gray. I think my new file is pretty efficient and functional. Thanks for the interest anyway, Rick -- View this message in context: http://www.nabble.com/self-modifying-buttons---memory-game-tf3693914.html#a10844147 Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From Cameron at phaseit.net Tue May 29 17:51:43 2007 From: Cameron at phaseit.net (Cameron Laird) Date: Tue, 29 May 2007 15:51:43 +0000 Subject: [Tkinter-discuss] self modifying buttons - memory game In-Reply-To: <10844147.post@talk.nabble.com> References: <10329262.post@talk.nabble.com> <20070528144034.GA20924@lairds.us> <10844147.post@talk.nabble.com> Message-ID: <20070529155143.GA24356@lairds.us> On Mon, May 28, 2007 at 01:46:25PM -0700, RickB wrote: > > . > > . > > . > >> I assume there is probably a better way to do this. The code is > >> functional . . . > http://www.nabble.com/file/8227/gui2.py > It is just a version of a memory game where you have a grid of cards and you > have to pick a matching pair. If you click the one of buttons in the grid > you will see a color. You then must click a button with a matching color. If > you do both those buttons will stay that color. If your second pick does not > match, both buttons turn back to gray. I think my new file is pretty > efficient and functional. . . . Ah! I have the new version, and it does indeed entertain me, and appear to be correct. While we're here, I'll make a couple of comments: A. I'd likely replace col[z]=c[col[z]%5] with col[z] = c[col[z] % len(c)] B. You can replace col = [] for z in range(w*h): col.append(z) with col = range(w * h) C. I think what you're *really* after, though, is # Make copies of the color list to # fill out the whole grid, then col = (c * (1 + t / len(c)))[:t] # shuffle the colors. random.shuffle(col) D. Similarly, there are ways to recode maker() so that it's briefer, easier to understand, and less tricky in its global manipulation. E. There are choices for c, w, and h that leave the "board" unplayable--that is, all pairs have been matched, and all that's left are unpaired colors. Nice work! From brewerofbeer at hotmail.com Wed May 30 15:32:56 2007 From: brewerofbeer at hotmail.com (RickB) Date: Wed, 30 May 2007 06:32:56 -0700 (PDT) Subject: [Tkinter-discuss] self modifying buttons - memory game In-Reply-To: <20070529155143.GA24356@lairds.us> References: <10329262.post@talk.nabble.com> <20070528144034.GA20924@lairds.us> <10844147.post@talk.nabble.com> <20070529155143.GA24356@lairds.us> Message-ID: <10873431.post@talk.nabble.com> Thanks for the interest and the comments. I didn't have the time or motivation to try to make it work with arbitrary sizes. I had to turn it in for a class. I don't know if its in the version I posted, but the version I handed in had an initial set of buttons where you could select one of three pre-determined sizes. Thanks again, Rick Cameron Laird-2 wrote: > > On Mon, May 28, 2007 at 01:46:25PM -0700, RickB wrote: >> > . >> > . >> > . >> >> I assume there is probably a better way to do this. The code is >> >> functional > . > . > . >> http://www.nabble.com/file/8227/gui2.py >> It is just a version of a memory game where you have a grid of cards and >> you >> have to pick a matching pair. If you click the one of buttons in the grid >> you will see a color. You then must click a button with a matching color. >> If >> you do both those buttons will stay that color. If your second pick does >> not >> match, both buttons turn back to gray. I think my new file is pretty >> efficient and functional. > . > . > . > Ah! I have the new version, and it does indeed entertain > me, and appear to be correct. While we're here, I'll make > a couple of comments: > A. I'd likely replace > col[z]=c[col[z]%5] > with > col[z] = c[col[z] % len(c)] > B. You can replace > col = [] > for z in range(w*h): > col.append(z) > with > col = range(w * h) > C. I think what you're *really* after, though, > is > # Make copies of the color list to > # fill out the whole grid, then > col = (c * (1 + t / len(c)))[:t] > # shuffle the colors. > random.shuffle(col) > D. Similarly, there are ways to recode maker() > so that it's briefer, easier to understand, > and less tricky in its global manipulation. > E. There are choices for c, w, and h that leave > the "board" unplayable--that is, all pairs > have been matched, and all that's left are > unpaired colors. > > Nice work! > _______________________________________________ > Tkinter-discuss mailing list > Tkinter-discuss at python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss > > -- View this message in context: http://www.nabble.com/self-modifying-buttons---memory-game-tf3693914.html#a10873431 Sent from the Python - tkinter-discuss mailing list archive at Nabble.com. From Cameron at phaseit.net Wed May 30 15:43:52 2007 From: Cameron at phaseit.net (Cameron Laird) Date: Wed, 30 May 2007 13:43:52 +0000 Subject: [Tkinter-discuss] self modifying buttons - memory game In-Reply-To: <10873431.post@talk.nabble.com> References: <10329262.post@talk.nabble.com> <20070528144034.GA20924@lairds.us> <10844147.post@talk.nabble.com> <20070529155143.GA24356@lairds.us> <10873431.post@talk.nabble.com> Message-ID: <20070530134352.GB6105@lairds.us> On Wed, May 30, 2007 at 06:32:56AM -0700, RickB wrote: . . . > Thanks for the interest and the comments. I didn't have the time or > motivation to try to make it work with arbitrary sizes. I had to turn it in > for a class. I don't know if its in the version I posted, but the version I > handed in had an initial set of buttons where you could select one of three > pre-determined sizes. > Thanks again, . . . You're welcome. I'll add that there's deep value in delivering something that "passes", that is, meets the grader's or other client's requirements. Congratulations, and good luck with any other Tkinter-ing you do!