[kamera commit] r64 - trunk/kamera

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 27, 2008, 7:07:34 AM11/27/08
to kamera-...@googlegroups.com
Author: ugur.jnmbk
Date: Thu Nov 27 04:07:14 2008
New Revision: 64

Modified:
trunk/kamera/mainwindow.py

Log:
show last image on the left side

Modified: trunk/kamera/mainwindow.py
==============================================================================
--- trunk/kamera/mainwindow.py (original)
+++ trunk/kamera/mainwindow.py Thu Nov 27 04:07:14 2008
@@ -62,6 +62,7 @@

def createImageList(self):
self.imageFiles = [file for file in os.listdir(".") if
file.startswith("kamera_")]
+ self.imageFiles.sort()
imageLayout = QtGui.QHBoxLayout()
self.imageListWidget = QtGui.QWidget()
self.imageListWidget.setLayout(imageLayout)
@@ -74,7 +75,7 @@
label.setPixmap(pixmap.scaledToHeight(100))
label.setMaximumSize(label.pixmap().size())
label.setStyleSheet("border-right:2px solid gray;border-bottom:2px
solid black")
- self.imageListWidget.layout().addWidget(label)
+ self.imageListWidget.layout().insertWidget(0, label)

@QtCore.pyqtSignature("bool")
def on_pushButton_save_clicked(self):

Reply all
Reply to author
Forward
0 new messages