Show More
@@ -117,7 +117,7 b' class MainWindow(QtGui.QMainWindow):' | |||||
117 | self.close() |
|
117 | self.close() | |
118 |
|
118 | |||
119 | @property |
|
119 | @property | |
120 |
def active |
|
120 | def active_frontend(self): | |
121 | return self.tab_widget.currentWidget() |
|
121 | return self.tab_widget.currentWidget() | |
122 |
|
122 | |||
123 | def close_tab(self,currentTab): |
|
123 | def close_tab(self,currentTab): | |
@@ -486,40 +486,40 b' class MainWindow(QtGui.QMainWindow):' | |||||
486 | self.log.error("trying to add unexisting action (whos), skipping") |
|
486 | self.log.error("trying to add unexisting action (whos), skipping") | |
487 |
|
487 | |||
488 | def undo_active_frontend(self): |
|
488 | def undo_active_frontend(self): | |
489 |
self.active |
|
489 | self.active_frontend.undo() | |
490 |
|
490 | |||
491 | def redo_active_frontend(self): |
|
491 | def redo_active_frontend(self): | |
492 |
self.active |
|
492 | self.active_frontend.redo() | |
493 | def reset_magic_active_frontend(self): |
|
493 | def reset_magic_active_frontend(self): | |
494 |
self.active |
|
494 | self.active_frontend.execute("%reset") | |
495 | def history_magic_active_frontend(self): |
|
495 | def history_magic_active_frontend(self): | |
496 |
self.active |
|
496 | self.active_frontend.history_magic() | |
497 | def save_magic_active_frontend(self): |
|
497 | def save_magic_active_frontend(self): | |
498 |
self.active |
|
498 | self.active_frontend.save_magic() | |
499 | def clear_magic_active_frontend(self): |
|
499 | def clear_magic_active_frontend(self): | |
500 |
self.active |
|
500 | self.active_frontend.execute("%clear") | |
501 | def who_magic_active_frontend(self): |
|
501 | def who_magic_active_frontend(self): | |
502 |
self.active |
|
502 | self.active_frontend.execute("%who") | |
503 | def who_ls_magic_active_frontend(self): |
|
503 | def who_ls_magic_active_frontend(self): | |
504 |
self.active |
|
504 | self.active_frontend.execute("%who_ls") | |
505 | def whos_magic_active_frontend(self): |
|
505 | def whos_magic_active_frontend(self): | |
506 |
self.active |
|
506 | self.active_frontend.execute("%whos") | |
507 |
|
507 | |||
508 | def print_action_active_frontend(self): |
|
508 | def print_action_active_frontend(self): | |
509 |
self.active |
|
509 | self.active_frontend.print_action.trigger() | |
510 |
|
510 | |||
511 | def export_action_active_frontend(self): |
|
511 | def export_action_active_frontend(self): | |
512 |
self.active |
|
512 | self.active_frontend.export_action.trigger() | |
513 |
|
513 | |||
514 | def select_all_active_frontend(self): |
|
514 | def select_all_active_frontend(self): | |
515 |
self.active |
|
515 | self.active_frontend.select_all_action.trigger() | |
516 |
|
516 | |||
517 | def increase_font_size_active_frontend(self): |
|
517 | def increase_font_size_active_frontend(self): | |
518 |
self.active |
|
518 | self.active_frontend.increase_font_size.trigger() | |
519 | def decrease_font_size_active_frontend(self): |
|
519 | def decrease_font_size_active_frontend(self): | |
520 |
self.active |
|
520 | self.active_frontend.decrease_font_size.trigger() | |
521 | def reset_font_size_active_frontend(self): |
|
521 | def reset_font_size_active_frontend(self): | |
522 |
self.active |
|
522 | self.active_frontend.reset_font_size.trigger() | |
523 | #--------------------------------------------------------------------------- |
|
523 | #--------------------------------------------------------------------------- | |
524 | # QWidget interface |
|
524 | # QWidget interface | |
525 | #--------------------------------------------------------------------------- |
|
525 | #--------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now