Re: [Tkinter-discuss] Problem with Text widget's see method

2005-02-14 Thread Michael Lange
On Mon, 14 Feb 2005 13:02:44 -0500 Jared Cohen [EMAIL PROTECTED] wrote: cursor back to that index. Of course, the Text widget doesn't actually HAVE a method to explicitly set the position of the cursor; so I simulated that behavior by using event_generate to pretend the user had actually

Re: [Tkinter-discuss] Re: Modal dialog behavior

2005-03-23 Thread Michael Lange
Martin, Jeff, Russell, thanks for the replies, Could you share a small snippet of code that exhibits this behavior? I use XFCE4 by default but can test with at least GNOME (I think I still have KDE on an older machine somewhere...) I also have a couple of version of Tk installed so we can

Re: [Tkinter-discuss] Re: making tkFileDialog and tkMessageBox modal on Win32

2005-04-06 Thread Michael Lange
On Wed, 6 Apr 2005 11:04:50 -0700 Greg Lee [EMAIL PROTECTED] wrote: The esteemed Fredrik Lundh responded: well, they sure are modal on my machine. maybe you could post an example, tell us how it behaves on your machine, and tell us how you expected it to behave. I, too, have seen

Re: [Tkinter-discuss] more control over truncating long strings in Labels?

2005-04-27 Thread Michael Lange
On Wed, 27 Apr 2005 11:33:49 -0700 Russell E. Owen [EMAIL PROTECTED] wrote: I'd was wondering if there was some fairly easy way to display text in a Label such that it is is anchored on the west (short strings are against the left edge), but too-long strings are truncated on the left. This

[Tkinter-discuss] python wrapper for tkDnD

