GUI Design (AUI)

Hello,

I make a simple draw attached about what need to do with AUI

I need 4 panes, Panes A and C need to expand up/down if the main GUI is resized manually by the user. Pane D need to between both.

Actually I can get it done, the Pane D goes aligned to the left, I dont know which properties do what I want, thanks in advance!


gui.jpg

···

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/
Skype: mlacunzav

Lima - Peru

Hi,
maybe the following demo code can be tweaked for your needs to some extend,
but i confess, I couldn't figure out, how to make the top central pane
taller than the bottom one programmatically.

···

2015-10-05 1:01 GMT+02:00 Mario Lacunza <mlacunza@gmail.com>:

Hello,

I make a simple draw attached about what need to do with AUI

I need 4 panes, Panes A and C need to expand up/down if the main GUI is
resized manually by the user. Pane D need to between both.

Actually I can get it done, the Pane D goes aligned to the left, I dont
know which properties do what I want, thanks in advance!

gui.jpg
<https://drive.google.com/file/d/0B2VX1yoRTNDERFl2SWFlcHJMc2M/view?usp=drive_web&gt;

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/
Skype: mlacunzav

Lima - Peru

--
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.

========================================

#! Python
# -*- coding: utf-8 -*-

import wx
import wx.aui

class MyFrame(wx.Frame):
    def __init__(self, parent, id=-1, title='wx.aui Test', pos=(10,10),
size=(-1, -1), style=wx.DEFAULT_FRAME_STYLE):
        wx.Frame.__init__(self, parent, id, title, pos, size, style)
        self._mgr = wx.aui.AuiManager(self)
        self._mgr.AddPane(self.MakeTextCtrl(),
wx.aui.AuiPaneInfo().Name("Pane1").Caption("left
").Left().CloseButton(False))
        self._mgr.AddPane(self.MakeTextCtrl(),
wx.aui.AuiPaneInfo().Name("Pane2").Caption("right").Right().CloseButton(False))
        self._mgr.AddPane(self.MakeTextCtrl(),
wx.aui.AuiPaneInfo().Name("Pane3").Caption("center
top").Center().Position(0).CloseButton(False))
        self._mgr.AddPane(self.MakeTextCtrl(),
wx.aui.AuiPaneInfo().Name("Pane4").Caption("center
bottom").Center().Position(1).CloseButton(False))

        self._mgr.Update()

    def MakeTextCtrl(self, default_text="Pane - sample text",
size=(100,20)):
        return wx.TextCtrl(self, -1, default_text, size=size,
style=wx.TE_MULTILINE|wx.NO_BORDER)

app = wx.App()
frame = MyFrame(None)
frame.Maximize()
frame.Show()
frame._mgr.Update()
app.MainLoop()

==============================

Last time I needed to work with proportions setting in AUI, I ended up with
a hack, where a perspective setup string was manipulated to adjust the
proportion values and loaded back to the aui manager. I'd be glad to learn
some clean way of doing this.

regards,
    vbr

Hello,

Thanks Vlastimil for your code, works fine here in my Ubuntu 15.04, attached you can found my solution using the wxFormBuilder, looks the code created by it, maybe you can found something useful.

test.py (3.39 KB)

···

2015-10-05 18:08 GMT-05:00 Vlastimil Brom vlastimil.brom@gmail.com:

2015-10-05 1:01 GMT+02:00 Mario Lacunza mlacunza@gmail.com:

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.

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/
Skype: mlacunzav

Lima - Peru

Hello,

I make a simple draw attached about what need to do with AUI

I need 4 panes, Panes A and C need to expand up/down if the main GUI is resized manually by the user. Pane D need to between both.

Actually I can get it done, the Pane D goes aligned to the left, I dont know which properties do what I want, thanks in advance!


gui.jpg

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/
Skype: mlacunzav

Lima - Peru

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,

maybe the following demo code can be tweaked for your needs to some extend, but i confess, I couldn’t figure out, how to make the top central pane taller than the bottom one programmatically.

========================================

==============================

Last time I needed to work with proportions setting in AUI, I ended up with a hack, where a perspective setup string was manipulated to adjust the proportion values and loaded back to the aui manager. I’d be glad to learn some clean way of doing this.

regards,

vbr

#! Python

-- coding: utf-8 --

import wx

import wx.aui

class MyFrame(wx.Frame):

def init(self, parent, id=-1, title=‘wx.aui Test’, pos=(10,10), size=(-1, -1), style=wx.DEFAULT_FRAME_STYLE):

wx.Frame.init(self, parent, id, title, pos, size, style)

self._mgr = wx.aui.AuiManager(self)

self._mgr.AddPane(self.MakeTextCtrl(), wx.aui.AuiPaneInfo().Name(“Pane1”).Caption("left ").Left().CloseButton(False))

self._mgr.AddPane(self.MakeTextCtrl(), wx.aui.AuiPaneInfo().Name(“Pane2”).Caption(“right”).Right().CloseButton(False))

self._mgr.AddPane(self.MakeTextCtrl(), wx.aui.AuiPaneInfo().Name(“Pane3”).Caption(“center top”).Center().Position(0).CloseButton(False))

self._mgr.AddPane(self.MakeTextCtrl(), wx.aui.AuiPaneInfo().Name(“Pane4”).Caption(“center bottom”).Center().Position(1).CloseButton(False))

self._mgr.Update()

def MakeTextCtrl(self, default_text=“Pane - sample text”, size=(100,20)):

return wx.TextCtrl(self, -1, default_text, size=size, style=wx.TE_MULTILINE|wx.NO_BORDER)

app = wx.App()

frame = MyFrame(None)

frame.Maximize()

frame.Show()

frame._mgr.Update()

app.MainLoop()