From: Vineet J. <vi...@es...> - 2004-05-01 01:30:50
|
I'm in the process of converting a image browsing application (cornice written on wxpython http://web.tiscali.it/agriggio/cornice.html) to pythoncard. It uses a notebook widget and I've not been able to find a similar widget in python card. Does it exist somewhere. I also had a question about (to what extend can you mix and match wx.Python calls with pythoncard) Thanks -------------------------------------------------------------------------- Fellow Pythoncard users, I have been working on a modification of the PythonCard framework so as to allow for containers. In particular, I have been working on getting the wxNotebook and the wxSplitterWindow supported in PythonCard, but it is now considerably easier to add other containers as well if desired. Per Kevin's suggestion, I've put the code online for feedback. Below is the link for my implementation of a containers framework. I'd appreciate comments, patches (if applicable), some testing, and the like - as my hope is that this will be merged into the CVS version of PythonCard. http://www.geocities.com/mckay_sean/PythonCardPrototype.zip Discussion Points: * I'd appreciate it if some thought / discussion about the following topics occurred on our mailing list - Sizers. Should containers have some sort of default sizer mechanism. - Sizers. Is there an intuitive way to come up with sizer information? For starters: would having a property on all controls indicating how they size be doable and useful? For example. sizer weights = (-1, 3) would say don't grow me along the horizontal axis, but give me a weight of 3 on the vertical. Notes: * This implementation should be backwards compatible with .7.2 and .7.1 (my initial implementation was not). Let me know of any problems where .7.2 and .7.1 work but this version does not. * The resourceEditor can handle splitters and notebooks. * The splitter / notebook implementation is a basic wrapper, not a complete wrapper. Hopefully, over time it will be made more complete if that makes sense. * I've changed the default placement of controls, this means that once "Add ????" was selected, you need to click on the location you want the control to appear. This was needed because if doing something with a splitter in the upper left corner (pretty common, IMO), the new control would appear underneath. * This contains all the Pythoncard files except Samples, and Docs (for space reasons). * Both the notebook and splitter controls have a right-click menu which has configuration options. * I tested this only on windows 98, with Python2.3. * The splitter window does not come up with a sash shown, it will not display until either a horizontal or vertical alignment is chosen (via context menu). Please note that I was unable to make it change its alignment once set -- perhaps someone knows of a work around for this problem. * Moving the splitter sash is initiated via context menu. After that, click on the location where the sash should be. Known Bugs: * The only major bug that I can think of is the following: it is possible to drag a control onto a container, but not to drag a control from a container to the main panel. * There are some occasional refresh issues with splitters. * Sometimes moving a container onto a neighboring container can be problematic (e.g. when th e space of the container overlaps in some manner with the new container.) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Pythoncard-users mailing list Pythoncard-users@[...].net https://lists.sourceforge.net/lists/listinfo/pythoncard-users |