(self, name)
| 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 | |
| 443 | if __name__ == '__main__': |
| 444 | main() |