Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#315 new menubar command

closed
5
2009-12-18
2009-12-05
Tom Krehbiel
No

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

Discussion

  • Tom Krehbiel
    Tom Krehbiel
    2009-12-05

    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

     
  • 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

     
    • assigned_to: nobody --> andreas_kupries
     
  • Tracker back to feature request to have the mentioned category (not present in Tracker patches)

     
    • labels: --> tklib: request for new module
     
  • Tom Krehbiel
    Tom Krehbiel
    2009-12-09

    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

     
  • Tom,
    sorry, while scanning the documentation, I thought the package implements a command "menubutton_new". Propably this was a missread.

     
  • Tom Krehbiel
    Tom Krehbiel
    2009-12-18

    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

     
  • Tom Krehbiel
    Tom Krehbiel
    2009-12-18

    • status: open --> closed