mixing event manager and AuiManager / general understanding problem ctrls and events

1:
How can I have a pane I added to AuiManager via for instance

wnd = wx.TextCtrl(u'TEST')
self._mgr.AddPane(wnd, aui.AuiPaneInfo().
                          Name("test10").Caption("Kalkulation").
                          Bottom().MinimizeButton(True))

change its content via an event triggered by another pane instance?

2:

I think I have a general misconception of ctrls and reactions to events.
Generally I want to be able to to have a pane or panel whose content is
determinied by events triggered (automatically or manually)
from another panel ...
Whenever I think I have figured it out it would not work in connection
w/ AuiManager managed panes.
I might be confusing aui.Manager, responsible for a pane's LAYOUT with
the actual pane and its content, thoug I am not sure how to access
already created content of a pane ...
To illustrate a simple example from the demo: (agw.AUI):

In the TreePane (left) when an Item is clicked, I want to update the
content of the html window showing WELCOME TO AUI at startup to display
some other text...

I am lost right now.

ThanX

T

1:
How can I have a pane I added to AuiManager via for instance

wnd = wx.TextCtrl(u'TEST')

To be able to easily access the TextCtrl later on you want to save a reference to it

self.wnd = wx.TextCtrl(u'TEST')

self._mgr.AddPane(wnd, aui.AuiPaneInfo().
                           Name("test10").Caption("Kalkulation").
                           Bottom().MinimizeButton(True))

change its content via an event triggered by another pane instance?

Assuming that both thispane and theother pane have a common parent you could now access it by doing thotherpane.GetParent().thispane.wnd.ChangeValue....

or you could again use pubsub and have theotherpane do a sendmessage and thispane do a subscribe

2:

I think I have a general misconception of ctrls and reactions to events.
Generally I want to be able to to have a pane or panel whose content is
determinied by events triggered (automatically or manually)
from another panel ...

pane/panel are containers of controls

Whenever I think I have figured it out it would not work in connection
w/ AuiManager managed panes.
I might be confusing aui.Manager, responsible for a pane's LAYOUT with
the actual pane and its content, thoug I am not sure how to access
already created content of a pane ...

aui is "just" another container - also a pretty sophisticated one which contains lots of other containers and they then contain controls, also you can/could set just one control as a auipane (which you have done above).

Hope it helps and doesn't add to the confusion.
Werner

···

On 10/10/2011 11:01 AM, Tobias Weber wrote:

Thank you very much Werner,

I think this helps. Will have another coffee and put together a test app
for this.

Cheers,

T

···

Am 10.10.11 11:45, schrieb werner:

On 10/10/2011 11:01 AM, Tobias Weber wrote:

1:
How can I have a pane I added to AuiManager via for instance

wnd = wx.TextCtrl(u'TEST')

To be able to easily access the TextCtrl later on you want to save a
reference to it

self.wnd = wx.TextCtrl(u'TEST')

self._mgr.AddPane(wnd, aui.AuiPaneInfo().
                           Name("test10").Caption("Kalkulation").
                           Bottom().MinimizeButton(True))

change its content via an event triggered by another pane instance?

Assuming that both thispane and theother pane have a common parent you
could now access it by doing
thotherpane.GetParent().thispane.wnd.ChangeValue....

or you could again use pubsub and have theotherpane do a sendmessage
and thispane do a subscribe

2:

I think I have a general misconception of ctrls and reactions to events.
Generally I want to be able to to have a pane or panel whose content is
determinied by events triggered (automatically or manually)
from another panel ...

pane/panel are containers of controls

Whenever I think I have figured it out it would not work in connection
w/ AuiManager managed panes.
I might be confusing aui.Manager, responsible for a pane's LAYOUT with
the actual pane and its content, thoug I am not sure how to access
already created content of a pane ...

aui is "just" another container - also a pretty sophisticated one
which contains lots of other containers and they then contain
controls, also you can/could set just one control as a auipane (which
you have done above).

Hope it helps and doesn't add to the confusion.
Werner

--
--------------------------------------------------
Tobias Weber
CEO

The ROG Corporation GmbH
Donaustaufer Str. 200
93059 Regensburg
Tel: +49 941 4610 57 55
Fax: +49 941 4610 57 56

www.roglink.com

Gesch�ftsf�hrer: Tobias Weber
Registergericht: Amtsgericht Regensburg - HRB 8954
UStID DE225905250 - Steuer-Nr.184/59359
--------------------------------------------------