Re: [Boa Constr] New version in CVS
Status: Beta
Brought to you by:
riaan
From: Christian T. <ti...@ti...> - 2002-08-15 16:18:49
|
Riaan Booysen wrote: [slider] >>>I don't understand. The control moving and sizing behaves properly >>>for me. So you don't use all possible options. There is an sl_label flag or such. > Sounds like you have a slider is somehow linked to a text control that > shows the slider value. Boa provides no such features. No, I don't. Please try the attachment :-) > That is not nice (access too slow). I didn't mean to offend you. Speed isn't the only issue. You can see only one of the pages. And it is also namespaces. I'm writing a wizard with some 20 pages. Putting this all into the same tabbed subwindow gives me headaches with the myriad of objects, which all appear in the main frame. By the reparent trick, I can have simple, small pages, clean distinction between namespaces, and every page has its own frame for testing. Furthermore, I can create multiple instances of them, for pages which do repeat, and so on. I let them all inherit form a WizPage class mixin, so they have a defined interface for data transfer, methods like onSirstShow, onGoNext, onCancel..., which they can override. There is a central wizard manager which calls these methods, and also provides a channel object, where pages can send commands to change the layout of their environment... Well, this has quite evolved, and I think to isolate some framework for others to use, later. > Do you know about the shortcuts for the default actions of components? > Just double-click on the control. Sure. > For notebooks double-click on the tab pages the get the > Collection editor for the Pages. Double click on a Page in the > Collection editor to set that page as active. > It goes quite quick once you get used to it. Yes, that's fine. Tab selection isn't that slow, but finding controls and relevant code in the .py is slow, compared to quite tab access to multiple modules by the editor :-) ... > You mean Forms and Frames ;) Ahem, yes :) > It's definitely part of my plans to provide a more generic version > of what you are doing with frame reparenting. Currently the Designer > can only generate source for classes derived from top-level windows > (wxFrame, wxDialog, etc), I want to allow that for any control. That would be a break-through. Designing widgets in the designer. I do this with frames, too, and when I'm done with it, I move the code into some class, rename all the self.Panel alikes to self and make it stand-alone. ... >>back to my pressing project problem*) -- ciao - chris >> >>*) deriving from a wxStaticBitmap works fine, but for some >>reason, I cannot avoid to produce a memory leak a wxBitmap >>of size 12 is always left over, even if I do no more than >> >>class MySpecialBitmap(wxStaticBitmap): >> def __init__(self, *args, **kwds): >> wxStaticBitmap.__init__(self, *args, **kwds) > > > I cannot reproduce this. > How are you using the StaticBitmap? > Which version of Python? I'm doing some ownerdraw stuff, also I do it from a tasklet in the background, timer controlled. I found out what happens, it was my fault. No proper cleanup, the process ended with some tasklets not finished. Stackless' parallelism would make sense in Boa. You could do lots of things in the background, in a very simple manner. I will give you an example, later. -- Christian Tismer :^) <mailto:ti...@ti...> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 pager +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/ |