Tk Library Source Code

View Ticket
Login
Ticket UUID: 1305988
Title: Insufficient PagesManager documentation
Type: Bug Version: None
Submitter: setok Created on: 2005-09-27 15:52:27
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-02-11 05:04:00
Resolution: None Closed By: dev_null42a
    Closed on: 2006-02-10 22:04:00
Description:
The documentation does not specify much in the way of usage. I 
bumped into some confusion when I tried to pack the separate pages 
returned by [add]. Apparently this is not the correct usage. Only 
widgets inside the pages are GMed separately, as well as the 
PagesManager itself. In addition, it was not totally clear that [page] 
takes a new identifier as an argument, not the path of an existing 
widget. Perhaps it should state something like the following:

Add a new page identified by 'page', which is an arbitrary identifier. 
The pathname of the new page is returned and widgets for the page 
should be created with this as the parent or ancestor. However, 
PagesManager manages its own geometry. [pack], [grid] or an 
equivalent should not be used with the pathname returned by [add].

It also does not explain that no page is raised on creation and this 
must be done with a call to [raise] to view any page.
User Comments: dev_null42a added on 2006-02-11 05:04:00:
Logged In: YES 
user_id=1381097

Man page updated with your suggestions.