فهرست منبع

Update statusbar and removed menu

Nikola Kotur 5 سال پیش
والد
کامیت
3a5333850c
2فایلهای تغییر یافته به همراه5 افزوده شده و 26 حذف شده
  1. 4 1
      jirashell/main.py
  2. 1 25
      jirashell/ui/gui.ui

+ 4 - 1
jirashell/main.py

@@ -2,7 +2,7 @@
 import os
 import sys
 
-from PySide2.QtWidgets import QApplication
+from PySide2.QtWidgets import QApplication, QStatusBar
 from PySide2.QtUiTools import QUiLoader
 from PySide2.QtCore import QFile
 
@@ -17,6 +17,9 @@ def main():
     loader = QUiLoader()
     window = loader.load(file)
 
+    statusbar = window.findChild(QStatusBar, 'statusbar')
+    statusbar.showMessage('Ready')
+
     # Show main window.
     window.show()
 

+ 1 - 25
jirashell/ui/gui.ui

@@ -13,31 +13,7 @@
   <property name="windowTitle">
    <string>MainWindow</string>
   </property>
-  <widget class="QWidget" name="centralwidget">
-   <widget class="QPushButton" name="pushButton">
-    <property name="geometry">
-     <rect>
-      <x>120</x>
-      <y>160</y>
-      <width>80</width>
-      <height>21</height>
-     </rect>
-    </property>
-    <property name="text">
-     <string>Hello</string>
-    </property>
-   </widget>
-  </widget>
-  <widget class="QMenuBar" name="menubar">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>640</width>
-     <height>19</height>
-    </rect>
-   </property>
-  </widget>
+  <widget class="QWidget" name="centralwidget"/>
   <widget class="QStatusBar" name="statusbar"/>
  </widget>
  <resources/>