various fixes for windows

This commit is contained in:
2021-11-02 20:29:19 +01:00
parent 5b9c64fb86
commit 8a5574e336
6 changed files with 21 additions and 14 deletions

12
main.py
View File

@@ -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)