Skip to content

Instantly share code, notes, and snippets.

@driscollis
Created January 21, 2021 19:35
Show Gist options
  • Save driscollis/f562afaa1af479baab315102f7deeda8 to your computer and use it in GitHub Desktop.
Save driscollis/f562afaa1af479baab315102f7deeda8 to your computer and use it in GitHub Desktop.
import wx
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title='')
panel = wx.Panel(self)
self.statusbar = self.CreateStatusBar(
1, style=wx.STB_SIZEGRIP|wx.STB_ELLIPSIZE_END|wx.FULL_REPAINT_ON_RESIZE)
self.statusbar.SetStatusText('This goes in your statusbar')
self.statusbar.SetToolTip("Statusbar tooltip!")
self.Show()
if __name__ == '__main__':
app = wx.App(False)
frame = MainFrame()
app.MainLoop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment