Użytkownik Nate Lowrie napisał:
> Why can't you you a series of dSizers? What requirements don't they
> satisfy? If you want to get the GridSizer portion working, I see no
>
I'm using dGridSizer because I can (could if it'll work).
My layout is quite simple so I can use dSizers, but where is benefit of
using large
amount of dSizers instead one?
> problem with it. However, the 2 items I mentioned earlier about mixing
> wx calls and putting things into the __init__ method could lead to your
> error. You may want to try making though changes and see if that
>
I just created my control like Dabo creates his own, like e.g. dSpinner.
It uses __init__() and Bind() methods too. What's wrong with that?
Of course I can add properties to my class and put my code in
afterInit() method.
Second, it's not final of control use, but it belongs to Dabo extension
module I created,
that contains features and extensions missing in Dabo itself.
So I shouldn't use afterInit() and other methods, because they are
reserved for subclasses.
But every action could lead me to error, afraid :(
> corrects your error. Also, why are you calling the superclass
> createItems method? What does it (PageEditBase.createItems) do?
>
Hmm, it does the same what self.super() do, that is put by Dabo AppWizard
at the end of each edit page in createItems() code end :)
I mean it does do nothing. Just for case.
The generated code:
self.Sizer.layout()
self.itemsCreated = True
is redundant too, because it exist in dPage._createItems() method.
What does it do in AppWizard generated code?
But lets back to the subject.
I tried to create control manually step by step, by creating panel,
then adding controls and binding to grid sizer - without success.
I did use containers of controls based on dPanel in dGridSizers
successfully but they are in expanded columns.
Why this case didn't work - I don't know.
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]