first test of print to pdf, aouch :(
This commit is contained in:
@@ -54,6 +54,10 @@ class MainWindow(QMainWindow):
|
||||
self.save_action.setShortcut("Ctrl+Shift+s")
|
||||
file.addAction(self.save_action)
|
||||
|
||||
prnt = QAction("&Print",self)
|
||||
prnt.setShortcut("Ctrl+p")
|
||||
file.addAction(prnt)
|
||||
|
||||
quit = QAction("&Quit",self)
|
||||
quit.setShortcut("Ctrl+q")
|
||||
file.addAction(quit)
|
||||
@@ -105,6 +109,8 @@ class MainWindow(QMainWindow):
|
||||
self.openprojectdialogue()
|
||||
elif q.text() == "&Save Project as":
|
||||
self.saveprojectdialogue()
|
||||
elif q.text() == "&Print":
|
||||
self.imprim()
|
||||
elif q.text() == "&Quit":
|
||||
self.quit()
|
||||
|
||||
@@ -179,6 +185,10 @@ class MainWindow(QMainWindow):
|
||||
print('Exception', e)
|
||||
pass
|
||||
|
||||
def imprim(self):
|
||||
print('imprim')
|
||||
self.designstack.webkitview.onPrint()
|
||||
|
||||
def quit(self):
|
||||
print("Quit")
|
||||
if self.core.tempcwd:
|
||||
|
||||
Reference in New Issue
Block a user