]> sigrok.org Git - sigrok-meter.git/blobdiff - mainwindow.py
Add .gitignore file.
[sigrok-meter.git] / mainwindow.py
index 06a958ed1d35a9d05b3671588d3e9f50eafda269..7dd6c3a9ced4b81bbad598edc6d57d5eb67fe045 100644 (file)
@@ -66,8 +66,8 @@ class MainWindow(QtGui.QMainWindow):
 
     def setup_ui(self):
         self.setWindowTitle('sigrok-meter')
-        # resizing the listView below will increase this again
-        self.resize(10, 10)
+        # Resizing the listView below will increase this again.
+        self.resize(350, 10)
 
         p = os.path.abspath(os.path.dirname(__file__))
         p = os.path.join(p, 'sigrok-logo-notext.png')
@@ -114,12 +114,13 @@ class MainWindow(QtGui.QMainWindow):
     def show_about(self):
         text = textwrap.dedent('''\
             <div align="center">
-                <b>sigrok-meter</b><br/>
-                0.1.0<br/>
-                Using libsigrok {} (lib version {}).<br/>
+                <b>sigrok-meter 0.1.0</b><br/><br/>
+                Using libsigrok {} (lib version {}).<br/><br/>
                 <a href='http://www.sigrok.org'>
                          http://www.sigrok.org</a><br/>
                 <br/>
+                License: GNU GPL, version 3 or later<br/>
+                <br/>
                 This program comes with ABSOLUTELY NO WARRANTY;<br/>
                 for details visit
                 <a href='http://www.gnu.org/licenses/gpl.html'>
@@ -137,8 +138,7 @@ class MainWindow(QtGui.QMainWindow):
 
     @QtCore.Slot(object, int, int)
     def modelRowsInserted(self, parent, start, end):
-        '''Resizes the list view to the size of the content.'''
-
+        '''Resize the list view to the size of the content.'''
         rows = self.model.rowCount()
         dh = self.delegate.sizeHint().height()
         self.listView.setMinimumHeight(dh * rows)