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
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
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
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
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
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
_
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
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
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
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 =
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
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
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
.. 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
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
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
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
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
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 =
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
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
.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
__
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
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
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
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
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
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
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
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
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
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
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
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
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
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",
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
[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
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
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
>
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
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
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
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
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-
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
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
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
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
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
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
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
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
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
54 matches
Mail list logo