From: Eric W. <scr...@gm...> - 2007-03-17 21:03:21
|
# from Bob Hunter # on Saturday 17 March 2007 01:44 pm: >but got stuck when adding the menu bar and its >items. I went back to wxGlade, only to find that the >code it generates is both old and bugged. Further, a >tutorial makes it clear that wxGlade overwrites the >code, so we cannot change it by hand. Imagine that! And here everyone else says it's good enough, so it must be, right? The solution that I chose involves storing the menu declaration in YAML, though the caller loads the YAML and passes a data-structure to the API. It's still preliminary and obviously not for everyone, but hey it's not a one-way street that starts in python and drops your menu items on the floor. http://svn.dotreader.com/svn/dotreader/trunk/lib/WxPerl/MenuMaker.pm http://svn.dotreader.com/svn/dotreader/trunk/lib/dtRdr/GUI/Wx/Frame.pm http://svn.dotreader.com/svn/dotreader/trunk/client/data/menu.conf --Eric -- "...our schools have been scientifically designed to prevent overeducation from happening." --William Troy Harris --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- |