diff options
Diffstat (limited to 'src/gui/mainwindow.py')
| -rw-r--r-- | src/gui/mainwindow.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py index 2bfc4e3..c2e2c83 100644 --- a/src/gui/mainwindow.py +++ b/src/gui/mainwindow.py @@ -53,9 +53,9 @@ class MainWindow(QtWidgets.QMainWindow): self.resize( int(self.width() * - (dpi / 96)), + (dpi / 144)), int(self.height() * - (dpi / 96)) + (dpi / 144)) ) self.core = Core() @@ -432,6 +432,11 @@ class MainWindow(QtWidgets.QMainWindow): # Close MainWindow when receiving Ctrl+C from terminal signal.signal(signal.SIGINT, lambda *args: self.close()) + # Add initial components if none are in the list + if not self.core.selectedComponents: + self.addComponent(0, 1) + self.addComponent(0, 0) + def __repr__(self): return ( '%s\n' |
