| Ticket UUID: | 1580120 | |||
| Title: | Allow -class to be passed to snit::widget | |||
| Type: | Patch | Version: | None | |
| Submitter: | hobbs | Created on: | 2006-10-19 00:14:23 | |
| Subsystem: | snit | Assigned To: | duquette | |
| Priority: | 7 High | Severity: | ||
| Status: | Closed | Last Modified: | 2006-10-20 07:39:01 | |
| Resolution: | Fixed | Closed By: | hobbs | |
| Closed on: | 2006-10-20 00:39:01 | |||
| Description: |
Attached is a patch that allows -class to be passed as
an option to snit widgets. This allows widgets like
tklib's widget::scrolledwindow to be created with:
widget::scrolledwindow .s -class SpecialScroller
or used as a widgetadaptor like so:
snit::widgetadaptor Scrolltree {
....
constructor {args} {
installhull using widget::scrolledwindow \
-class Scrolltree
install tree using treectrl $win.tree ...
I think this is a natural extension to Snit and should
be drop-in (backwards) compatible. It just changed the
undefined widgetclass behavior to allow for setting
-class on the command line.
| |||
| User Comments: |
hobbs added on 2006-10-20 07:39:01:
Logged In: YES user_id=72656 Added to snit 1.2.1 / 2.1.1. hobbs added on 2006-10-19 07:14:24: File Added - 198852: classopt.diff | |||
Attachments:
- classopt.diff [download] added by hobbs on 2006-10-19 07:14:24. [details]
