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

Method setup_icon

examples/tkinter_.py:145–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 return None
144
145 def setup_icon(self):
146 resources = os.path.join(os.path.dirname(__file__), "resources")
147 icon_path = os.path.join(resources, "tkinter"+IMAGE_EXT)
148 if os.path.exists(icon_path):
149 self.icon = tk.PhotoImage(file=icon_path)
150 # noinspection PyProtectedMember
151 self.master.call("wm", "iconphoto", self.master._w, self.icon)
152
153
154class BrowserFrame(tk.Frame):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected