[Tkinter-discuss] Looking for maintainer / hosting for tkinter wiki

2017-02-22 Thread Jeff Epler
Hello all. I have run a tkinter wiki (https://tkinter.unpythonic.net/) for many years. It doesn't see much traffic, and my interests and hobby time allocation haven't really aligned with it for quite some time. Consequently, I am looking for someone to take over maintainance and hosting of the s

Re: [Tkinter-discuss] Tkinter grid_info()

2015-02-17 Thread Jeff Epler
Not reproduced on: Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 (Debian Wheezy amd64 with python 2.7.3-6+deb7u2, tcltk 8.5.11-2) $ python /tmp/Malherbe.py row: 0 column: 0 Jeff ___ Tkinter-discuss mailing list Tkinter-di

[Tkinter-discuss] Tkinter wiki hosting moved

2013-09-23 Thread Jeff Epler
I have moved the hosting of tkinter.unpythonic.net. Please drop me a direct e-mail if you see any problems with the site. Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] Strange 'tate' option in ttk.Treeview.heading

2013-04-11 Thread Jeff Epler
This is an upstream bug in Tk which appears to still be present in their development version. There's supposed to be a "-state" property of treeview columns, but the "-" is missing. Python always removes the first character in its configure-type interfaces, so you get "tate" Compare the definiti

Re: [Tkinter-discuss] Detecting third-party ttk themes

2013-03-10 Thread Jeff Epler
ttk.Style.theme_names is using [ttk::style theme names]. This enumerates the table of loaded themes only (ones that already exist in the interpreter). [ttk::themes] uses a different method: it searches [package names] for loaded or available, but as far as I can tell there's no way to know you've

Re: [Tkinter-discuss] tkinter wiki back online

2013-01-10 Thread Jeff Epler
Canonical has pushed out an update for moinmoin that appears to address the security bugs recently disclosed. I also found no evidence in logs of exploitation of the bugs on the tkinter wiki. Accordingly, the wiki is back online: http://tkinter.unpythonic.net/wiki/ Jeff _

[Tkinter-discuss] tkinter wiki (temporarily) offline

2013-01-08 Thread Jeff Epler
I read today that the python.org wiki (running an unspecified version of moinmoin) was compromised in December http://pyfound.blogspot.com/2013/01/wikipythonorg-compromised.html As a result, I am disabling the tkinter wiki temporarily while I investigate how to obtain a fixed version for Ubuntu 10

Re: [Tkinter-discuss] Working with tear-off menus (change the "-----" label, customize location/appearance of tear-off window)

