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

Method createButton

examples/qt.py:433–441  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

431 self.url.setText(browser.GetUrl())
432
433 def createButton(self, name):
434 resources = os.path.join(os.path.abspath(os.path.dirname(__file__)),
435 "resources")
436 pixmap = QPixmap(os.path.join(resources, "{0}.png".format(name)))
437 icon = QIcon(pixmap)
438 button = QPushButton()
439 button.setIcon(icon)
440 button.setIconSize(pixmap.rect().size())
441 return button
442
443if __name__ == '__main__':
444 main()

Callers 1

__init__Method · 0.95

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected