Re: [Tkinter-discuss] JPEGs

2015-11-16 Thread Wayne Werner
On Mon, 16 Nov 2015, Robert Greschke wrote: Oops. Didn't hit the Reply All. I can do PNGs for the help pictures, but I guess I'll just have to suck it up and use PIL for my extracurricular project You probably have noticed this, but just in case - PIL is now pillow. -W

Re: [Tkinter-discuss] Is it safe to use True/False for 1/0 in tkinter?

2012-06-12 Thread Wayne Werner
On Mon, 11 Jun 2012, Mark Summerfield wrote: Hi, For tkinter methods that take 0 or 1 for true or false such as wm_overrideredirect(), is it safe to use Python's True and False builtins instead? Doing so seems to work, but just wanted to check. I'm somewhat certain that it will work just fin

Re: [Tkinter-discuss] Deadlock on graceful exit

2012-05-31 Thread Wayne Werner
On Thu, 31 May 2012, Matteo Landi wrote: Do you see anything wrong with the description presented above? Please say so, because I can't figure it out! Yes, though I have not looked at your code, if you're doing what you said and using threads in a Tkinter app. This will almost always lead t

Re: [Tkinter-discuss] Tkinter GUI freezing

2012-04-20 Thread Wayne Werner
On Thu, 19 Apr 2012, Bharath Reddy A. wrote: Hi all,I have created a GUI using Tkinter.  I have a button "GO", which when clicked calls a function (mainFunc). That function takes around 60 seconds to execute and in the mean time outputs many numbers which have to be displayed in a list in the

Re: [Tkinter-discuss] [Tutor] tkinter binding issues

2011-10-20 Thread Wayne Werner
Forwarding to the list... On Thu, Oct 20, 2011 at 9:06 AM, Elwin Estle wrote: > Thank you very much. That was a great help. I briefly considered the > lambda idea, but since I really don't understand the whole lambda thing (I > used an explanation from effbot for my buttons...but didn't really

Re: [Tkinter-discuss] Tkinter for Python 3.2.2 on Ubuntu

2011-10-12 Thread Wayne Werner
On Tue, Oct 11, 2011 at 10:08 PM, Kevin Turner wrote: > Hello, > > Can anyone point me to a version of Tkinter that I can install on a Ubuntu > system? I am trying to get IDLE to work on this system using python 3.2.2 > but it is complaining that I need Tkinter for it to run. > > I have i

Re: [Tkinter-discuss] Where is place for "Events" in an OOP script?

2011-10-05 Thread Wayne Werner
On Wed, Oct 5, 2011 at 11:26 AM, GKalman wrote: > I'm trying to separate the GUI and Non-GUI type classes in my script. *For > example: > * Say, I have a Spring class ( with all the non-GUI type attributes of a > mechanical Spring) and a DisplayBoard class (for all the Tkinter type > displays on

Re: [Tkinter-discuss] tkinter - hopefully forecasting a very long life...

2011-07-06 Thread Wayne Werner
On Wed, Jul 6, 2011 at 3:10 AM, alexxxm wrote: > > Hi people, > I'm midway in writing a simple wiki, in python+tkinter (thanks also to your > help, http://old.nabble.com/newbie-request-for-help-td31791699.html). > Simple for the typical developer maybe, but for me is long work, and once > you sta

[Tkinter-discuss] Keep mouse on canvas?

2011-04-13 Thread Wayne Werner
Hi, Is there an easy way to keep the mouse inside of a canvas or window? Thanks, Wayne ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] select multiple folders/ directories

2011-01-13 Thread Wayne Werner
On Thu, Jan 13, 2011 at 10:24 AM, Cameron Laird wrote: > Hi, > > I'm currently using tkFileDialog.askdirectory() to select a single > directory. I would like to be able to select multiple directories. > > tkFileDialog.askopenfilenames() seems to do this for files. > > What can I do in my situatio

[Tkinter-discuss] Transparent backgrounds in widgets?

2010-12-21 Thread Wayne Werner
Hi, Is it possible to create say, a checkbutton widget with a transparent background? I'm trying to take an image and put some checkbuttons on it so I can mark certain locations (like on a map). I'll be using the canvas widget and placing the checkbuttons on the canvas, but when I do they have the

Re: [Tkinter-discuss] Techniques for creating the appearance of frames with custom border colors

2010-12-17 Thread Wayne Werner
On Fri, Dec 17, 2010 at 8:00 AM, wrote: > I understand that Tkinter frames do not have a property that allows their > border color to be customized. > > Here are some high level ideas I have on how to create a colored border > effect - any suggestions on best practice appreciated. > > 2. Use a

Re: [Tkinter-discuss] Recommendations on when to use pack vs. grid layouts?

2010-12-09 Thread Wayne Werner
On Thu, Dec 9, 2010 at 10:33 AM, Michael Lange wrote: > Thus spoketh pyt...@bdurham.com > unto us on Thu, 09 Dec 2010 10:52:39 -0500: > > > Are there any best practice tips regarding when one should use > > pack vs. grid for their layouts? > > > > >From what I've been reading via google, the conc

