[Python-bugs-list] [ python-Bugs-484994 ] bugs in Tix.py ListNoteBook PanedWindow

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Dec 2001 08:15:43 -0800


Bugs item #484994, was opened at 2001-11-23 14:18
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=484994&group_id=5470

Category: Tkinter
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert Roy (rjroy)
Assigned to: Nobody/Anonymous (nobody)
Summary: bugs in Tix.py ListNoteBook  PanedWindow

Initial Comment:
Python 2.2b2
Tix.py
1)
class ListNoteBook, __init__ method calls base class 
__init__  method with "tixDirList" instead 
of "tixListNoteBook"

2)
class PanedWindow, panes method, does not split the 
string returned from self.tk.call(self._w, 'panes')


patch also adds:
access to the paned window in ListNoteBook
class dummyPanedWindow to support above
paneconfigure methods to PanedWindow 
pageConfigure methods to NoteBook and ListNoteBook
page and pages methods to ListNoteBook


I am attaching the pathched file as well as the 
following diff
################

1044c1044,1046
<        TixWidget.__init__(self, 
master, 'tixDirList', ['options'], cnf, kw)
---
>        TixWidget.__init__(self, 
master, 'tixListNoteBook', ['options'], cnf, kw)
>        self.subwidget_list['pane'] = 
_dummyPanedWindow(self, 'pane',
>                                                 
destroy_physically=0)
1048d1049
< 
1054a1056,1070
>     def page(self, name):
>        return self.subwidget(name)
> 
>     def pages(self):
>        # Can't call subwidgets_all directly because 
we don't want .nbframe
>        names = self.tk.split(self.tk.call
(self._w, 'pages'))
>        ret = []
>        for x in names:
>            ret.append(self.subwidget(x))
>        return ret
> 
>     def pageconfigure(self, name, 
**kw):              
>        apply(self.tk.call,
>              (self._w, 'pageconfigure', name) + 
self._options(kw))
> 
1099a1116,1119
>     def pageconfigure(self, name, 
**kw):              
>        apply(self.tk.call,
>              (self._w, 'pageconfigure', name) + 
self._options(kw))
> 
1162c1182
<        names = self.tk.call(self._w, 'panes')
---
>        names = self.tk.split(self.tk.call
(self._w, 'panes'))
1167a1188,1191
>     def paneconfigure(self, name, 
**kw):              
>        apply(self.tk.call,       
>              (self._w, 'paneconfigure', name) + 
self._options(kw))
> 
1571a1596,1599
>        TixSubWidget.__init__(self, master, name, 
destroy_physically)
> 
> class _dummyPanedWindow(PanedWindow, TixSubWidget):
>     def __init__(self, master, name, 
destroy_physically=1):




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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-12-06 08:15

Message:
Logged In: YES 
user_id=3066

I've asked Mike Clarkson (Tix.py guru) to take a look at this.

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

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