MCPcopy Create free account
hub / github.com/cztomczak/cefpython / setup_icon

Method setup_icon

examples/wxpython.py:155–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected