def resizeEvent(self, event): QMainWindow.resizeEvent(self, event) self.fixWebViewSize()
def resizeEvent(self, event): self.updateScreen() QMainWindow.resizeEvent(self, event)
def resizeEvent(self, event): """ @type event: QEvent """ QMainWindow.resizeEvent(self, event) self.update_preview_size()
def resizeEvent(self, event): QMainWindow.resizeEvent(self, event) self.updateStartupScreenGeometry()
if __name__ == "__main__": # The following command allows the user to kill the app with crtl-c. signal(SIGINT, SIG_DFL) # Creating the Gui app = QApplication(argv) main_window = QMainWindow() screen = QDesktopWidget().screenGeometry(1) ui = Ui_Booklet() ui.setupUi(main_window) # Adjusting to the middle of the screen. main_window.move(screen.center() - main_window.frameGeometry().center()) viewer = BookletViewer(ui) # Connecting Signals and Slots. ui.actionOpen.triggered.connect(viewer.open_pdf) ui.actionSave.triggered.connect(viewer.save_pdf) ui.actionPrint.triggered.connect(viewer.print_pdf) ui.actionAbout.triggered.connect(viewer.open_about) ui.actionFirst.triggered.connect(viewer.go_first) ui.actionNext.triggered.connect(viewer.go_next) ui.actionPrevious.triggered.connect(viewer.go_previous) ui.actionLast.triggered.connect(viewer.go_last) # Running the Application. main_window.resizeEvent = viewer.onResize main_window.show() exit(app.exec_())
def resizeEvent(self, re): QMainWindow.resizeEvent(self, re)
def resizeEvent(self, event): # Resize the main widget self.center.resize(event.size()) QMainWindow.resizeEvent(self, event)
def resizeEvent(self, event): self.emit(SIGNAL("resizeColumns")) QMainWindow.resizeEvent(self, event)