2010-11-22 Thread Jeff Epler
You can manually create a tearoff from a menu: % .m clone .mt tearoff and post it at a desired location: % .mt post 100 100 As suggested in the other message, you can use "wm resizeable" to make it not change size: % wm resiz .mt 0 0 (Of course, I only tested this on linux, so on Window

[Tkinter-discuss] wiki: Fixed ApprovedEditorsGroup

2010-08-16 Thread Jeff Epler
The ApprovedEditorsGroup security policy was broken after an upgrade of moin. It is now fixed. Thank you to Anthony Glaser for bringing this to my attention. Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailma

Re: [Tkinter-discuss] Setting the items of a listbox with new technique in TK 8.3

2010-01-24 Thread Jeff Epler
The listvariable, textvariable and so forth have to be Tkinter variables, not Python variables. The following program worked for me in >>> Tkinter._tkinter.TK_VERSION; sys.version '8.5' '2.6.4 (r264:75706, Dec 7 2009, 18:43:55) \n[GCC 4.4.1]' #!/usr/bin/python # from Tkinter import * app =

Re: [Tkinter-discuss] tkFileDialog.askopenfilenames returns unicode string instead of tuple in python 2.62

2009-08-01 Thread Jeff Epler
As a workaround, I believe you can use input_files = root.tk.splitlist(input_files) which will correctly deal with filenames that contain embedded characters that have special meaning in Tcl. Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@pyth

Re: [Tkinter-discuss] Anyone needs old demo programs ?

2009-07-15 Thread Jeff Epler
On Wed, Jul 15, 2009 at 02:50:52PM +, Cameron Laird wrote: > On Wed, Jul 15, 2009 at 04:44:13PM +0200, Francesco Bochicchio wrote: > . > . > . > > Ok. I decided that both sourceforge and googlecode are overkill for my demo > > pr

[Tkinter-discuss] The wiki -- spammers and permission to edit

2009-03-02 Thread Jeff Epler
The wiki has been seeing a ton of spam since I upgraded to a modern version of moin (isn't that ironic! perhaps I should downgrade again). Simply requiring users to sign in before editing has also not proven to be enough. I am stuck with Ubuntu Hardy Heron's version of moin, so I can't enable adv

[Tkinter-discuss] tkinter wiki migrated to a new machine

2009-01-17 Thread Jeff Epler
.. and a newer version of moin. please let me know if you discover any problems. thanks, Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] python tcl mixed programming

2007-05-21 Thread Jeff Epler
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

[Tkinter-discuss] Tkinter wiki back (was Re: Tkinter wiki down?)

2007-04-24 Thread Jeff Epler
I was on a trip and had spotty net access. I just arrived home today. A few days ago when I had some time online, I found that the machine hosting the tkinter wiki was very heavily loaded, and because there were many instances of the tkinter wiki cgi script, each weighing about 1GB of memory, I c

Re: [Tkinter-discuss] Who maintains the Wiki?

2007-02-20 Thread Jeff Epler
I am responsible for the machine where the wiki resides, but it's everyone's job to fix vandalism. Don't complain, but log in and revert the page. Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/t

Re: [Tkinter-discuss] tkFileDialog: shuts down root window

2006-12-27 Thread Jeff Epler
You should determine whether this error happens with wish.exe as well as with Python's Tkinter module. If it does, please submit a bug report to http://sf.net/projects/tktoolkit http://sf.net/tracker/?group_id=12997&atid=112997 Jeff ___ Tkinter

Re: [Tkinter-discuss] Cascade menu issue

2006-08-22 Thread Jeff Epler
The "activate_cascade" code seems to accomplish what you want. I tested it only on Ubuntu 5.10, so your mileage may vary with different Linux distributions and Tk versions. Jeff # -- import Tkinter app = Tkinter.Tk() menubar =

Re: [Tkinter-discuss] Changing title bar color in Tkinter

2006-08-03 Thread Jeff Epler
No. It is not Tkinter that draws the title bar of the window, but the window manager. You can cause the window manager not to draw any decorations on the window by setting the wm_override() but this also means you lose the ability to move and resize the window in the normal way. Usually this i

Re: [Tkinter-discuss] System Font Size

2006-07-11 Thread Jeff Epler
If you want to find the default font used for a particular item, create one and interrogate it: >>> b = Tkinter.Button(app) >>> b.cget("font") '-monotype-arial-medium-r-normal-*-12-*-*-*-p-*-iso8859-15' (in this case, it's a Linux system with the fonts coming from the X resource databas

Re: [Tkinter-discuss] Tkinter Menu

2006-07-09 Thread Jeff Epler
.add_XXX, .insert_XXX, .delete, and .entryconfigure are the methods you can use to incrementally change menus. If the menu is not a tearoff, the postcommand= may give you a good way to populate the menu when it is about to be shown, rather than anytime its contents would have changed. Jeff __

Re: [Tkinter-discuss] grid sticky problem

2006-07-03 Thread Jeff Epler
You need to give some rows or columns nonzero weight. master.grid_rowconfigure(rownum, weight=1) master.grid.columconfigure(colnum, weight=1) Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinte

Re: [Tkinter-discuss] Canvas pixels

2006-07-01 Thread Jeff Epler
On Fri, Jun 30, 2006 at 11:31:24PM -0400, [EMAIL PROTECTED] wrote: > is there a way to get the RGB color, pixel by pixel, of a tkinter.Canvas? No, tk doesn't provide a way to do this. Jeff ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http

Re: [Tkinter-discuss] up+right

2006-05-09 Thread Jeff Epler
In this example program, the canvas item is moved in the direction indicated by the arrow key(s) pressed. It works by setting a "dx" value when Left or Right is pressed, and then setting "dx" back to 0 when one of those keys is released. Approximately each 20ms the dx and dy values are added to t

Re: [Tkinter-discuss] buttonpress

2006-04-24 Thread Jeff Epler
Consider the following program: def print_event(evt): print "Event at", evt.x, evt.y from Tkinter import * b = Button() b.pack() b.bind("", print_event) b.mainloop() Click inside the button, then move the mouse around, including outside the area of the button. You'll continue to see the

Re: [Tkinter-discuss] frame fixed size

2006-04-14 Thread Jeff Epler
If you want a frame to have a fixed size, regardless of its contents, then you have to make one of the following method calls: f.pack_propagate(False) or f.grid_propagate(False) depending on whether its contents are positioned with .pack() or with .grid(). The normal behavior (propagate is

Re: [Tkinter-discuss] create and delete canvas items / memory

2006-04-12 Thread Jeff Epler
I've never used snack. However, I wrote a program which repeatedly creates and then destroyes 1000 "line" objects on a canvas: #--- def main(): import Tkinter t = Tkinter.Canvas() t.pack() while 1: for i in

Re: [Tkinter-discuss] Combining Tcl/Tck widgets with a Xll Graphics window

2006-04-11 Thread Jeff Epler
The "frame" widget has this option (from the tk manpage): Command-Line Name:-container Database Name: container Database Class: Container The value must be a boolean. If true, it means that this window will be used as a container in which some oth

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

2006-03-29 Thread Jeff Epler
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 same thing as images. Jeff ___ Tkinte

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

2006-03-28 Thread Jeff Epler
Tix support in Python comes in two parts: First, the Tix Python module, which is just an object-oriented wrapper. Second, the Tix package for tcl. The error you got indicates that the Tix package for tcl is not installed. On my system (Ubuntu 5.10), installing the debian package 'tix8.1' allowe

Re: [Tkinter-discuss] canvas.create_image

2005-06-30 Thread Jeff Epler
On Wed, Jun 29, 2005 at 09:50:44PM -0700, Todd Lericos wrote: > I tried many of the suggested fixes. For example, heading off > garbage collection of the image...etc. No dice. I'm pretty sure you didn't "head off garbage collection of the image". Here's why: You immediately discard the MakeGui i

Re: [Tkinter-discuss] Help: _tkinter.createfilehandler not supported for threaded Tcl

2005-06-22 Thread Jeff Epler
My system is: Fedora Core 2 python-2.3.3-6 tk-8.4.5-8 I wrote the following program, in which a worker thread writes to a pipe which is read by the main thread by a handler that was created by 't.tk.createfilehandler()'. The program seems to work as expected, except that the thread usu

Re: [Tkinter-discuss] Help: _tkinter.createfilehandler not supported for threaded Tcl

2005-06-21 Thread Jeff Epler
On Tue, Jun 21, 2005 at 08:01:56PM +0200, Michael Lange wrote: > When I googled for the traceback one of the results said: > > > If your Tcl installation is threaded, you should use > > tkapp.createfilehandler instead. > > however (on my box) I cannot find tkapp anywhere (or should it be > _tki

Re: [Tkinter-discuss] First Tkinter program

2005-06-16 Thread Jeff Epler
On Thu, Jun 16, 2005 at 09:45:29AM -0400, William O'Higgins wrote: > None of the examples seem to code in a straight line, and I'm having > trouble following the progression of the "simple" examples. Can Tkinter > programs been developed in a flat structure, without the class within > class stuff

Re: [Tkinter-discuss] tkinter and threading

2005-06-07 Thread Jeff Epler
No, Tkinter callbacks are not run in separate threads. When you see cb_close being called during cb_run, it's all in a single thread, with a call stack that looks like cb_close update cb_run mainloop i.e., when cb_run calls update, events (including "the user clicked a button",

Re: [Tkinter-discuss] tk 8.3 and unicode

2005-05-27 Thread Jeff Epler
This bug must have been fixed between Python 2.2 + Tk 8.3 and Python 2.3 + Tk 8.4. Running a slightly different test program, I get this output on Fedora Core 1 (Python 2.2 + Tk 8.3): '\xc2\xa3' and this output on Fedora Core 2 (Python 2.3 + Tk 8.4): u'\xa3' You could try defining a c

Re: [Tkinter-discuss] Hooking into custom Tcl/Tk Widgets from Tkinter (vis)

2005-05-13 Thread Jeff Epler
[copied to tkinter-discuss for the benefit of others] On Fri, May 13, 2005 at 09:15:44AM -0600, David King wrote: > I still would like to hear from someone on how I'd invoke creation of my > new custom widget and send it commands from python. The C++ code registers > callbacks for both these so

Re: [Tkinter-discuss] Python 2.1 with tcl/tk 8.4.5

2005-05-11 Thread Jeff Epler
short answer: yes, it's an incompatibility. You may be able to modify Tkinter.py with a patch that is on sourceforge, though. http://python.org/sf/698517 http://python.org/sf/707701 Jeff pgpWlRdcCy2n0.pgp Description: PGP signature ___ Tkinter-discus

Re: [Tkinter-discuss] Re: Hooking into custom Tcl/Tk Widgets from Tkinter (vis)

2005-04-29 Thread Jeff Epler
On Fri, Apr 29, 2005 at 11:01:15AM -0600, David King wrote: > But let's leave WCK aside and just talk about plain Tkinter for the moment. > I'd like to understand how my custom C++/Tk widget could make itself known > in the usual Tkinter world. On the C++ side, essentially all my Tcl/Tk API >

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

2005-04-29 Thread Jeff Epler
On Wed, Apr 27, 2005 at 04:05:31PM -0500, Jeff Epler wrote: > This code is not well tested, but I'll share it anyway. [snipped] Someone asked me off-list if there was a reason I wrote this code in tcl, not Python. No, there was no efficiency reason. I wrote this code first for a tc

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

2005-04-27 Thread Jeff Epler
This code is not well tested, but I'll share it anyway. You must create the label widget, and a variable to hold the string. Then you call make_ellip with the widget, the variable, and the side---"left", "right", or "center". "left" gives abbreviated text like "And no...", and so forth. On at le

Re: [Tkinter-discuss] busy cursor stores up events

2005-04-19 Thread Jeff Epler
Those examples don't seem to do anything besides change the cursor displayed when the mouse is over the affected widgets. They don't do any true "busy" handling. Apparently PMW provides an interface to the Blt "busy" command, which does a little better. With "busy", I think you set an entire top

Re: [Tkinter-discuss] Font control in tkMessageBox?

2005-04-13 Thread Jeff Epler
You can force Tk to use the non-native dialogs on Windows, but in a Tk-version-dependent fashion. The following code is snipped from tk.tcl on my 8.3 installation: #-- # Define common dialogs on platforms where they are no

Re: [Tkinter-discuss] Tkinter clipboard_get method...

2005-04-12 Thread Jeff Epler
I know this message was written a long time ago, but I finally got around to investigating this. I added my comments to the SF tracker item and recommended that the patch be applied as-is. Jeff pgpjwLgSJngjw.pgp Description: PGP signature ___ Tkinter-

Re: [Tkinter-discuss] Modal dialog behavior

2005-03-22 Thread Jeff Epler
I took a look at the source and CVS history of some related files in Tk (dialog.tcl and tkUnixWm.c). It could be due to the addition of 'WmWaitMapProc': http://cvs.sourceforge.net/viewcvs.py/tktoolkit/tk/unix/tkUnixWm.c#rev1.21 http://cvs.sourceforge.net/viewcvs.py/tktoolkit/tk/unix/tkUni

Re: [Tkinter-discuss] using list elements in menu construction?

2005-03-01 Thread Jeff Epler
I don't see what's wrong with your program, but a simple Tkinter program not using pmw seems to work just as expected on my system. It seems like it would be hard for Python/PMW/Tkinter to even know that a particular option for varible= was computed by a list indexing operation, as opposed to any

Re: [Tkinter-discuss] Custom cursor?

2005-02-25 Thread Jeff Epler
On Thu, Feb 24, 2005 at 04:08:24PM -0700, Stewart Midwinter wrote: > Actually on Windows it gives an exception but you're probably close on > the config options. The length-4 version is X only. "This form of the command will not work on Macintosh or Windows computers" -- man Tk_GetCursor This is

Re: [Tkinter-discuss] Custom cursor?

2005-02-24 Thread Jeff Epler
On my Linux machine, this worked in wish: $ cd /usr/X11R6/include/X11/bitmaps $ wish % . configure -cursor [EMAIL PROTECTED] cntr_ptrmsk black white} The Python version would probably read something like import Tkinter t = Tkinter.Tk() t.configure(cursor="@cntr_ptr cntr_ptrmsk black wh

Re: [Tkinter-discuss] Problem with 'cascade' and state=disabled (maybe)

2005-02-06 Thread Jeff Epler
Do you have a full program that demonstrates the problem? It's *likely* that str(w.entrycget(0, 'menu')) will return the menu's path as a string, in all cases. It's also possible that import Tkinter Tkinter.wantobjects = 0 before creating any interpeter will get you a string instead. Tcl

Re: [Tkinter-discuss] Re: Yet Another Table widget...

2005-01-21 Thread Jeff Epler
I thought maybe the list would benefit from hearing about how I chose to wrap the bwidget family of widgets for my pybwidget package. On Fri, Jan 21, 2005 at 10:40:54AM +, Martin Franklin wrote: > First thing to note is that tablelist is pure Tcl package and can be > either installed in the st

Re: [Tkinter-discuss] Changing Entry-Widget

2005-01-13 Thread Jeff Epler
You need to learn about "break" and bindings. When you return the string "break" from a binding, any subsequent binding that would have been executed (such as the default one for inserting characters into an entry widget). Here's a simple program that uses 'return "break"': import Tkinter

Re: [Tkinter-discuss] Help: How I can to disable the maxbutton of a window?

2005-01-09 Thread Jeff Epler
The wm_maxsize, wm_minsize, and wm_resizable methods of Toplevel widgets may allow you to do what you want. For instance, when I create a windw and set wm_resizble(0,0), the maximize decoration is removed from the window (and greyed out in the window's menu, and the keystroke is disabled), and the

[Tkinter-discuss] [arth...@rogers.com: pybwidget 0.1.1_1.7.0 fixes]

2004-12-24 Thread Jeff Epler
These patches may be useful to other users of pybwidget --- Begin Message --- I've been attempting to use your Python wrapper to BWidget and encountered a few issues. I've attached a diff of the __init__.py and setup.py files that fix a number of issues. Unfortunately, the Tree widget for which I