(self)
| 153 | self.Show() |
| 154 | |
| 155 | def setup_icon(self): |
| 156 | icon_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), |
| 157 | "resources", "wxpython.png") |
| 158 | # wx.IconFromBitmap is not available on Linux in wxPython 3.0/4.0 |
| 159 | if os.path.exists(icon_file) and hasattr(wx, "IconFromBitmap"): |
| 160 | icon = wx.IconFromBitmap(wx.Bitmap(icon_file, wx.BITMAP_TYPE_PNG)) |
| 161 | self.SetIcon(icon) |
| 162 | |
| 163 | def create_menu(self): |
| 164 | filemenu = wx.Menu() |