May 2019
Intermediate to advanced
542 pages
13h 37m
English
Now, let's create all of our widgets:
self.calendar = qtw.QCalendarWidget() self.event_list = qtw.QListWidget() self.event_title = qtw.QLineEdit() self.event_category = qtw.QComboBox() self.event_time = qtw.QTimeEdit(qtc.QTime(8, 0)) self.allday_check = qtw.QCheckBox('All Day') self.event_detail = qtw.QTextEdit() self.add_button = qtw.QPushButton('Add/Update') self.del_button = qtw.QPushButton('Delete')
These are all of the widgets we will be using in our GUI. Most of these we have covered already, but there are two new ones: QCalendarWidget and QListWidget.
QCalendarWidget is exactly what you'd expect it to be: a fully interactive calendar that can be used to view and select dates. Although it has a number of properties ...
Read now
Unlock full access