[Patches] [ python-Patches-409048 ] Form geometry manager for Tkinter.py

noreply@sourceforge.net noreply@sourceforge.net
Sun, 18 Mar 2001 03:13:57 -0800


Patches item #409048, was updated on 2001-03-15 22:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=409048&group_id=5470

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Internet Discovery (idiscovery)
Assigned to: Nobody/Anonymous (nobody)
Summary: Form geometry manager for Tkinter.py

Initial Comment:
If you accept patch #409043 which defines the
constant _tkinter.TIX_VERSION, then you will
no longer need to patch Lib/lib-tk/Tkinter.py to
use Tix. With this patch, Tkinter.py will look for
_tkinter.TIX_VERSION, and iff it finds it, will
add the Form geometry manager to all Tkinter widgets.
If not, the current behaviour is maintained.

The context diff is against 2.1b1, but should
work for 2.0 as well.



----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-03-18 03:13

Message:
Logged In: YES 
user_id=21627

It turns out that the context diff is not a diff at all, but
the full file; please resubmit.

However, I'd rather see a solution that has Tix as a
stand-alone module. If you think you need the Form methods
on every widget, I'd rather encourage assigning to
Widget.__bases__ (to get Form into the list of base
classes), instead of putting Tix code into Tkinter.

If that is not acceptable, I still favour loading Tix
dynamically; Tkinter.py would then be the place where that
happens.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=409048&group_id=5470