Is there any way to get a status bar on a class derived from wx.Dialog?
Larry Martell wrote:
Is there any way to get a status bar on a class derived from wx.Dialog?
You can create a wx.StatusBar like any other widget as a child of the dialog, and add it to a sizer to position it. IIRC on Windows there is something about the native widget that will always force it to the bottom, but that is what you want it to do anyway.
···
--
Robin Dunn
Software Craftsman
OK, thanks. I was trying to create the status bar from the dialog
itself but I was getting an AttributreError: object has no attribute
'CreateStatusBar'
···
On Wed, Apr 23, 2014 at 7:22 PM, Robin Dunn <robin@alldunn.com> wrote:
Larry Martell wrote:
Is there any way to get a status bar on a class derived from wx.Dialog?
You can create a wx.StatusBar like any other widget as a child of the
dialog, and add it to a sizer to position it. IIRC on Windows there is
something about the native widget that will always force it to the bottom,
but that is what you want it to do anyway.
That is usually how it works, but apparently it can be done both ways.
Not sure that it might work that way for earlier wx versions tho… maybe. one would have to try it themselves.
See attachments for test sample.
statusbar_and_diaog_test.py (1.79 KB)
···
On Wednesday, April 23, 2014 7:22:39 PM UTC-6, Robin Dunn wrote:
Larry Martell wrote:
Is there any way to get a status bar on a class derived from wx.Dialog?
You can create a wx.StatusBar like any other widget as a child of the
dialog, and add it to a sizer to position it. IIRC on Windows there is
something about the native widget that will always force it to the
bottom, but that is what you want it to do anyway.–
Robin DunnSoftware Craftsman