summaryrefslogtreecommitdiffstats
path: root/examples/pykde-sampler/basic_widgets/datepicker.py
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-05 00:17:19 -0600
committerTimothy Pearson <[email protected]>2011-12-05 00:17:19 -0600
commitd070aee4c277d331e54b81ac2881977a8d8cb7c0 (patch)
tree81fc5f857e6f4eafafd48f2ae70a787e02d10c5d /examples/pykde-sampler/basic_widgets/datepicker.py
parent01bd7e2ffdc3caa95228e03ad501d778b05270a9 (diff)
downloadpytde-d070aee4c277d331e54b81ac2881977a8d8cb7c0.tar.gz
pytde-d070aee4c277d331e54b81ac2881977a8d8cb7c0.zip
Finish pykde to pytde rename
Diffstat (limited to 'examples/pykde-sampler/basic_widgets/datepicker.py')
-rw-r--r--examples/pykde-sampler/basic_widgets/datepicker.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/examples/pykde-sampler/basic_widgets/datepicker.py b/examples/pykde-sampler/basic_widgets/datepicker.py
deleted file mode 100644
index b0f74c6..0000000
--- a/examples/pykde-sampler/basic_widgets/datepicker.py
+++ /dev/null
@@ -1,42 +0,0 @@
-from qt import TQFrame, TQStringList, TQVBoxLayout, SIGNAL, TQLabel, TQSizePolicy, TQt
-from qttable import TQTable
-from tdeui import KTextEdit, KDatePicker, KDateWidget
-
-
-labelText = 'KDatePicker'
-iconName = 'date'
-helpText = """A date selection widget.
-
-Provides a widget for calendar date input.
-
-Different from the previous versions, it now emits two types of
-signals, either dateSelected() or dateEntered() (see documentation for
-both signals).
-
-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(TQFrame):
- def __init__(self, parent=None):
- TQFrame.__init__(self, parent)
- self.help = KTextEdit(helpText, '', self)
- self.dateDisplay = KDateWidget(self)
-
- self.dateDisplay.setSizePolicy(TQSizePolicy(TQSizePolicy.Maximum,
- TQSizePolicy.Maximum))
-
- self.datePicker = KDatePicker(self)
-
- layout = TQVBoxLayout(self)
- layout.addWidget(self.help, 1)
- layout.addWidget(self.datePicker, 0, TQt.AlignHCenter)
- layout.addStretch(1)
-
- self.other = TQLabel('Selected Date:', self)
- layout.addWidget(self.other, 0)
- layout.addWidget(self.dateDisplay, 2)
-
- self.connect(self.datePicker, SIGNAL('dateChanged(TQDate)'),
- self.dateDisplay.setDate)
-