various fixes for windows
This commit is contained in:
12
main.py
12
main.py
@@ -61,7 +61,8 @@ class MainWindow(QMainWindow):
|
||||
open_file.setShortcut('Ctrl+O')
|
||||
open_file.triggered.connect(self._open_file_dialog)
|
||||
|
||||
close_action = QAction(QIcon.fromTheme("exit"), self.tr("E&xit", "menu item to close the application"), self)
|
||||
# Linux: QIcon.fromTheme("exit")
|
||||
close_action = QAction(QIcon.fromTheme("close"), self.tr("E&xit", "menu item to close the application"), self)
|
||||
close_action.setShortcut('Ctrl+X')
|
||||
close_action.triggered.connect(self.destruct)
|
||||
|
||||
@@ -206,10 +207,11 @@ if __name__ == "__main__":
|
||||
window = MainWindow()
|
||||
RavenUI.window = window
|
||||
window.show()
|
||||
window.open_file("/home/andi/ws/performanceDb/data/production/logs_2018-09-06_2018-09-06.csv")
|
||||
window.open_file("/home/andi/ws/performanceDb/data/production/vapbdcom.csv")
|
||||
window.open_file("/var/log/syslog")
|
||||
window.open_file("/home/andi/ws/ravenlog/example.log")
|
||||
#window.open_file("/home/andi/ws/performanceDb/data/production/logs_2018-09-06_2018-09-06.csv")
|
||||
#window.open_file("/home/andi/ws/performanceDb/data/production/vapbdcom.csv")
|
||||
#window.open_file("/var/log/syslog")
|
||||
#window.open_file("/home/andi/ws/ravenlog/example.log")
|
||||
window.open_file("C:\\Users\\andi\\ws\\some.log")
|
||||
|
||||
signal.signal(signal.SIGINT, stop_signal)
|
||||
signal.signal(signal.SIGTERM, stop_signal)
|
||||
|
||||
Reference in New Issue
Block a user