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):