| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
wrongly. Fixed this.
This closes SF bug #412682.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.
|
|
|
|
|
| |
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
|
|
|
|
| |
Changed the landmark to tclIndex, which should occur in both.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110677
Canvas.CanvasItem & Canvas.Group:
- bind lacks an optional "add" param
- unbind lacks an optional "funcid" param
- tkraise/lower should call self.canvas.tag_XXXX
(markus.oberhumer@jk.uni-linz.ac.at)
Note: I'm *not* fixing "bbox() return value is inconsistent with
Canvas.bbox()" -- it might break existing code.
|
|
|
|
| |
Subclass Error from Exception.
|
|
|
|
|
| |
from Tk.readprofile(), do not print anything extra to stdout, just run
the code.
|
| |
|
|
|
|
| |
to zero if that's the case (closes bug #113727)
|
|
|
|
| |
place bordermode, etc)
|
|
|
|
| |
supports a single visual (closes bug #110603)
|
|
|
|
| |
was added in Tk 8.3 (this fixes the first part of Bug #110605)
|
|
|
|
|
| |
code, to make the new Tkinter.py run under 1.5.2
-- changed Text.yview argument name (for consistency with xview)
|
|
|
|
| |
to the Text method (closes Bug #110605)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
|
|
|
| |
Also fix spelling tupel -> tuple.
|
|
|
|
| |
has reviewed this, too.
|
|
|
|
|
|
|
|
|
|
| |
this patch adds a fast _flatten function to the _tkinter
module, and imports it from Tkinter.py (if available).
this speeds up canvas operations like create_line and
create_polygon. for example, a create_line with 5000
vertices runs about 50 times faster with this patch in
place.
|
| |
|
|
|
|
| |
installs Tcl/Tk.
|
| |
|
|
|
|
| |
Reported both by Gerrit Holl and Mark Favas.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
OptionMenu is modified. Somewhat rewritten and elaborated by myself.
class _setit: The constructor now takes an optional argument
`callback' and stashes this in a private variable. If set, the
__call__() method will invoke this callback after the variable's value
has changed. It will pass the callback the value, followed by any
args passed to __call__().
class OptionMenu: The constructor now takes keyword arguments, the
only one that's legally recognized is `command', which can be set to a
callback. This callback is invoked when the OptionMenu value is set.
Any other keyword argument throws a TclError.
|
|
|
|
| |
Added docstrings to tkSimpleDialog.py
|
|
|
|
| |
more than one window argument.
|
|
|
|
| |
didn't properly handle the hex numbers returned.
|
|
|
|
|
| |
and then (under certain circumstances) can clobber the default!
He also submitted this patch as PR#82.
|
|
|
|
|
|
|
|
| |
and Toplevel class constructors. This means that if the window
manager closes the window, the Python-side Tkinter data structures
will be destroyed correctly. (Most apps do this anyway, and it's
recommended practice; I see no reason why making it the default
behavior could be bad.)
|
|
|
|
|
|
|
|
|
|
| |
bindings to a dictionary _tagcommands which was otherwise unused.
(This was checked in accidentally with rev. 1.125 and not deleted with
rev. 1.127 when the other half of this code was removed -- although
even as originally checked in the _tagcommands variable was never
used.)
(PR#40, reported by Peter Stoehr)
|
| |
|
|
|
|
| |
mark_previous().
|
|
|
|
| |
arguments. [Slightly changed from submitted patch.]
|
|
|
|
|
| |
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
|
|
|
|
|
|
|
|
| |
than was worth it: when deleting a canvas item, it would try to
automatically delete the bindings for that item. Since there's
nothing that says you can't reuse the tag and still have the bindings,
this is not correct. Also, it broke at least one demo
(Demo/tkinter/matt/rubber-band-box-demo-1.py).
|
|
|
|
|
|
| |
so the preferred name for them is tag_lower, tag_raise
(similar to tag_bind, and similar to the Text widget);
unfortunately can't delete the old ones yet (maybe in 1.6)
|
|
|
|
|
|
|
|
|
| |
An attempt to execute grid_slaves with arguments (0,0) results in
*all* of the slaves being returned, not just the slave associated with
row 0, column 0. This is because the test for arguments in the method
does not test to see if row (and column) does not equal None, but
rather just whether is evaluates to non-false. A value of 0 fails
this test.
|
|
|
|
| |
avoid tracebacks when the root is destroyed before the image object.
|
|
|
|
|
|
| |
in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk
which will hunt around in a few common places and then set PATH
and try again, or else issue a big clarifying error message.
|
|
|
|
| |
widget -- no time to do this right now.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
assign the exception info to sys.last_{type,value,traceback}. That
way, an introspective Tkinter app can inspect its own stack trace.
(The controversy is that it would keep some objects alive, but that's
probably no big deal.)
|
| |
|
|
|
|
| |
x/yview_scroll/moveto.)
|
| |
|