Re: [Tkinter-discuss] pack equivalent of grid_remove(), eg. pack_remove() ?

2010-12-10 Thread python
Michael, Your pack_forget() code works like a charm! Thank you, Malcolm From: "Michael Lange" To: tkinter-discuss@python.org Date: Thu, 9 Dec 2010 15:51:23 +0100 There's nothing like that built in, but it is quite easy to set it up: from Tkinter import * root = Tk() root.geometry('200x200'

Re: [Tkinter-discuss] How to determine if a widget is pack()-ed or unpacked via pack_forget()?

2010-12-10 Thread python
Mick, Perfect - that's just what I was looking for. Malcolm From: "Michael O'Donnell" Look at: w.winfo_ismapped() ...Note that if a widget IS packed, but the parent (or some ancestor) is not, this will return False. w.winfo_manager() -- will return "" if the widget is not packed/gridded e

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

2010-12-10 Thread python
Mick, > If you are placing a row of widgets into a frame, with pack you don't have to > keep track of which column you are up to, just pack them one after the other. I think grid() will automatically increment the row if you don't specify it. Malcolm

[Tkinter-discuss] How do Tkinter's Entry/Text support for Ctrl+X/Ctrl+C/Ctrl+V (cut, copy, paste) work in non-English locales?

2010-12-10 Thread python
It seems that Tkinter Entry and Text widgets have built in support for basic clipboard functionality via the keystrokes Ctrl+X/Ctrl+C/Ctrl+V (cut, copy, paste). Of course these make sense for English speaking locales. How does this functionality work when Tkinter is used in non-English locales? Ar

[Tkinter-discuss] Tips for using Tkinter in non-US locales and/or locale module integration with Tkinter Entry widgets

2010-12-10 Thread python
I noticed there are a lot of non-US developers on this list. I'm looking for tips on using Tkinter in non-US locales. In particular: 1. Are there any Unicode or font specific issues to be concerned about? 2. Are you using the locale module to control how you display or parse data moving into and

[Tkinter-discuss] What determines the initial position of Tkinter's root and Toplevel() windows?

2010-12-10 Thread python
What determines the initial position of Tkinter's root and Toplevel() windows? Under Windows (running Python 2.7), my root window appears to show up in random positions (usually clustered around the upper left of my display). The position of my first Toplevel() window appears to be random as well

Re: [Tkinter-discuss] How do Tkinter's Entry/Text support for Ctrl+X/Ctrl+C/Ctrl+V (cut, copy, paste) work in non-English locales?

2010-12-10 Thread Michael Lange
Hi, Thus spoketh pyt...@bdurham.com unto us on Fri, 10 Dec 2010 10:13:28 -0500: > It seems that Tkinter Entry and Text widgets have built in > support for basic clipboard functionality via the keystrokes > Ctrl+X/Ctrl+C/Ctrl+V (cut, copy, paste). > > Of course these make sense for English speak

Re: [Tkinter-discuss] How do Tkinter's Entry/Text support for Ctrl+X/Ctrl+C/Ctrl+V (cut, copy, paste) work in non-English locales?

2010-12-10 Thread python
Michael, > >>> e1.event_delete('<>', '') > >>> e1.event_add('<>', '') Thank you! That's the *exact* technique I was searching for. > I'm not sure if this would make sense, though. Aren't these default bindings > the same for any locale (at least this is true for germany :)? I mistakenly thoug

Re: [Tkinter-discuss] Tips for using Tkinter in non-US locales and/or locale module integration with Tkinter Entry widgets

2010-12-10 Thread Michael Lange
Thus spoketh pyt...@bdurham.com unto us on Fri, 10 Dec 2010 10:23:37 -0500: > I noticed there are a lot of non-US developers on this list. I'm > looking for tips on using Tkinter in non-US locales. > > In particular: > > 1. Are there any Unicode or font specific issues to be concerned > about?

Re: [Tkinter-discuss] What determines the initial position of Tkinter's root and Toplevel() windows?

2010-12-10 Thread Michael Lange
Thus spoketh pyt...@bdurham.com unto us on Fri, 10 Dec 2010 11:12:37 -0500: > What determines the initial position of Tkinter's root and > Toplevel() windows? > > Under Windows (running Python 2.7), my root window appears to > show up in random positions (usually clustered around the upper > lef

[Tkinter-discuss] Why can't I use the END index with my text widget in Tkinter?

2010-12-10 Thread irvinicus
I'm using the text widget to give ongoing updates to the user. When something happens in the program, I want to add an update to the user in the text widget. But I can't figure out how to add each new update onto it's own new line. I've looked through the documentation, but I don't see any met