Ticket UUID: | 2909184 | |||
Title: | new menubar command | |||
Type: | RFE | Version: | None | |
Submitter: | tomk | Created on: | 2009-12-05 05:06:37 | |
Subsystem: | tklib: request for new module | Assigned To: | andreas_kupries | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2009-12-18 08:57:20 | |
Resolution: | Closed By: | tomk | ||
Closed on: | 2009-12-18 01:57:20 | |||
Description: |
I have written a menubar command that I think could be a candidate for include in tklib at some point in the future. I have attached the code (tar.gz) for you to try out and give me your thought and suggestions. The code is pure tcl/tk but makes use of TclOO so will need 8.6. The tarball contains a man page (created with doctools) which explains the new command. The tarball also contains a vfs directory which has the menubar code (in lib) and demo application code that you can take a look at to see how the commands can be used on an application. To get a feel for what the new menubar command can do create multiple toplevels (using New). Tearoff menus for each of the toplevels and then play with the check buttons and radio buttons. Next do File->Show Macro Menu in one of the toplevel windows then tearoff the marco menus and play with them. Tom Krehbiel | |||
User Comments: |
tomk added on 2009-12-18 08:57:20:
allow_comments - 1 I have added a 'menubar' package to the tklib/modules directory at SF. The demo.tcl file can be run with wish to test the code. Please review the code and let me know if anything need to be changed/cleaned-up in order for this package to be included in the next release. tomk oehhar added on 2009-12-09 22:37:49: Tom, sorry, while scanning the documentation, I thought the package implements a command "menubutton_new". Propably this was a missread. tomk added on 2009-12-09 22:15:54: Harald, Thanks for your comments. I asked Andreas to add me as a developer and I will maintain the code. I'm not sure I understand your comment about menubar_new? If you are talking about the creation of a menubar instance then I believe the command new is required by the TclOO implementation and is out of my control. tomk oehhar added on 2009-12-09 16:32:41: Tracker back to feature request to have the mentioned category (not present in Tracker patches) oehhar added on 2009-12-09 16:32:01: data_type - 362883 oehhar added on 2009-12-09 16:29:10: data_type - 312883 Hi Tom, I have shortly tested your extension and it looked useful to me. My personal comments: - Well documented - I would not call it menubar_new - choose another name - many issues in the module are of more general interest like callbacks with namespaces etc. Is it intelligent, to put this into a menu-only module ? - IMHO there will not be a sponsor for a new module because someone have to maintain it. To not loose potential good work, I suggest to - coordinate with one of the TkLib guys (Jeff? Andreas?) if it is senseful to include it, if it is ok in this form etc. - get a tcllib maintainer and include and maintain it on your own. I have changed the tracker to "Patches" and the category to "tklib". In addition, I have assigned it to Andreas. Andreas seams to be heavily active and busy with the TclLib release. Nevertheless, this seamed to me the most appropriate. Thank you, Harald andreas_kupries added on 2009-12-08 03:39:44: data_type - 362883 tomk added on 2009-12-05 22:02:12: It was suggested to me that I submit the files using the SF patch feature but I now see that "Feature Request" also accepts files so that would have been a better place for this communication. If an administrator can convert this to a feature, great, otherwise sorry of the noise on this channel. tomk tomk added on 2009-12-05 12:06:38: File Added - 353941: package-menubar-development.tar.gz |
Attachments:
- package-menubar-development.tar.gz [download] added by tomk on 2009-12-05 12:06:38. [details]