Re: [Tkinter-discuss] Recommendations for free and commercial icon/image sets licensed for commercial use?

2010-12-07 Thread Wayne Werner
On Tue, Dec 7, 2010 at 12:58 PM, wrote: > Any recommendations for free and commercial icon/image sets > licensed for commercial use? > > I've seen some really high quality icons/images in open source > software lately, but I suspect most of these image sets are GPL > in nature, thus (in my interp

Re: [Tkinter-discuss] Possible to fade a small Tkinter image into a specific background color?

2010-12-07 Thread Wayne Werner
On Mon, Dec 6, 2010 at 8:38 PM, wrote: > Wondering if there's a PIL/Tkinter technique I can use to fade a small > image into a specific background color? > > Use case: I have a small message area that displays both an icon and text > message. I can fade my foreground text into its background cont

Re: [Tkinter-discuss] Change the font style (bold, italic, stikethru, normal) of widgets without explictly knowing font?

2010-11-22 Thread Wayne Werner
On Mon, Nov 22, 2010 at 3:21 PM, wrote: > Is there a simple way to change the font style of widgets without explictly > knowing the widget's font? > > For example: if I want to toggle the bold state of a widget's text, do I > need to determine its font, then build an equivalent font object/expres

Re: [Tkinter-discuss] Swap position of 2 widgets positioned in parent container via pack() or grid()?

2010-11-15 Thread Wayne Werner
On Mon, Nov 15, 2010 at 12:30 PM, wrote: > Any tips on how I can swap the position of 2 widgets who have been > positioned in a parent container via pack() or grid()? > import Tkinter as tk root = tk.Tk() b1 = tk.Button(root, text='hi') b2 = tk.Button(root, text='bye') b1.pack() b2.pack() b1.p

Re: [Tkinter-discuss] Possible to create separator lines in a Tkinter Listbox?

2010-11-10 Thread Wayne Werner
On Wed, Nov 10, 2010 at 7:44 AM, wrote: > How can I create non-selectable horizontal separator items in a Listbox, > eg. separators equivalent to the Tkinter Menu widget's .add_separator()? > Using chars like dashes and underscores looks awful. > > If this functionality is not possible, does anyo

Re: [Tkinter-discuss] Visual (8-bit!) tkinter Cheatsheets

2010-09-30 Thread Wayne Werner
I really like those - they're quite nice! I'm going to be giving a Tkinter presentation at PyArkansas October 16, would you mind if I include these in my presentation? -Wayne On Thu, Sep 30, 2010 at 1:47 PM, Lion Kimbro wrote: > > Hi all, > > For many reasons, but mainly just for fun, I mad

Re: [Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-20 Thread Wayne Werner
On Tue, Jul 20, 2010 at 12:00 PM, GKalman wrote: > > I'm trying to make a square-shaped board, something like this: > > from Tkinter import * > > root = Tk() > w=[] > for k in range(9): >i=k/3 >j=k%3 >w.append(Label(root,text=str(k),bg="red",width=5,height=5)) >w[k].grid(row=i,co

Re: [Tkinter-discuss] How to capture exceptions after the end of the program

2010-06-25 Thread Wayne Werner
On Fri, Jun 25, 2010 at 5:20 AM, Vasilis Vlachoudis < vasilis.vlachou...@cern.ch> wrote: > Hi all, > > I have a tkinter application that uses several fonts. However only with > python 2.4 when the application is closed then I get the following > exceptions (with 2.6 it works Ok) > > Exception exce

Re: [Tkinter-discuss] Returning control from a toplevel

2010-04-28 Thread Wayne Werner
On Wed, Apr 28, 2010 at 1:32 PM, Michael Lange wrote: > That's a lot of questions :) > Maybe one of the gurus here can explain better than me why exactly > there must not be more than one mainloop. I think the problem with your > stopped while loop happens because the mainloop() does not return u

Re: [Tkinter-discuss] How can I install or find ttk

2010-04-20 Thread Wayne Werner
On Tue, Apr 20, 2010 at 9:31 AM, Guido Carballo-Guerrero wrote: > Hello, I want to use Treeview, and apparently this is part of ttk. I have > Python 2.6.5 install in my computer, which is running Windows XP. The > problem I have is that Python can't find ttk. When I do: > > >>> from Tkinter import

Re: [Tkinter-discuss] Combobox - global var not found

2010-04-19 Thread Wayne Werner
On Sun, Apr 18, 2010 at 10:25 PM, kimmyaf wrote: > > I am experimenting with TKinter for the first time for my programming > course. > Trying to get a combobox working. At this point I'm not trying to write > elegant code, but at least get it to work for now. > > I keep getting the error below. S

Re: [Tkinter-discuss] How to configure the non-default Python version to work with tk

2010-02-17 Thread Wayne Werner
On Wed, Feb 17, 2010 at 9:41 AM, Noelia Oses wrote: > > Hi all, > > I have a very newby question. > I'm using a computer with Ubuntu Karmic Koala. > The Ubuntu has python 2.6 installed by default, and this default > installation includes tkinter. > > However, I'm using a platform (NuPIC) that nee