2005-07-05 Thread Michael Lange
Hello list, looking for a way to achieve inter-application drag and drop capabilities for Tkinter I came to look at the tkDnD extension for tcl/tk (http://sourceforge.net/projects/tkdnd) which adds native drag and drop support on windows and unix. I couldn't find some approach to write a

[Tkinter-discuss] debian tkinter broken or tk problem (or what)?

2005-09-12 Thread Michael Lange
Hello, I noticed that for some reason some Tkinter apps I wrote and successfully used for a while seem to be broken when run on my newly installed debian system (python-2.3.5 / tk-8.4.9). The problem I noticed arises when I run a subprocess with popen2.Popen4() and catch the output with

Re: [Tkinter-discuss] Trouble installing PyBWidgets

2005-09-12 Thread Michael Lange
On Mon, 12 Sep 2005 13:42:33 -0400 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello All: I am having trouble getting the PyBWidgets plugged in correctly in a Windows XP environment. It appears to be path-related, since the BWidget package can't be found. The installation 'Read Me'

[Tkinter-discuss] pybwidget dialog bug

2005-10-10 Thread Michael Lange
Hello all, I found a bug in some of pybwidget's dialog classes. The affected classes are MessageDialog, PasswordDialog, SelectFont and SelectColor; it seems like there is no way to get the result the dialog box returns. The problem is the call to Tkinter.Widget.__init__() , which itself calls

[Tkinter-discuss] Ann.: Python wrapper for tktreectrl

2005-11-09 Thread Michael Lange
Hi, I wrote a Tkinter wrapper for the tktreectrl widget (http://tktreectrl.sourceforge.net). The treectrl widget is an advanced tool that lets you set up things like sortable multi column listboxes and tree browsers. The python module comes with a reference manual and a (very basic) demo. The

[Tkinter-discuss] Convert Tk command string to Python callback

2005-11-14 Thread Michael Lange
Hello everyone, I need to to pass attributes of an event (or maybe the event instance as a whole) to another callback. A pseudo-code function to illustrate what I want to achieve: def deliver_event(self, event): binding = self.tag_bind(tagOrId, 'sequence') if binding:

Re: [Tkinter-discuss] Convert Tk command string to Python callback

2005-11-17 Thread Michael Lange
On Wed, 16 Nov 2005 11:45:17 -0800 Russell E. Owen [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Michael Lange [EMAIL PROTECTED] wrote: ...I just wondered if there is a way to ...access the associated python callback from the tk command string... I hope this helps. I've

Re: [Tkinter-discuss] Tix and Pmw comparison

2005-12-27 Thread Michael Lange
On Mon, 26 Dec 2005 04:36:59 -0800 (PST) Mohammad Tayseer [EMAIL PROTECTED] wrote: Dear friends is there a comparison between Tix and Pmw? i couldn't find a comparison between these libraries. is there a comparison between them and bwidgets too? thanks in advance Hi Mohammad, a brief

Re: [Tkinter-discuss] Pmw problem in cygwin with Tkinter

2006-01-07 Thread Michael Lange
On Thu, 5 Jan 2006 13:26:14 -0700 Stewart Midwinter [EMAIL PROTECTED] wrote: Hi Stewart, I have a Tkinter app running on cygwin. It includes a Test menu item that does nothing more than fetch a directory listing and display it in a Toplevel window (I'd use a tkMessageBox showinfo widget, but

Re: [Tkinter-discuss] Drawing waveform on a Canvas

2006-01-18 Thread Michael Lange
On Wed, 18 Jan 2006 11:41:26 -0800 (PST) Mohammad Tayseer [EMAIL PROTECTED] wrote: You have two problems 1. Reading a sound file 2. drawing the waveform I solved the 2nd problem only. This is a code that draws a random waveform. Thanks Mohammad, you are right, the line item looks very

Re: [Tkinter-discuss] Drawing waveform on a Canvas

2006-01-19 Thread Michael Lange
Frederik, Mohammad, Stewart, thanks to all of you. On Thu, 19 Jan 2006 00:04:32 -0800 (PST) Mohammad Tayseer [EMAIL PROTECTED] wrote: What is the relationship you want to draw? frequency vs. time or what? frequency/time requires only 1 chart, but other relationships requires more than one,

Re: [Tkinter-discuss] HTML Viewer

2006-01-30 Thread Michael Lange
On Thu, 26 Jan 2006 20:18:41 -0500 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am wondering what ideas people could offer for a simple HTML viewer I could plug into a Tkinter/Pmw Application. Does anyone know of something simple, yet robust? Hi Christopher, pysol has a (very basic)

Re: [Tkinter-discuss] Radiobutton

2006-02-13 Thread Michael Lange
On Mon, 13 Feb 2006 10:43:43 +0100 (MET) Martin Weisel [EMAIL PROTECTED] wrote: I think it must be a PyMOL specific problem. For some reason the .get() method is unable to get the actual value of the Radiobutton. The strange thing is that the Label has no problems in displaying the actual

Re: [Tkinter-discuss] Fixed color background

2006-02-23 Thread Michael Lange
On Wed, Feb 22, 2006 at 01:15:43PM -0800, this_is Not_my_name wrote: . . . When I follow the suggestion, I get a type error... TypeError: __init__() got an unexpected keyword argument 'background' I haven't had this

Re: [Tkinter-discuss] tag_bind

2006-03-28 Thread Michael Lange
On Mon, 27 Mar 2006 18:54:05 +0200 Pavel Kosina [EMAIL PROTECTED] wrote: In fact, I tried this too, but the same effect. I got the impression from the documentation that this should be the right method. With binding canvas I do not know, how to bind more than one player, so that

Re: [Tkinter-discuss] Tix question [possibly off-topic]

2006-03-29 Thread Michael Lange
On Tue, 28 Mar 2006 16:09:36 -0500 (EST) Gerardo Juarez [EMAIL PROTECTED] wrote: Hi, I need widgets which are a bit more elaborated than what Tk offers as standard. I checked Tix and it works well in Linux. The problem is with Windows, because the Tix documentation says Tix is installed

Re: [Tkinter-discuss] canvas binding

2006-04-05 Thread Michael Lange
On Tue, 4 Apr 2006 12:48:02 -0700 (PDT) fxe [EMAIL PROTECTED] wrote: Hi, Is it possible to have a both a rectangle and an oval drawn on the same canvas yet only have bindings work on the rectangle. I would think it is possible but I seem to be having a big problem with this. -- Hi,

Re: [Tkinter-discuss] toplevel on top

2006-04-08 Thread Michael Lange
On Sat, 08 Apr 2006 19:10:54 +0200 Pavel Kosina [EMAIL PROTECTED] wrote: How to make Toplevel window (with some options to be set in it) to stay really on top unless its button OK (destroy) is pressed? In other words - its parent couldnt be activated. Hi Pavel, you need to call the

Re: [Tkinter-discuss] optionmenu question

2006-04-11 Thread Michael Lange
On Tue, 11 Apr 2006 09:06:33 -0600 Stewart Midwinter [EMAIL PROTECTED] wrote: On 4/11/06, Jan Filip Tristan [EMAIL PROTECTED] wrote: Hello, I have got a problem.I've got a List and I want to have everything in this List as an own OptionMenu piece. from Tkinter import * import Pmw

Re: [Tkinter-discuss] Refresh loop

2006-04-11 Thread Michael Lange
On Tue, 11 Apr 2006 18:02:37 +0200 (Central European Daylight Time) Aleksandar Cikota [EMAIL PROTECTED] wrote: Hello, I'm writing a software for our future robotic telescope in Python and started to make the GUI. I'm beginner in Tkiner and have a easy question. How to refresh this loop

Re: [Tkinter-discuss] tkdnd installation

2006-04-20 Thread Michael Lange
On Tue, 18 Apr 2006 14:11:17 +0100 Casey Wong Kam Shun [EMAIL PROTECTED] wrote: Hi, I am learning how to use tkdnd and would appreciate if someone could let me know how to install tkdnd? I know there is installation instruction but it is not clear for a novice like me. For example what

Re: [Tkinter-discuss] question regarding TkinterDnD and tkDnD

2006-04-21 Thread Michael Lange
On Fri, 21 Apr 2006 08:41:19 +0100 Casey Wong Kam Shun [EMAIL PROTECTED] wrote: First of all thanks for your reply in the Tkinter-discuss forum. I am using the TkinterDnD for a project of mine. I have the newest tkdnd installed in the newest Tcl\lib folder (activestate Tcl, it is installed in

Re: [Tkinter-discuss] active icons with drag-and-drop

2006-04-27 Thread Michael Lange
On Wed, 26 Apr 2006 18:48:10 -0400 Eric S. Johansson [EMAIL PROTECTED] wrote: I'm trying a user interface experiment. the first step involves dragging and dropping from one application onto an icon. subsequent steps will involve playing with the clipboard, icon changes, single click,

Re: [Tkinter-discuss] optionmenu insert

2006-05-02 Thread Michael Lange
On Mon, 01 May 2006 18:06:24 +0200 Pavel Kosina [EMAIL PROTECTED] wrote: Hi, I dont know how to dynamically add items to optionmenu. I found this http://aspn.activestate.com/ASPN/docs/ActiveTcl/iwidgets/optionmenu.n.html insert method, but it is not working or wrong done by me. w =

Re: [Tkinter-discuss] optionmenu insert

2006-05-03 Thread Michael Lange
On Tue, 02 May 2006 14:32:17 +0200 Pavel Kosina [EMAIL PROTECTED] wrote: Just found there is another trouble with this. Maybe I could help myself, but dont know how to get from tk documentation what you have written - how to know why command should be there, why [menu], etc. Hi Pavel,

Re: [Tkinter-discuss] optionmenu insert

2006-05-04 Thread Michael Lange
On Wed, 03 May 2006 13:37:31 +0200 Pavel Kosina [EMAIL PROTECTED] wrote: w['menu'].insert('end', 'command', label='blah', command=lambda : ok_new('blah')) this works with me even without new ok_new - with the old one: w['menu'].insert('end', 'command', label='blah',

Re: [Tkinter-discuss] A Hello and a Question

2006-05-04 Thread Michael Lange
On Wed, 03 May 2006 15:21:03 + Peter Lacroix [EMAIL PROTECTED] wrote: Thanks to Olivier for the sample structure. I think I understand it although I'm not very familiar with 'lambda'. Now Cameron has brought up a good point. By the way, this is an end-of-semester project for students.

Re: [Tkinter-discuss] Radio Buttons

2006-05-11 Thread Michael Lange
On Thu, 11 May 2006 11:07:27 + Peter Lacroix [EMAIL PROTECTED] wrote: Hi all, Let's say you had the following class below (MakeChoice) that was used to cast a vote. When the program is running, eventually the user will confirm choices made through some sort of SUBMIT button. When that

Re: [Tkinter-discuss] Scroll a table, but not the first two rows?

2006-05-31 Thread Michael Lange
On Wed, 31 May 2006 21:03:01 + Cameron Laird [EMAIL PROTECTED] wrote: On Wed, May 31, 2006 at 01:27:36PM -0700, Russell E. Owen wrote: . . . That's how I manage it. It's rather ugly, but it works. I sure wish Tkinter

Re: [Tkinter-discuss] Mouse wheel event for Canvas

2006-06-23 Thread Michael Lange
On Thu, 22 Jun 2006 14:24:46 +1000 John McMonagle [EMAIL PROTECTED] wrote: I tried binding mouse wheel events (Button-4, Button-5) to a Tkinter Canvas widget with the hope of using the event.delta value to subsequently scroll the Canvas. However, it seems that event.delta always returns 0.

Re: [Tkinter-discuss] application busy problem

2006-06-23 Thread Michael Lange
On Thu, 22 Jun 2006 12:05:43 +0200 Olivier Feys [EMAIL PROTECTED] wrote: Thank you for answering me Michael, Maybe my question is not well asked : Is it possible to launch an other thread, for example : - at the beginning of the application, before all the needed imports, a small

Re: [Tkinter-discuss] Dialog placement relative to main window or frame

2006-08-12 Thread Michael Lange
On Sat, 12 Aug 2006 17:13:53 -0400 Jeff Cagle [EMAIL PROTECTED] wrote: Hi all, I'm just learning, so I apologize in advance for a possibly dumb question. I want to create an interface that has info at the top, buttons down the left side, and then a large space on the bottom right.

Re: [Tkinter-discuss] bwidget progressbar

2006-09-13 Thread Michael Lange
On Wed, 13 Sep 2006 10:25:42 +0300 Ilknur Ozturk [EMAIL PROTECTED] wrote: Hi, I'm trying to use bwidget progressbar, but I could not find a page that explains its options and methods and gives some basic examples. If you know such a page, would you please send me its link? If no, can

Re: [Tkinter-discuss] bwidget progressbar

2006-09-14 Thread Michael Lange
On Wed, 13 Sep 2006 15:50:47 +0300 Ilknur Ozturk [EMAIL PROTECTED] wrote: Thanks Michael, I am new in Tk() and it will good for me if I can find samples for its usage. I found some on internet but they are very complex for me. In man pages, the options and methods are listed but there is no

Re: [Tkinter-discuss] Tkinter, threads? memory?

2006-09-21 Thread Michael Lange
On Wed, 20 Sep 2006 12:27:47 -0400 Michael M Haimes [EMAIL PROTECTED] wrote: 1-- Linux implementations of Python/Tkinter (the most current) seem to exhibit the problem, but not Sun/Solaris or Windows. Essentially, I can't animate objects on a canvas without leaking

Re: [Tkinter-discuss] Windows beautification

2006-11-22 Thread Michael Lange
On Wed, 22 Nov 2006 11:33:05 -0800 (PST) Sorin Schwimmer [EMAIL PROTECTED] wrote: Hi All, 1. I'd like to be able to put an icon on the titlebar. I read about using iconwindow together with a Label, but how? My code: from Tkinter import * import Image,ImageTk root=Tk()

Re: [Tkinter-discuss] Windows beautification

2006-11-23 Thread Michael Lange
On Wed, 22 Nov 2006 15:23:05 -0600 (CST) Sorin Schwimmer [EMAIL PROTECTED] wrote: I think you need a Toplevel() window instead of a Label. Michael I'm not sure I understand. Can you illustrate with an example? Thanks, Sorin from Tkinter import * root = Tk() top = Toplevel()

Re: [Tkinter-discuss] Windows beautification

2006-11-23 Thread Michael Lange
On Thu, 23 Nov 2006 08:22:25 -0800 (PST) Sorin Schwimmer [EMAIL PROTECTED] wrote: Same happens to me. I started exploring the Label idea based on Fredrik's Lundh suggestion in http://www.pythonware.com/library/tkinter/introduction/x9905-icon-methods.htm It may be that I misunderstood

[Tkinter-discuss] Ann.: Updated TkTreectrl wrapper

2006-12-04 Thread Michael Lange
Hi, I have uploaded an updated version of the Tkinter wrapper for the Tk treectrl widget (http://tktreectrl.sourceforge.net). The major change in this release is the introduction of a few new widget classes: _MultiListbox_ is a Treectrl widget set up to work as a (more or less) full-featured and

Re: [Tkinter-discuss] Sizing

2006-12-24 Thread Michael Lange
On Sun, 24 Dec 2006 16:42:45 -0500 Jeff Cagle [EMAIL PROTECTED] wrote: This is an ignorant question, so thanks in advance for your patience. I'm trying to code a card game, and I have lots of little .gif's used to display card images as follows: from Tkinter import * import Image,

Re: [Tkinter-discuss] Using PIL with Tkimg

2007-01-07 Thread Michael Lange
On Sun, 07 Jan 2007 13:42:11 +0100 Fredrik Lundh [EMAIL PROTECTED] wrote: Michael Lange wrote: I want to display different image formats in a Tkinter.Canvas and be able to scale the images to a requested size. I noticed that some images look better when using Tkimg than with PIL, which

Re: [Tkinter-discuss] Making a keyboard

2007-01-18 Thread Michael Lange
On Wed, 17 Jan 2007 16:48:02 -0700 Bob Greschke [EMAIL PROTECTED] wrote: I'm making a popup keyboard for some touchscreen input. I have, for example, got: Button(KBFrm, text = 1, command = Command(kbhit, 1)... def kbhit(K, e = None): Root.event_generate(+K+)

[Tkinter-discuss] ANN: Updated TkTreectrl wrapper module

2007-01-22 Thread Michael Lange
Hello all, there is an updated version of the TkinterTreectrl package available at http://klappnase.zexxo.net/TkinterTreectrl/index.html . The new version (0.7) includes all the features added in treectrl-2.2 , plus a few bug fixes. I also included a patch for treectrl-2.2.1 that fixes a

Re: [Tkinter-discuss] Tkinter-discuss Digest, Vol 35, Issue 20

2007-01-26 Thread Michael Lange
On Thu, 25 Jan 2007 23:44:02 +0530 Vinu Vikram [EMAIL PROTECTED] wrote: Thanks Michael! But I have already tried ./configure make make install without editing the Setup file. But then I could not import Tkinter module from python. regards Vinu V. Hi Vinu, are you sure that the tcl

Re: [Tkinter-discuss] radiobutton initial selection

2007-01-30 Thread Michael Lange
On Mon, 29 Jan 2007 23:41:03 + (UTC) Howard Lightstone [EMAIL PROTECTED] wrote: I am trying to get a radiobutton without an indicator to show selection state. Calling .invoke() in the widget causes all the callback things to happen but ... The button does NOT show the 'selected'

[Tkinter-discuss] ImageTk.PhotoImage and semi-transparent images

2007-02-01 Thread Michael Lange
Hello, I noticed that some images do not display correctly when using an ImageTk.PhotoImage . It seems like this only affects images containing semi-transparent pixels (?); I have uploaded an example of what I mean to http://klappnase.zexxo.net/Tkimg_vs_PIL.html. Does anyone know if there is

Re: [Tkinter-discuss] Unicode characters in canvas postscript

2007-03-20 Thread Michael Lange
On Tue, 20 Mar 2007 11:12:32 - [EMAIL PROTECTED] wrote: Hello Vasilis, I want to add print to postscript functionality on my program. I have used the postscript method of Canvas, and it works nicely apart from all no-latin (Unicode) characters. On the screen appear Ok but on the

Re: [Tkinter-discuss] Pressing buttons

2007-04-04 Thread Michael Lange
On Wed, 04 Apr 2007 13:26:35 +1000 John McMonagle [EMAIL PROTECTED] wrote: Bob Greschke wrote: You want to do something like this: from Tkinter import * Root = Tk() EntryVar = StringVar() def doSomething(e = None): print EntryVar.get() return Sub = Frame(Root)

Re: [Tkinter-discuss] Per-state option sintax in TkTreectrl

2007-07-30 Thread Michael Lange
On Thu, 26 Jul 2007 15:41:36 +0500 Dmitry Gerasimov [EMAIL PROTECTED] wrote: Hello! I'm trying to release example from tktreectrl named biglist.tcl using wraper TkTreectrl. There are some lines in tcl source like $T style layout $S eRectTop.e -detach yes -indent no -iexpand xy -draw {yes

Re: [Tkinter-discuss] Tix HList missing at least one method

2007-08-31 Thread Michael Lange
On Wed, 29 Aug 2007 15:54:46 -0400 Ron Provost [EMAIL PROTECTED] wrote: According to the Tix documentation online, HList has an info_bbox() method which returns the bounding box of a given item in the HList. However, when I try to call this method, I get an attribute error. Looking at

Re: [Tkinter-discuss] widget focus switching problems.

2007-10-15 Thread Michael Lange
On Sat, 13 Oct 2007 03:52:43 -0500 Nicholas [EMAIL PROTECTED] wrote: I'm having difficulty switching focus between widgets in my program. This is a mostly non-functioning GUI to be used for database creation, saving and retreival. The code currently looks horrifyingly unPythonic since I'm

Re: [Tkinter-discuss] how to remove window borders

2008-01-11 Thread Michael Lange
On Fri, 11 Jan 2008 14:12:28 +0530 brindly sujith [EMAIL PROTECTED] wrote: hi i am developing a GUI application using TKINTER in my applicaton i dont want the window title bar(including MAX,MIN and CLOSE) how to do this plz send me the code for this Hi Brindly, you will need to

Re: [Tkinter-discuss] tk_focusNext and tkfocusPrev

2008-02-16 Thread Michael Lange
On Wed, 13 Feb 2008 08:30:01 -0800 (PST) HWJ [EMAIL PROTECTED] wrote: The sad news, it's just broken and nobody fixes it (for years). See http://bugs.python.org/issue799428 It works for me (debian etch, Python-2.4.4), so I cannot verify this, but I suspect that setting

Re: [Tkinter-discuss] tkinter coordinates, conversion

2008-03-30 Thread Michael Lange
On Sun, 30 Mar 2008 15:37:35 +0200 Fredrik Lundh [EMAIL PROTECTED] wrote: Ron Provost wrote: Is there any way in tkinter to convert between coordinate systems? Specifically, I'm refering to the canvas. I'm getting x and y's back in mouse events and I would like to convert them back

Re: [Tkinter-discuss] Strange behavior with python 2.5

2008-11-16 Thread Michael Lange
On Sat, 15 Nov 2008 19:41:39 -0200 Guilherme Polo [EMAIL PROTECTED] wrote: When you get a _tkinter.Tcl_Obj it means _tkinter wasn't able to detect and convert a received tcl object to a python object. When this happens the best you can do is get the string representation of the object by

Re: [Tkinter-discuss] Strange behavior with python 2.5

2008-11-16 Thread Michael Lange
On Sun, 16 Nov 2008 17:18:54 -0200 Guilherme Polo [EMAIL PROTECTED] wrote: On Sun, Nov 16, 2008 at 4:59 PM, Vasilis Vlachoudis [EMAIL PROTECTED] wrote: Finally I didn't understand, is it a problem of Tkinter or Tk/Tcl? It is not really a problem. But if you want to blame someone, go for

Re: [Tkinter-discuss] Strange behavior with python 2.5

2008-11-17 Thread Michael Lange
On Sun, 16 Nov 2008 19:21:34 -0200 Guilherme Polo [EMAIL PROTECTED] wrote: On Sun, Nov 16, 2008 at 6:59 PM, Michael Lange [EMAIL PROTECTED] wrote: On Sun, 16 Nov 2008 17:18:54 -0200 Guilherme Polo [EMAIL PROTECTED] wrote: On Sun, Nov 16, 2008 at 4:59 PM, Vasilis Vlachoudis [EMAIL

Re: [Tkinter-discuss] Python2.5.1+Tkinter+Tile0.8.2

2009-01-12 Thread Michael Lange
On Mon, 12 Jan 2009 15:40:35 + Cameron Laird came...@phaseit.net wrote: On Fri, Jan 02, 2009 at 04:17:29PM +, Nawal Galileon Husnoo wrote: . . . I'm just starting out in Python Tkinter programming, and I tried to use

Re: [Tkinter-discuss] From wxPython to TK

2009-03-20 Thread Michael Lange
On Thu, 19 Mar 2009 08:51:38 -0700 Tim Jones t...@tolisgroup.com wrote: snip You can get the DPI value on Linux using xdpyinfo | grep resolution in a terminal. You can even do this from Tk, just type: dpi_value = root.winfo_fpixels('1i') (where root is your Tk() window) to get the

Re: [Tkinter-discuss] Changing the label of a tix.NoteBook tab

2009-04-25 Thread Michael Lange
On Sat, 25 Apr 2009 22:29:31 +0930 Luke Maurits l...@maurits.id.au wrote: snip After reading the class definition for NoteBook in /usr/lib/python3.0/tkinter/tix.py, making a guess about the meaning of the tk.call method, and looking at this webpage:

Re: [Tkinter-discuss] Changing the label of a tix.NoteBook tab

2009-04-25 Thread Michael Lange
On Sat, 25 Apr 2009 23:31:00 +0930 Luke Maurits l...@maurits.id.au wrote: Hallo Michael, snip obviously the pageconfigure() method is missing from Tix.py, so this is perfectly what you are suposed to do :) If you wish you can do the same a bit shorter:

Re: [Tkinter-discuss] copy-enabled Label

2009-05-24 Thread Michael Lange
Hi, On Sun, 24 May 2009 10:30:03 +0200 Michael O'Donnell michael.odonn...@uam.es wrote: Hi O.C. The following code shows how to use an Entry widget which ignores all key presses except Control-c and Control-x (copy and cut at least under windows). from Tkinter import * def

Re: [Tkinter-discuss] Adding Command-Button-1 to a Listbox

2009-05-26 Thread Michael Lange
Hi Bob, On Tue, 26 May 2009 10:31:26 -0600 Bob Greschke b...@passcal.nmt.edu wrote: I'd like to add Command-Button-1 (i.e. use the Command key on a Mac) event handling to a Listbox so that it behaves just like the Control- Button-1 built-in behavior (selecting/deselecting individual items

Re: [Tkinter-discuss] IntVar() not being attached to Checkbutton

2009-06-10 Thread Michael Lange
Hi Adam, On Wed, 10 Jun 2009 15:19:14 -0500 Adam Kadzban akadz...@iit.edu wrote: (...) boxes and entry boxes so you can change the option list. Here's the relevant code: ... self.tVar = IntVar() ... self.tempbutton = Checkbutton(self.tophalf,variable=self.tVar,text=Calculate

Re: [Tkinter-discuss] How to direct a text on Tkinter

2009-08-16 Thread Michael Lange
On Sun, 16 Aug 2009 11:32:57 -0700 (PDT) Sorin Schwimmer sx...@yahoo.com wrote: I suggest to have a look at tkZinc (www.tkzinc.org). It is a Canvas+ +, so to speak, and I was able to make small maps of the how to find us kind. Some street names were shown horizontally, some vertically; I

Re: [Tkinter-discuss] Horizontal scroll canvas

2009-09-15 Thread Michael Lange
Hi, On Tue, 15 Sep 2009 13:48:50 -0400 Bradley Hintze bradle...@aggiemail.usu.edu wrote: I am trying to make a scrollable canvas in the horizontal direction but I am having a difficult time. I get the whole scroll bar and can scroll using the arrows on the ends of the scroll bar but the

Re: [Tkinter-discuss] Threading issue with Tkinter Frame.insert

2009-09-18 Thread Michael Lange
Hi Moray, On Fri, 18 Sep 2009 06:00:16 -0400 Moray Grieve m...@progress.com wrote: The code fragment below has an example where a Tk GUI is launched as a separate thread - this all works fine in Python 2.5, but in Python 2.6 the thread hangs. The issue seems to be in the line;

Re: [Tkinter-discuss] Need help on gui focus l

2009-10-15 Thread Michael Lange
Hi, On Wed, 14 Oct 2009 17:07:30 -0300 Cam Farnell ms...@bitflipper.ca wrote: The code given exhibits the problem on my Ubuntu Linux box. For the sake of clarity I enumerate three windows involved in this code: - The MAIN window which has a button marked popup in it. - The CHILD windows

Re: [Tkinter-discuss] Need help on gui focus l

2009-10-15 Thread Michael Lange
On Thu, 15 Oct 2009 06:15:30 -0300 Cam Farnell ms...@bitflipper.ca wrote: The behavior of your tcl script is identical to the Python code so it's not Python causing the problem. I'm running Ubuntu 8.04 (Hardy), Python 2.5.2 and I don't know enough about tcl to find out its version. The file

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 michael.odonn...@uam.es 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

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 michael.odonn...@uam.es 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

Re: [Tkinter-discuss] How to set optionmenu without setting the variable

2009-11-04 Thread Michael Lange
Hi, On Wed, 4 Nov 2009 08:23:39 -0500 david.gie...@kodak.com wrote: I don't believe there is any way to create an OptionMenu without using a Tk variable. Actually you can: code from Tkinter import * root = Tk() om = OptionMenu(root, None, '1', '2') om.pack(padx=100, pady=100) items =

Re: [Tkinter-discuss] Python with Snack

2009-12-03 Thread Michael Lange
Hi, On Wed, 2 Dec 2009 19:25:32 -0800 (PST) chachachacha chao.alb...@gmail.com wrote: Hi everyone, I have been trying to install the Snack library (so I can run it with Python 2.5.4). I have Windows Vista and have been trying to install through the command line. I have downloaded the

Re: [Tkinter-discuss] Cursor coordinates

2009-12-04 Thread Michael Lange
Hi, On Fri, 4 Dec 2009 19:31:07 +0100 Michael O'Donnell michael.odonn...@uam.es wrote: Hi Vasilis, A general method on all widgets; w.winfo_pointerxy() Returns a tuple (x, y) containing the coordinates of the mouse pointer relative to w's root window. If the mouse pointer isn't

Re: [Tkinter-discuss] Cursor coordinates

2009-12-04 Thread Michael Lange
On Fri, 4 Dec 2009 19:49:02 + Cameron Laird came...@phaseit.net wrote: On Fri, Dec 04, 2009 at 08:39:23PM +0100, Michael Lange wrote: . . . I think Vasilis meant how to find the coords of the text's insertion cursor

Re: [Tkinter-discuss] Persuading after_idle callback to only get called when the window is mapped

2010-01-10 Thread Michael Lange
Hi Geoff, On Sat, 9 Jan 2010 23:06:17 +0100 Geoff Bache geoff.ba...@gmail.com wrote: Hi all, I'm trying to add an idle callback via the after_idle method, called before mainloop. The problem is that I want to interact with the GUI widgets (doing very basic GUI testing) from this callback

Re: [Tkinter-discuss] Persuading after_idle callback to only get called when the window is mapped

2010-01-12 Thread Michael Lange
Hi Geoff, (...) I have got something that seems to work now, which is to create a thread, call wait_visibility in it and then add the idle handler, and then call update_idletasks at the beginning of the idle handler. Feels to me like all that fuss shouldn't really be necessary, but there

Re: [Tkinter-discuss] Persuading after_idle callback to only get called when the window is mapped

2010-01-13 Thread Michael Lange
Hi Geoff, On Wed, 13 Jan 2010 20:38:53 +0100 Geoff Bache geoff.ba...@gmail.com wrote: (...) Hi Michael, I'm trying to write a basic GUI testing tool (in fact, I'm trying to add basic Tkinter support to PyUseCase, which has only worked with PyGTK so far) The basic plan when replaying is

Re: [Tkinter-discuss] Persuading after_idle callback to only get called when the window is mapped

2010-01-13 Thread Michael Lange
Hi Geoff, On Wed, 13 Jan 2010 22:41:55 +0100 Geoff Bache geoff.ba...@gmail.com wrote: (...) Hi Michael, Thanks for your detailed reply. I feel also that there should be a simpler solution and I can't say I *want* to use threads exactly. What I think you're missing above is that a GUI

Re: [Tkinter-discuss] Persuading after_idle callback to only get called when the window is mapped

2010-01-16 Thread Michael Lange
Hi Geoff, On Fri, 15 Jan 2010 21:13:22 +0100 Geoff Bache geoff.ba...@gmail.com wrote: Hi again Michael, Hmm, from your previous posts I thought you would just do the call to root.after_idle(self.replayEvents) right before root.mainloop() ? If so, why not do    root.deiconify()  

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi Geoff, On Tue, 26 Jan 2010 10:11:31 +0100 Geoff Bache geoff.ba...@gmail.com wrote: Hi all, How would you add some code that is called when the application is terminated, that is independent of whether it was closed via the window manager or via some programmatic call within the

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi Geoff, On Tue, 26 Jan 2010 13:45:49 +0100 Geoff Bache geoff.ba...@gmail.com wrote: (...) Hi Michael, Yes, I'd seen that, but it doesn't really fit the criteria of being independent of how it's closed. As far as I can see it will get called when the window's close button is pressed,

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi, On Tue, 26 Jan 2010 20:00:56 +0100 Geoff Bache geoff.ba...@gmail.com wrote: Hi again Michael, Why doesn't it work to bind to Destroy like I did? That seemed the intuitive way to go, and it seems to work on Linux... I don't have a windows box at hand, so I cannot tell. On my

Re: [Tkinter-discuss] Exiting a Tkinter Program-- An Anomaly or two

2010-02-13 Thread Michael Lange
Hi, On Fri, 12 Feb 2010 17:00:18 -0800 Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I have no qualms about sending you the code. The code by itself would not be executable though unless I provide several files. The critical ones are a jpg, which is used to fill the initial display area,

Re: [Tkinter-discuss] Kind of the old intercept the Entry() tab key question

2010-02-25 Thread Michael Lange
Hi Bob, On Wed, 24 Feb 2010 17:15:34 -0700 Bob Greschke b...@passcal.nmt.edu wrote: I know this must have been handled before (but I can find no evidence of it), but what I want to do is have an entry field for filespecs (path+filename) that is on the same 'form' with other entry fields and

Re: [Tkinter-discuss] Restoring scroll position in a scrolled text window

2010-03-17 Thread Michael Lange
Hi Mick, On Tue, 16 Mar 2010 18:22:00 +0100 Michael O'Donnell michael.odonn...@uam.es wrote: Hi all, Under Windows with python 2.6.4 Tkinter 8.5 I am trying to find a way to restore exactly the same scroll position in a scrolled text widget, after deleting all text and re-inserting

Re: [Tkinter-discuss] Labels not updating its display data

2010-04-01 Thread Michael Lange
Hi Guido, On Thu, 01 Apr 2010 00:02:36 -0600 Guido Carballo-Guerrero char...@me.com wrote: Is it possible to display and update data using labels in a window, created by another window? This is a program I did that is not working as expected: (...) def newcount(): root2 =

Re: [Tkinter-discuss] Tkinter-discuss Digest, Vol 74, Issue 2

2010-04-02 Thread Michael Lange
Hi Guido, On Fri, 02 Apr 2010 12:32:03 -0600 Guido Carballo-Guerrero char...@me.com wrote: Michael; Thank you very much. I'm kinda new to Python and Tkinter, and didn't know anything about Toplevel, that was exactly what I need. But tell me, why I can't use two instances of Tk? The way I

Re: [Tkinter-discuss] background threading

2010-04-07 Thread Michael Lange
Hi, On Tue, 06 Apr 2010 18:37:42 -0400 Kevin Walzer k...@codebykevin.com wrote: On 4/6/10 5:03 PM, Nemes Andrei wrote: Another solution to the problem would be pointing me to a more convenient tray icon constructor (instructions how to use would be greatly appreciated) if you know

Re: [Tkinter-discuss] from where can I download and install ttk?

2010-04-21 Thread Michael Lange
Hi, On Tue, 20 Apr 2010 14:41:11 -0700 Guido Carballo-Guerrero char...@me.com wrote: Hello, I have install in my computer Python 2.6.5, but I just realize that Tkinter for this version don't have ttk install. Does anybody know from where can I download ttk to install it. ttk is in a

Re: [Tkinter-discuss] How can I tell Tkinter where to look for Tcl/Tk?

2010-04-23 Thread Michael Lange
Hi, On Thu, 22 Apr 2010 06:33:22 -0700 Guido Carballo-Guerrero char...@me.com wrote: Hello, I have a Mac, running OS X 10.6.3, and have Python 2.6.4 install. I already install ttk, got it from: http://pypi.python.org/pypi/pyttk But when I try to use ttk, it with me the following error:

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

2010-04-28 Thread Michael Lange
Hi, On Tue, 27 Apr 2010 15:44:39 -0700 Guido Carballo-Guerrero char...@me.com wrote: How can I get back into a while loop if I go to a new pop-up toplevel window, that is created when I press one button. I'm attaching a sample of the code that I'm trying to make. The problem that I have is

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

2010-04-28 Thread Michael Lange
Hi, On Wed, 28 Apr 2010 09:38:52 -0700 Guido Carballo-Guerrero char...@me.com wrote: Michael; What I did to solve the problem, was put the while loop inside of a function, so when I'm exiting the toplevel windows, I call that function, in that way I get back into the while loop. Is there a

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

2010-04-29 Thread Michael Lange
Hi, On Wed, 28 Apr 2010 14:21:21 -0700 Guido Carballo-Guerrero char...@me.com wrote: Wayne, Michael; This is a sample code that shows what I'm doing. As you can see, even if I don't have a while loop, the picture is not being shown. Am I missing something? What is wrong with my code

Re: [Tkinter-discuss] OptionMenu Cannot Receive Keyboard Focus?

2010-05-26 Thread Michael Lange
Hi, On Wed, 26 May 2010 12:06:33 -0500 Lowe, Paul J (AS) paul.l...@ngc.com wrote: Hi, I've made a Tkinter gui composed of labels, entries, and optionmenus. When I enter data on the keyboard and use the tab key to switch to the next widget in the GUI, it always skips the OptionMenus

Re: [Tkinter-discuss] OptionMenu text justification

2010-05-28 Thread Michael Lange
Hi Gary, On Thu, 27 May 2010 15:33:59 -0700 Gary Scorby gary.sco...@harlandfs.com wrote: I'm new to Tkinter. I need a drop down box to display a selection list to an end user. It appears the best option for this is OptionMenu (If not, please suggest other options). I have it working like

  1   2   3   4   >