Menu

#5 Missing Notebook feature

open
nobody
None
5
2007-08-02
2007-08-02
Anonymous
No

I don't know if any other are missing for other options but I wanted to make use of the pageconfigure command for a notebook so I could disable a tab from being able to raise. I modified my Tix.py to include this command and I am not sure it is the whole function but what I added was these two lines in the Notebook class:

def pageconfigure(self, name, cnf={}, **kw):
self.tk.call(self._w, 'pageconfigure', name, *self._options(cnf, kw))

I never fully tested the command to make sure it works completely but it worked for what I needed.

I used the command:

nb.pageconfigure('pagename', state='disabled')

And it worked like a charm.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.