Added help_text
authorDmitriy Morozov <morozov@cs.duke.edu>
Sat, 29 Mar 2008 15:52:29 -0400
changeset 5 cf32356b1020
parent 4 3e59316763c8
child 6 4d7c6bd8c0a7
Added help_text
pyqflickr.py
--- a/pyqflickr.py	Sat Mar 29 11:20:24 2008 -0400
+++ b/pyqflickr.py	Sat Mar 29 15:52:29 2008 -0400
@@ -9,6 +9,13 @@
 
 working_path = os.path.expanduser('~/.pyqflickr')
 photo_size = ''       # medium
+help_text = '''
+Ctrl+Right &mdash; next image<br>
+Ctrl+Left  &mdash; previous image<br>
+Ctrl+Up    &mdash; one level up<br>
+Ctrl+R     &mdash; rotate 90 degrees (schedule into batch)<br>
+Ctrl+W     &mdash; rotate 270 degrees (schedule into batch)<br>
+Ctrl+P     &mdash; toggle private/public'''
 
 # Keyboard sensitive QLineEdit
 class LineEditWithShortcuts(QtGui.QLineEdit):
@@ -24,6 +31,7 @@
 class ProgressDialog(QtGui.QProgressDialog):
     def __init__(self, text, max, cancelButtonText = 'Cancel'):
         QtGui.QProgressDialog.__init__(self, text, cancelButtonText, 0, max)
+        self.setWindowTitle('PyQFlickr')
         self.canceled = False
         self.setValue(0)
         self.setMinimumDuration(0)
@@ -123,12 +131,12 @@
                         <td bgcolor="#DDDDDD">%s</td>
                     </tr>
                     <tr>
-                    <td colspan="2">%i out of %i</td>
+                    <td colspan="2">%i out of %i<br><br>%s</td>
                     </tr>
                  </table>
                  </center>''' % \
                (photo.get(working_path, photo_size, force), info_txt,
-                self.photo + 1, len(self.photos))
+                self.photo + 1, len(self.photos), help_text)
         self.ui.interfaceBrowser.setHtml(txt)
 
     def prefetchAll(self):