# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/wido/src/luma/lib/luma/base/gui/LanguageDialogDesign.ui'
#
# Created: Wed Aug 17 15:23:43 2005
# by: The PyQt User Interface Compiler (pyuic) 3.14.1
#
# WARNING! All changes made in this file will be lost!
import sys
from qt import *
class LanguageDialogDesign(QDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
QDialog.__init__(self,parent,name,modal,fl)
if not name:
self.setName("LanguageDialogDesign")
LanguageDialogDesignLayout = QVBoxLayout(self,11,6,"LanguageDialogDesignLayout")
self.textLabel1 = QLabel(self,"textLabel1")
self.textLabel1.setSizePolicy(QSizePolicy(QSizePolicy.Maximum,QSizePolicy.Preferred,0,0,self.textLabel1.sizePolicy().hasHeightForWidth()))
LanguageDialogDesignLayout.addWidget(self.textLabel1)
self.languageBox = QComboBox(0,self,"languageBox")
LanguageDialogDesignLayout.addWidget(self.languageBox)
spacer9 = QSpacerItem(21,16,QSizePolicy.Minimum,QSizePolicy.Expanding)
LanguageDialogDesignLayout.addItem(spacer9)
self.line1 = QFrame(self,"line1")
self.line1.setFrameShape(QFrame.HLine)
self.line1.setFrameShadow(QFrame.Sunken)
self.line1.setFrameShape(QFrame.HLine)
LanguageDialogDesignLayout.addWidget(self.line1)
layout2 = QHBoxLayout(None,0,6,"layout2")
spacer7 = QSpacerItem(146,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
layout2.addItem(spacer7)
self.okButton = QPushButton(self,"okButton")
layout2.addWidget(self.okButton)
self.cancelButton = QPushButton(self,"cancelButton")
layout2.addWidget(self.cancelButton)
LanguageDialogDesignLayout.addLayout(layout2)
self.languageChange()
self.resize(QSize(302,132).expandedTo(self.minimumSizeHint()))
self.clearWState(Qt.WState_Polished)
self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
def languageChange(self):
self.setCaption(self.__tr("Choose Language"))
self.textLabel1.setText(self.__tr("Language:"))
self.okButton.setText(self.__tr("&Ok"))
self.okButton.setAccel(self.__tr("Alt+O"))
self.cancelButton.setText(self.__tr("&Cancel"))
self.cancelButton.setAccel(self.__tr("Alt+C"))
def __tr(self,s,c = None):
return qApp.translate("LanguageDialogDesign",s,c)
if __name__ == "__main__":
a = QApplication(sys.argv)
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = LanguageDialogDesign()
a.setMainWidget(w)
w.show()
a.exec_loop()
|