I would do something like:
In __set_properties(self) self.AppName = “My Application”
:
def _set_mode_title(self, ModeText = None):
“”" Set the frame title depending on the mode “”"
if ModeText == None:
title = self.AppName
else:
title = “%s - %s” % (self.AppName, ModeText)
self.SetTitle(title)
then on the toolbar actions call self._set_mode_title(“Descriptive
Text”) and on the end of a mode call self._set_mode_title()
···
On 22/01/13 12:24, fedeteca wrote:
Hello, this is my first post on this group but I was
reading a lot.
I have something like:
def __set_properties(self):
begin wxGlade: MyFrame.__set_properties
self.SetTitle(“My Aplication”)
and I want to change to "My Aplication - User control", "My
Aplication - Set up", “My Aplication - Print selection”… when
I choose another icon on the toolbar.
How can I do that? Do I need to have a global variable to
store the "active panel or something like this?
Thanks.
–
To unsubscribe, send email to
or visit
–
Steve Gadget Barnes
wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en