diff options
Diffstat (limited to 'examples/pykde-sampler/basic_widgets/datepicker.py')
-rw-r--r-- | examples/pykde-sampler/basic_widgets/datepicker.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/pykde-sampler/basic_widgets/datepicker.py b/examples/pykde-sampler/basic_widgets/datepicker.py index d32fb45..b0f74c6 100644 --- a/examples/pykde-sampler/basic_widgets/datepicker.py +++ b/examples/pykde-sampler/basic_widgets/datepicker.py @@ -1,5 +1,5 @@ -from qt import QFrame, QStringList, QVBoxLayout, SIGNAL, QLabel, QSizePolicy, Qt -from qttable import QTable +from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt +from qttable import TQTable from tdeui import KTextEdit, KDatePicker, KDateWidget @@ -17,26 +17,26 @@ A line edit has been added in the newer versions to allow the user to select a date directly by entering numbers like 19990101 or 990101. """ -class MainFrame(QFrame): +class MainFrame(TQFrame): def __init__(self, parent=None): - QFrame.__init__(self, parent) + TQFrame.__init__(self, parent) self.help = KTextEdit(helpText, '', self) self.dateDisplay = KDateWidget(self) - self.dateDisplay.setSizePolicy(QSizePolicy(QSizePolicy.Maximum, - QSizePolicy.Maximum)) + self.dateDisplay.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum, + TQSizePolicy.Maximum)) self.datePicker = KDatePicker(self) - layout = QVBoxLayout(self) + layout = TQVBoxLayout(self) layout.addWidget(self.help, 1) - layout.addWidget(self.datePicker, 0, Qt.AlignHCenter) + layout.addWidget(self.datePicker, 0, TQt.AlignHCenter) layout.addStretch(1) - self.other = QLabel('Selected Date:', self) + self.other = TQLabel('Selected Date:', self) layout.addWidget(self.other, 0) layout.addWidget(self.dateDisplay, 2) - self.connect(self.datePicker, SIGNAL('dateChanged(QDate)'), + self.connect(self.datePicker, SIGNAL('dateChanged(TQDate)'), self.dateDisplay.setDate) |