Re: BWidget NoteBook: Retrieve current page?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: BWidget NoteBook: Retrieve current page?

From: Damon Courtney <damon@unreality.com>
Date: Tue May 24 2005 - 22:34:37 CEST

    The 'raise' subcommand of the NoteBook widget, when called with no
arguments, will tell you the current page. Like so:

set currpage [$notebook raise]

Damon

nornagon wrote:
> I'm relatively new to Tk (and I don't actually program in tcl -- I use
> the ruby bindings. But I puzzle my way along; tcl's not too hard to read
> (I couldn't write it if I tried, though!))
>
> Anyway, I need some way to find which tab's the current tab in a BWidget
> NoteBook.
>
> I've tried fiddling with bindtabs (the ruby binding calls it tabbind,
> and has some other stuff like tabbind_append and tabbind_remove; I'm not
> exactly sure what they do) to no fruition. Would someone help me out here?
>
> Thanks,
> --
> - nornagon
Received on Thu Sep 29 14:18:45 2005