How to add custom button in the AUI Pane ?

Hi,

I have found an elegant way for this

wxPaneInfo pinfo;

wxPaneButton button;
button.button_id = wxPaneInfo::buttonClose;
pinfo.buttons.Add(button);

but wxPaneButton and wxAuiPaneButtonArray are not wrapped in wxPython.

mypane = wx.aui.AuiPaneInfo()
print mypane.buttons
>>> I get a memory leak on ||wxAuiPaneButtonArray|

cheers,
Vincent

Stef Mientki a écrit :

···

I do it just as on a normal panel,
wx.ToggleButton ( self, wx.ID_ANY, Caption, pos=(0,0), size=(50,30))

If it doesn't work for you, let me know,
and I see if I'm doing something special in the OnSize event.

cheers,
Stef

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

I am interested in wxAUI. Is it designed for wxpython? I would like to make
more attractive interfaces

Thanks,

Tom

···

-----Original Message-----
From: webmaster@keyphrene.com [mailto:webmaster@keyphrene.com]
Sent: 22 December 2007 06:30
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] How to add custom button in the AUI Pane ?

Hi,

I have found an elegant way for this

wxPaneInfo pinfo;

wxPaneButton button;
button.button_id = wxPaneInfo::buttonClose;
pinfo.buttons.Add(button);

but wxPaneButton and wxAuiPaneButtonArray are not wrapped in wxPython.

mypane = wx.aui.AuiPaneInfo()
print mypane.buttons
>>> I get a memory leak on ||wxAuiPaneButtonArray|

cheers,
Vincent

Stef Mientki a écrit :

I do it just as on a normal panel,
wx.ToggleButton ( self, wx.ID_ANY, Caption, pos=(0,0), size=(50,30))

If it doesn't work for you, let me know,
and I see if I'm doing something special in the OnSize event.

cheers,
Stef

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Robin Dunn a écrit :

Tom Harding wrote:

I am interested in wxAUI. Is it designed for wxpython? I would like to make
more attractive interfaces

Depends on what you mean by "designed for". wxAUI is written in C++, but there are Python wrappers for it. There isn't access to some of the internals yet, but you can use the majority of wxAUI with no great difficulty.

Can you added wxPaneButton and wxAuiPaneButtonArray in wxPython?

Best Regards
Vincent Jaulin

What are the advantages of wxAUI over just wxpython?

···

-----Original Message-----
From: webmaster@keyphrene.com [mailto:webmaster@keyphrene.com]
Sent: 25 December 2007 07:28
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] How to add custom button in the AUI Pane ?

Robin Dunn a écrit :

Tom Harding wrote:

I am interested in wxAUI. Is it designed for wxpython? I would like
to make
more attractive interfaces

Depends on what you mean by "designed for". wxAUI is written in C++,
but there are Python wrappers for it. There isn't access to some of
the internals yet, but you can use the majority of wxAUI with no great
difficulty.

Can you added wxPaneButton and wxAuiPaneButtonArray in wxPython?

Best Regards
Vincent Jaulin

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Tom Harding wrote:

What are the advantages of wxAUI over just wxpython?

AUI is a set of classes within wxPython that allow you to have floating and dockable panels within your application. See the demo for examples.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Tom Harding wrote:

What are the advantages of wxAUI over just wxpython?

AUI is a set of classes within wxPython that allow you to have floating and dockable panels within your application. See the demo for examples.

and great for generating GUI applications from code,
no sizers needed,
and with one simple command you freeze the final application.
(but I have to admit that it has some weakness)

cheers,
Stef