示例#1
0
 def resizeEvent(self, event):
     QMainWindow.resizeEvent(self, event)
     self.fixWebViewSize()
示例#2
0
 def resizeEvent(self, event):
     QMainWindow.resizeEvent(self, event)
     self.fixWebViewSize()
示例#3
0
 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()
示例#5
0
 def resizeEvent(self, event):
     QMainWindow.resizeEvent(self, event)
     self.updateStartupScreenGeometry()
示例#6
0
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_())
示例#7
0
 def resizeEvent(self, event):
     QMainWindow.resizeEvent(self, event)
     self.updateStartupScreenGeometry()
 def resizeEvent(self, re):
     QMainWindow.resizeEvent(self, re)
示例#9
0
    def resizeEvent(self, event):
        # Resize the main widget
        self.center.resize(event.size())

        QMainWindow.resizeEvent(self, event)
示例#10
0
 def resizeEvent(self, event):
     self.emit(SIGNAL("resizeColumns"))
     QMainWindow.resizeEvent(self, event)