Re: [Tkinter-discuss] Detecting tk/tcl include library path

2019-10-15 Thread E
El 15/10/2019 a las 01:02 p. m., Vasilis Vlachoudis escribió: Hi all, how can I detect in a makefile the path of the include C header files of tk/tcl? Two ways. There is no tk-config program to return it like other package. In the default configuration, both Tcl and Tk provides .pc files to

Re: [Tkinter-discuss] busy mouse cursor for application

2019-11-28 Thread E
El 28/11/2019 a las 09:59 a. m., Vasilis Vlachoudis escribió: Hi all, how can I display the cursor as the watch for the whole application. When I set it on the toplevel window as self.toplevel.config(cursor="watch") it displays the cursor almost everywhere (I believe where the cursor is "") exce

Re: [Tkinter-discuss] 4k HiDPI displays and tkinter

2021-07-12 Thread E Paine
> - all widths like borderwidths, decorations, separators etc, set in > pixels do not scale with the dpi settings. Could we use "mm" for their > settings instead? Definitely! The defaults in Tk use pixels, but you can use mm for lengths: tk.Label(root, text="foo", borderwidth="5mm", relief="groove

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

2009-01-12 Thread Russell E. Owen
In article <20090112154035.ga11...@lairds.us>, Cameron Laird wrote: > On Fri, Jan 02, 2009 at 04:17:29PM +, Nawal Husnoo wrote: > . > . > . > > I'm just starting out in Python Tkinter programming, and I tried to use the > > T

[Tkinter-discuss] Redefine quit menu item on Mac to quit from a Twisted/Tkinter application?

2009-04-07 Thread Russell E. Owen
Anyone know how to redefine what the File>Quit menu item does on MacOS X using Aqua Tcl/Tk? I am trying to convert a cross-platform application to use Twisted, and unfortunately this seems to make the pre-existing Quit menu item on MacOS X do *nothing*. I can't quit the application without usin

Re: [Tkinter-discuss] Redefine quit menu item on Mac to quit from a Twisted/Tkinter application?

2009-04-08 Thread Russell E. Owen
In article <49dbc5c4.9050...@codebykevin.com>, Kevin Walzer wrote: > Russell Owen wrote: > > > > > The normal Quit menu item has always worked fine for me until I switched > > to using Twisted framework. Now it does nothing. > > I wonder if it's a conflict between the Tk and Twisted event lo

Re: [Tkinter-discuss] Execute Python callback from Tk widgets

2009-10-07 Thread Russell E. Owen
self.debug: print "registering tcl function %s for python function %s" % (self.tclFuncName, func) self.tkApp.createcommand(self.tclFuncName, self) def __call__(self, *args): try: self.func(*args) except (SystemExit, KeyboardInterrupt):

Re: [Tkinter-discuss] Python with Snack

2009-12-03 Thread Russell E. Owen
In article <4b17df49.4030...@codebykevin.com>, Kevin Walzer wrote: > On 12/3/09 10:40 AM, Michael Lange wrote: > > > > I don't know what's going wrong here, but I think it should be fine to > > simply copy the tkSnack module into Python's site-packages folder. > > > > Will distutils/setuptools

Re: [Tkinter-discuss] Python with Snack

2009-12-04 Thread Russell E. Owen
In article <4b1864db.2090...@velseis.com.au>, John McMonagle wrote: >... > Although I'm not on windows, it seems to me that you are in the wrong > folder when you try to run setup.py. Try changing to the appropriate > folder first: > > cd C:\Users\user\Desktop\snack\python > setup.py install >

[Tkinter-discuss] constraining toplevel windows to be on screen?

2010-05-04 Thread Russell E. Owen
I've received a bug report that my application's windows can appear off screen. This happens when a user has two monitors and saves window positions, then runs again later with only one monitor. Tkinter is apparently perfectly happy to display toplevel windows entirely off screen. At least on M

Re: [Tkinter-discuss] constraining toplevel windows to be on screen?

2010-05-06 Thread Russell E. Owen
In article , "Russell E. Owen" wrote: > I've received a bug report that my application's windows can appear off > screen. This happens when a user has two monitors and saves window > positions, then runs again later with only one monitor. Tkinter is > appar

Re: [Tkinter-discuss] What's the point of Toplevel.wait_window?

2010-05-10 Thread Russell E. Owen
In article , Geoff Bache wrote: > Hi all, > > I'm struggling to understand what the wait_window method on > Tkinter.Toplevel objects actually achieves. > > It seemed on the surface like it would make the dialog modal, but it > doesn't do that. The "grab_set" method achieves that. > > I reali

Re: [Tkinter-discuss] add/remove button in runtime

2010-07-26 Thread Russell E. Owen
In article <29254237.p...@talk.nabble.com>, petroff wrote: > I want to allow changing in (sorted) list of buttons: > self.ADRbuttons=[B1,B2...] > REMOVE => button.destroy (it works correctly) > ADD is a problem; I don't know how to insert button on correct location in > button panel (pack method

[Tkinter-discuss] tkFileDialog halts the program while up. Any way around this?

2010-10-22 Thread Russell E. Owen
When a tkFileDialog is open my program stops processing other events on Mac OS X. The program is a client that needs to regularly process data from a server, and it would be much better if it could keep processing that data. Has anyone figured a way around this that still offers a platform-sta

Re: [Tkinter-discuss] problem with pylab/tkinter?

2010-10-25 Thread Russell E. Owen
I don't think you should mix pylab with matplotlib object API programming (or even the Tkinter event loop), though it may be safe if you are just displaying a plot in a standalone window. It takes a bit more work, but the object API lets you mix matplotlib plots freely with other Tkinter elemen

Re: [Tkinter-discuss] how make active python 3 use active tcl on mac os?

2010-11-29 Thread Russell E. Owen
In article , David Cortesi wrote: > I apologize that this question is somewhat unique to the ActiveState free > products, not the generic Python. I asked the question at the ActiveState > support forum but it appears to be dead. > > I installed ActiveState Python 3.1.4, and also ActiveState Tc

Re: [Tkinter-discuss] Segfault in Image.PhotoImage on OS X

2012-04-27 Thread Russell E. Owen
In article , Marc Culler wrote: > This was reported here in February, but no debugging information was > provided by the reporter: > http://stackoverflow.com/questions/9142786/python-imagetk-photoimage-segfault > http://stackoverflow.com/questions/9142786/python-imagetk-photoim > age-segfault>

[Tkinter-discuss] Checkbutton indicatoron ignored on Mac

2012-10-25 Thread Russell E. Owen
I just realized that the Checkbutton option "indicatoron" is being ignored on Mac OS X: the checkbox is always shown, even if indicatoron is false. I'm using ActiveState's Tcl/Tk 8.5.11, specifically: ActiveTcl8.5.11.1.295590-macosx10.5-i386-x86_64-threaded Has anyone else noticed this, and is

Re: [Tkinter-discuss] Checkbutton indicatoron ignored on Mac

2012-10-29 Thread Russell E. Owen
In article <5089c2e8.6060...@codebykevin.com>, Kevin Walzer wrote: > On 10/25/12 12:15 PM, Russell E. Owen wrote: > > I just realized that the Checkbutton option "indicatoron" is being > > ignored on Mac OS X: the checkbox is always shown, even if indicatoron &g

Re: [Tkinter-discuss] Checkbutton indicatoron ignored on Mac

2012-10-29 Thread Russell E. Owen
In article , Ned Deily wrote: > In article , > "Russell E. Owen" wrote: > > > I just realized that the Checkbutton option "indicatoron" is being > > ignored on Mac OS X: the checkbox is always shown, even if indicatoron > > is false.

Re: [Tkinter-discuss] Checkbutton indicatoron ignored on Mac

2012-10-30 Thread Russell E. Owen
In article <508ff0e3.5080...@codebykevin.com>, Kevin Walzer wrote: > On 10/29/12 4:39 PM, Russell E. Owen wrote: > > > > > It also shows up in tcl (e.g. paste this into wish): > > checkbutton .b -text "Foo" -indicatoron 0 > > pack .b > >

Re: [Tkinter-discuss] Python 3.4.0 alpha 2 available

2013-09-16 Thread Russell E. Owen
In article , Ned Deily wrote: > I would like call your attention to the latest alpha release of Python > 3.4.0 and a new batteries-included feature for OS X users. For > 3.4.0.a2, the python.org 64-bit/32-bit installer now includes its own > private version of Tcl/Tk 8.5.14 so it is no longe

Re: [Tkinter-discuss] Python 3.4.0 alpha 2 available

2013-09-24 Thread Russell E. Owen
In article <5240f7e1.3000...@codebykevin.com>, Kevin Walzer wrote: > On 9/23/13 3:49 PM, Russell E. Owen wrote: > > I have not yet tried to come up with a minimal bit of code that shows > > the problem, but it sounds as if perhaps I should. > > That would be helpfu

Re: [Tkinter-discuss] Python 3.4.0 alpha 2 available

2013-09-24 Thread Russell E. Owen
In article , Ned Deily wrote: > In article <5240f7e1.3000...@codebykevin.com>, > Kevin Walzer wrote: > > On 9/23/13 3:49 PM, Russell E. Owen wrote: > > > I have not yet tried to come up with a minimal bit of code that shows > > > the problem, but it soun

Re: [Tkinter-discuss] Python 3.4.0 alpha 2 available

2013-09-24 Thread Russell E. Owen
In article <524205e7.3060...@codebykevin.com>, Kevin Walzer wrote: > On 9/24/13 5:09 PM, Russell E. Owen wrote: > > Here you go. The appended code crashes when I push the button. > > If I don't mess with the menu bar then it does not crash. > > I see the crash,

Re: [Tkinter-discuss] Python 3.4.0 alpha 2 available

2013-09-25 Thread Russell E. Owen
In article <5242e9cb.3060...@codebykevin.com>, Kevin Walzer wrote: > Hi Russell, > > On 9/24/13 8:23 PM, Russell E. Owen wrote: > > Well, naturally the prime purpose is to demonstrate the crash. However, > > if you use 8.5.11 or if you comment out the menu-related s

Re: [Tkinter-discuss] Idle bug under MacOSX Maverick

2013-10-23 Thread Russell E. Owen
In article , "Michael O'Donnell" wrote: > Dear all, > > not sure this is the right place to send this, but > can't find an email list for Idle. > > Installed OSX 10.9 (Maverick) this morning, > and then opened Idle (as packaged with > Python 3.4.0 alpha 4 from the python.org release). > >

[Tkinter-discuss] Crash when changing fonts

2013-10-24 Thread Russell E. Owen
(approximate copy of message posted to tcl-mac) I distribute a Mac application based on Tkinter that crashes when a user updates certain preferences that use the option database, including font size and some colors. It works OK with Tcl/Tk 8.5.11, but crashes using 8.5.12, 8.5.12.1, 8.5.13 and

Re: [Tkinter-discuss] Crash when changing fonts

2013-10-30 Thread Russell E. Owen
In article , "Russell E. Owen" wrote: > (approximate copy of message posted to tcl-mac) > > I distribute a Mac application based on Tkinter that crashes when a user > updates certain preferences that use the option database, including font > size and some colors

Re: [Tkinter-discuss] Get value instead of PY_VAR

2013-11-15 Thread Russell E. Owen
In article <5284f448.7050...@codebykevin.com>, Kevin Walzer wrote: > I'm going around in circles trying to serialize some app configuration > data in my Tkinter app via pickle, and I'd appreciate some help. > > I set various app configurations via checkboxes and StringVar(). > Sometimes the v

[Tkinter-discuss] Custom cursor?

2005-02-24 Thread Russell E. Owen
I'd like to create a few custom cursors Tkinter (including a magnifying glass). >From reading the documentation I could find, it appears that the only cross-platform way to specify cursors in Tk is using Tk_GetCursorFromData*. Unfortunately, I can't seem to figure out how to run this from Tkin

[Tkinter-discuss] Re: Custom cursor?

2005-03-01 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Michael Lange <[EMAIL PROTECTED]> wrote: > You have to use a tuple instead of a string (at least if you want to use a > two-colored cursor), like this: > > mycursor = ('@/usr/X11R6/include/X11/bitmaps/cntr_ptr', > '/usr/X11R6/include/X11/bitmaps/cntr_ptrmsk', 'b

[Tkinter-discuss] Re: Modal dialog behavior

2005-03-22 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Michael Lange <[EMAIL PROTECTED]> wrote: > I encoutered a strange behavior of modal dialog windows on linux, which > depends on the window manager I use. > I use a message box to notify the user that a process that takes a while has > finished. > Now when I switc

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

2005-04-27 Thread Russell E. Owen
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 would be useful for displaying very long path names. It might be even nicer to t

Re: [Tkinter-discuss] Tkinter and threading

2005-05-09 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Vania Smrkovski <[EMAIL PROTECTED]> wrote: > Hello, > New to this group, and I have not found much in the way of documentation > for advanced uses of Tkinter, yet. So far, Tk3k is the most advanced > resource I have found yet. > I am trying to implement

[Tkinter-discuss] Avoiding memory leaks using tk.call

2005-07-07 Thread Russell E. Owen
I'm writing code that retrieves URLs to files on disk using tcl's http module. (Why bother? See P.S.) So far, so good, but I'm a bit worried I may be leaking memory. Thus I open the output file and start the transfer with: self._tclFile = self._tkApp.call('open', self.toPath, mode) mode,)) self.

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

2005-11-16 Thread Russell E. Owen
uot;registering tcl function %s for python function %s" % (self.tclFuncName, func) self.tkApp.createcommand(self.tclFuncName, self) def __call__(self, *args): try: self.func(*args) except (SystemExit, KeyboardInterrupt): raise

Re: [Tkinter-discuss] separation gui from logic

2005-11-21 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Pavel Kosina <[EMAIL PROTECTED]> wrote: > In Tkinter I try put to gui design into one file, and in another file > do: import gui design file and the script logic itself. > I am not much successful, especially at callback functions, that are > included in gui desi

[Tkinter-discuss] Trouble quitting a Tkinter app on Windows

2006-03-17 Thread Russell E. Owen
I have a Python/Tkinter application that runs on various platforms. When the user selects "quit", I call root.quit() or sys.exit(0) (newer vs. older version of the code). This works on all platforms except Windows. On Windows when the user quits (which calls quit on the root toplevel), it alway

[Tkinter-discuss] tkFont issue; what patch will fly?

2006-03-29 Thread Russell E. Owen
Tkinter's support for tk named fonts has problems. tk named fonts allow one to change the font of a set of widgets all at the same time, e.g. to support user-specified fonts. One can create a tk named font, add an entry to the tk option database, and then new widgets of the appropriate type wil

Re: [Tkinter-discuss] tkFont issue; what patch will fly?

2006-03-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Jeff Epler <[EMAIL PROTECTED]> wrote: > This sounds similar to the problem with Tk images and Python refcounting. > > If there's a better solution for fonts, maybe it can be applied to > images too. If there's not a clearly better solution, fonts should do > the

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

2006-05-31 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Michael Lange <[EMAIL PROTECTED]> wrote: > On Wed, 31 May 2006 13:06:57 +0200 > Chris Niekel <[EMAIL PROTECTED]> wrote: > > > On Wed, May 31, 2006 at 02:45:20AM -0700, Mohammad Tayseer wrote: > > >Why don't you separate the table from the header? The header sh

Re: [Tkinter-discuss] return value in event handler

2007-01-12 Thread Russell E Owen
In article <[EMAIL PROTECTED]>, Alexander Belchenko <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I saw recipe in Python Cookbook about multilistbox implementation. > (see code below). I try to understand why for event handlers > have return value 'break'. Thi

[Tkinter-discuss] The default renderer renders the component just as it would have if the custom tag or renderer were not used.

2007-01-14 Thread Gilbert E. Hurst
Currently, no simple solutions exist to tackle this possible conflict. Code Example 1 performs all three steps, printing Hello, world! Each of those JavaScript arrays includes the displayed label and the actual value of an item in the combobox. It is not as strict and more based on the "honor"

Re: [Tkinter-discuss] Find_closest, bbox, and weirdness

2007-01-18 Thread Russell E Owen
In article <[EMAIL PROTECTED]>, Jeff Cagle <[EMAIL PROTECTED]> wrote: > So I was trying to pretty up a GUI. It took 20 minutes to write code to > place names in a circle and draw arrows to the names that are related > (actually, the names are filenames, and the arrows represent 'import' or >

Re: [Tkinter-discuss] Find_closest, bbox, and weirdness

2007-01-19 Thread Russell E Owen
At 9:21 PM + 2007-01-18, Cameron Laird wrote: >On Thu, Jan 18, 2007 at 12:36:18PM -0800, Russell E Owen wrote: > . > . > . >> > Here was the plan: Compute the line that connects the centers of the >&g

Re: [Tkinter-discuss] Installing Tk.framework to directory other than system directories

2007-02-20 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Hello, > > Platform: Mac OS X 10.4 > > I'm trying to install the Tk.framework to a directory other than > /Library/Frameworks or /System/Library/Frameworks or ~/Library/Frameworks > . I'm wanting to do this so I can create Mac packages

Re: [Tkinter-discuss] Opening one frame after closing another

2007-07-09 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Surya Prakash Garg <[EMAIL PROTECTED]> wrote: > Hello, > > I am a newbie in the field of python. I want to create a wizard using > python language. in which i am creating some buttons to open another > frame and closing the parent frame. Right now i am facing p

[Tkinter-discuss] Workaround for submenus not displaying in 8.4.15

2007-07-17 Thread Russell E. Owen
Under Tcl/Tk 8.4.15 (at least on MacOS X) submenus of menubutton menus don't display (submenus do work fine from the menu bar). This is tk bug 1731734. Anyway, this is causing grief for my application and I was wondering if anyone had found a workaround (other than reverting to an older Tcl/Tk,

Re: [Tkinter-discuss] Workaround for submenus not displaying in 8.4.15

2007-07-25 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Russell E. Owen" <[EMAIL PROTECTED]> wrote: > Under Tcl/Tk 8.4.15 (at least on MacOS X) submenus of menubutton menus > don't display (submenus do work fine from the menu bar). This is tk bug > 1731734. > > Anyway, this

[Tkinter-discuss] Shortcut for trying Tcl/Tk 8.5 with Mac Python?

2007-12-21 Thread Russell E. Owen
I'd like to try out Aqua Tcl/Tk 8.5 with my Python* and was hoping for a quicker way than building a new python from source. I didn't expect this to work, but I tried modifying _tkinter.so so it found Tck/Tk 8.5. Not surprisingly "import Tkinter" then refused to load complaining about finding 8

[Tkinter-discuss] Running Python 2.5 with Aqua Tcl/Tk 8.5.0

2007-12-26 Thread Russell E. Owen
If you would like to run Python 2.5 with Tcl/Tk 8.5.0... Kevin Waltzer was kind enough to send me a copy of his _tkinter.so and gave me permission to serve it. I just put it up here: along with brief installation instructions.

Re: [Tkinter-discuss] Color blindness

2008-02-11 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Bob Greschke <[EMAIL PROTECTED]> wrote: > I use colors quite a bit in my programs: ...> I got to thinking about what should be done to make things better for > color blind people > > Anybody know of a good source of info, or does this not even make > sens

Re: [Tkinter-discuss] Adding/removing widgets from a running application?

2008-02-12 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Alexander Belchenko <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jim Kleckner пишет: > | Any pointers to what it takes to add/remove widgets > | from a running application? > > Something like this maybe? > > from Tkinter

Re: [Tkinter-discuss] tk_focusNext and tkfocusPrev

2008-02-14 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Martin Franklin <[EMAIL PROTECTED]> wrote: > Hunter wrote: > > Hello, > > > > Can anyone give an example of how to use these two methods? I've tried using > > them is various ways (the end goal being to replicate forward and reverse > > tabbing) but it always

Re: [Tkinter-discuss] tkSnack

2008-06-18 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Chris Maddison <[EMAIL PROTECTED]> wrote: > I got it to work. You were right there was something wrong with the > architecture. As it turns out ActiveTcl 8.5.2 has an outdated PPC > snack2.2. On top of that the snack2.2.10 installer script puts the > files in

Re: [Tkinter-discuss] [Tkinter]Right click popup

2008-07-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Ambigioz <[EMAIL PROTECTED]> wrote: > Hello, > I'm trying to do a notepad with tkinter in windows (well also for linux),and > i'd like to create a popup with 'copy' , 'paste', 'cut', bla bla,on right > click. > My only problem it's to create that popup,because it's