X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=mainwindow.py;h=2af07b2a0018bf31b821a9a268e7fa802b03c297;hb=480cdb7bc04548aec46b7342d6fa1acafa60331c;hp=06a958ed1d35a9d05b3671588d3e9f50eafda269;hpb=02862990fcba8d9c6d6efd284d5a08de17236811;p=sigrok-meter.git diff --git a/mainwindow.py b/mainwindow.py index 06a958e..2af07b2 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -66,7 +66,7 @@ class MainWindow(QtGui.QMainWindow): def setup_ui(self): self.setWindowTitle('sigrok-meter') - # resizing the listView below will increase this again + # Resizing the listView below will increase this again. self.resize(10, 10) p = os.path.abspath(os.path.dirname(__file__)) @@ -114,12 +114,13 @@ class MainWindow(QtGui.QMainWindow): def show_about(self): text = textwrap.dedent('''\
- sigrok-meter
- 0.1.0
- Using libsigrok {} (lib version {}).
+ sigrok-meter 0.1.0

+ Using libsigrok {} (lib version {}).

http://www.sigrok.org

+ License: GNU GPL, version 3 or later
+
This program comes with ABSOLUTELY NO WARRANTY;
for details visit @@ -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)