Problem with aui toolbar

Hi,

Im making a new system and Im working in the main GUI, it works with AUI and I add some controls, one of them is an AUIToolbar,the code for it is:

self.m_auiToolBar1 = wx.aui.AuiToolBar( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.aui.AUI_TB_HORZ_LAYOUT )
         self.m_auiToolBar1.AddTool( wx.ID_ANY, u"tool", wx.Bitmap( u"../images/filefolder.png", wx.BITMAP_TYPE_ANY ), wx.NullBitmap, wx.ITEM_NORMAL, wx.EmptyString, wx.EmptyString, None )

but actually the toolbar could be resized (check the image attached) and I want to avoid to it, I cant found the correct property,any ideas?

Im using Python 2.7.6 + wxPython 2.8.12.1

Thanks in advance!

main.png

···

--

Saludos / Best regards

Mario Lacunza
Email:: mlacunza@gmail.com
Personal Website:: http://www.lacunza.biz/
Hosting:: http://mlv-host.com/
Mascotas Perdidas:: http://mascotas-perdidas.com/
Google Talk / Y! messenger / Skype: mlacunzav

Hi Mario,

···

On 4/16/2014 18:43, Mario Lacunza wrote:

Hi,

Im making a new system and Im working in the main GUI, it works with AUI and I add some controls, one of them is an AUIToolbar,the code for it is:

self.m_auiToolBar1 = wx.aui.AuiToolBar( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.aui.AUI_TB_HORZ_LAYOUT )
        self.m_auiToolBar1.AddTool( wx.ID_ANY, u"tool", wx.Bitmap( u"../images/filefolder.png", wx.BITMAP_TYPE_ANY ), wx.NullBitmap, wx.ITEM_NORMAL, wx.EmptyString, wx.EmptyString, None )

but actually the toolbar could be resized (check the image attached) and I want to avoid to it, I cant found the correct property,any ideas?

Don't know what is needed with wx.Aui, I use wx.lib.agw.aui and with it I don't see this problem.

You might want to try using it instead, normally you can just change the import and it will just work.

Werner

Hi

I test with both and the same behavior :frowning:

···

Enviado desde mi Samsung Galaxy S4

El abr 17, 2014 2:02 AM, “Werner” wernerfbd@gmx.ch escribió:

Hi Mario,

On 4/16/2014 18:43, Mario Lacunza wrote:

Hi,

Im making a new system and Im working in the main GUI, it works with AUI and I add some controls, one of them is an AUIToolbar,the code for it is:

self.m_auiToolBar1 = wx.aui.AuiToolBar( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.aui.AUI_TB_HORZ_LAYOUT )

    self.m_auiToolBar1.AddTool( wx.ID_ANY, u"tool", wx.Bitmap( u"../images/filefolder.png", wx.BITMAP_TYPE_ANY ), wx.NullBitmap, wx.ITEM_NORMAL, wx.EmptyString, wx.EmptyString, None )

but actually the toolbar could be resized (check the image attached) and I want to avoid to it, I cant found the correct property,any ideas?
Don’t know what is needed with wx.Aui, I use wx.lib.agw.aui and with it I don’t see this problem.

You might want to try using it instead, normally you can just change the import and it will just work.

Werner

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Hi Mario,

···

On 4/18/2014 6:33, Mario Lacunza wrote:

Hi

I test with both and the same behavior :frowning:

Can you make a small sample - MakingSampleApps - wxPyWiki

Werner

Sure. I’m out of the city for holidays these days. Thanks!

···

Enviado desde mi Samsung Galaxy S4

El abr 18, 2014 8:53 AM, “Werner” wernerfbd@gmx.ch escribió:

Hi Mario,

On 4/18/2014 6:33, Mario Lacunza wrote:

Hi

I test with both and the same behavior :frowning:

Can you make a small sample - http://wiki.wxpython.org/MakingSampleApps

Werner

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.