Exam 4 Flashcards

(86 cards)

1
Q

What are the 5 main python GUI options?

A

Tkinter -> part of PSL
QT -> Very popular, works x-platform
Kivy -> mobile focus
wxWidgets -> works x-platform
GTK+ > works x-platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 4 components of the event paradigm?

A

1) Event Loop- built-in loop constantly running (waiting) but not consuming too many CPU cycles
2) Events/signals- interaction w/ user triggers an event
3) Event Handler- chunk of code that does something in response to an event
4) Registration- tie the function and event together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is the main window for TKinter GUI?

A

Tk()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does Tk.mainloop() do?

A

Launches the Gui and takes over thread

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This Tkinter widget is a single line user text input field

A

Entry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Tkinter widget is used to draw complex layouts and images?

A

Canvas

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What TKinter widget acts as a container enabling grouping and organization of other widgets

A

Frame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What Tkinter widget is used for a single-line caption to another widget?

A

Label

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What Tkinter widget is used to present a user with a list of options?

A

Listbox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Tkinter dropdown menu widget used to generate a pop-up list of items within a selection?

A

OptionMenu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What Tkinter widget provides a multiline text field for user input?

A

Text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Tkinter widget for checkbox options list

A

CheckButton

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Tkinter radio button widget?

A

RadioButton

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Tkinter widget for a graphical slider allowing for value selection from a range

A

Scale

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what Tkinter widget acts a container for non-entry widgets

A

LabelFrame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

widget allowing users to select from a range of values by toggling up or down arrows

A

Spinbox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

widget allowing users to select from a range of values by toggling up or down arrows

A

Spinbox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What tk widget is a combination of an Entry widget and a Listbox widget?

A

Combobox - A combobox widget allows you to select one value in a set of values. In addition, it allows you to enter a custom value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are the three Tkinter geometry/layout managers?

A

pack, grid, and place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

this ttk widget allows you to select pages of contents by clicking tabs

A

Notebook

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What Tkinter widget allows you to give feedback to user about the progress of a long-running task?

A

ttk.Progressbar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

which TKinter widget should you use to display data in tabular or hierarchical structures?

A

ttk.Treeview

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

this Tkinter widget places a thin horizontal or vertical rule btwn widgets

A

ttk.Separator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Which Tkinter widgets have a command property and allow you to ‘Hook early’

A

Clickables- buttons, menu items, radio and check buttons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
what is the general syntax for TKinter event binding?
widget.bind("<>", callback function)
26
What are the four Tkinter binding variables?
StringVar(), IntVar(), DoubleVar(), and BooleanVar()
27
syntax for changing text on a label in Tkinter
somelabel['text'] = 'some new text'
28
what are the keywords of the Pack() geometry manager?
left, right, bottom, top
29
what are the keywords of the Grid() geometry manager?
N, S, E, W, NE, NW, SE, SW
30
how are widgets placed using the Place() geometry manager?
absolute (pixel) location
31
what Tkinter widget allows you to mix the three geometry managers within a single TK()?
Frame
32
what are the four main categories of TKinter dialogues
1) messagebox -> decision and no decision variants 2) simpledialog -> single value data entry 3) filedialog 4) colorchooser
33
what are the two GUI graphical designers for TKinter?
Pygubu and Page
34
what are the popular bindings for QT and Python?
QT Wiki, QtPy, PyQt4, PyQt5, Pyside, Pyside 2, Pyside 3 (only for Qt6)
35
What is QT Creator?
An IDE for C++ & QT development extended for QML and Python. Has debugging, code completion, app analysis/monitoring, console output, and project creation
36
The Qt5 base class for all UI objects?
QWidget
37
Qt5 checkbox with a text label
QCheckbox
38
Qt5 combined button and popup list widget
QComboBox
39
Qt5 Widget for editing just dates
QDateEdit
40
Qt5 widget for editing dates and times
QDateTimeEdit
41
Qt5 widget for editing just times
QTimeEdit
42
Qt5 rounded range control (think speedometer)
QDial
43
text or image display Qt5
QLabel
44
Qt5 one-line text editor
QLineEdit
45
menu widget for use in menu bars, context menus, and other popup menus
QMenu
46
Qt5 command button
QPushButton
47
Qt5 radio button with a text label
QRadioButton
48
Qt5 Scrolling view onto another widget
QScrollArea
49
Qt5 vertical or horizontal scrollbar
QScrollBar
50
Qt5 resize handle for resizing top-level windows
QSizeGrip
51
Column of tabbed widget items
QToolBox
52
Qt5 spinbox that takes doubles`
QDoubleSpinBox
53
Represents an anchor between two items in a QGraphicsAnchorLayout
QGraphicsAnchor
54
Layout where one can anchor widgets together in Graphics View
QGraphicsAnchorLayout
55
Lines up child widgets horizontally or vertically
QBoxLayout
56
Lines up widgets horizontally
QHBoxLayout
57
Lines up widgets vertically
QVBoxLayout
58
Manages forms of input widgets and their associated labels
QFormLayout
59
Lays out widgets in a grid
QGridLayout
60
the Qt5 base class of geometry managers
QLayout
61
Lays out widgets in a grid
QGridLayout
62
Abstract item that a QLayout manipulates
QLayoutItem
63
Blank space in a layout
QSpacerItem
64
Layout item that represents a widget
QWidgetItem
65
Qt5 Layout attribute describing horizontal and vertical resizing policy
QSizePolicy
66
Qt5 stack of widgets where only one widget is visible at a time
QStackedWidget and QStackedLayout
67
Qt5 container to organize groups of button widgets
QButtonGroup
68
Qt5 box frame with a title
QGroupBox
69
Model/view implementation Qt5 widget
QColumnView
70
Mapping btwn a section of a data model to widgets in Qt5
QDataWidgetMapper
71
Qt5 widget that provides a list or icon view onto a model.
QListView
72
Qt5 widget for default model/view implementation of a table view
QTableView
73
Qt5 widget for default model/view implementation of a tree view
QTreeView
74
Qt5 widget that dislpays the contents of a QUndoStack
QUndoView
75
Monthly based calendar widget allowing the user to select a date
QCalenderWidget
76
Qt5 container widget to organize groups of button widgets
QButtonGroup
77
Qt5 group box frame w/ a title
QGroupBox
78
Qt5 implementation of a splitter widget
QSplitter
79
Qt5 widget that handles functionality for the splitter
QSplitterHandle
80
Qt5 stack of tabbed widgets
QTabWidget
81
what are the key differences between Qt widgets, Qt Quick, and QML
Qt is the older, standalone UI builder designed for desktop applications and is built from C++. QML is a full programing language (user markup language based in javascript), while Qt quick is the framework for QML. Qt Quick and QML are meant to be used together.
82
what are the six Qt-quick positioners
1) Column -> positions its children in a column (vertically aligned...its wierd that's not a typo) 2) Flow -> Positions its children side by side, wrapping as necessary 3) Grid -> Positions it's children in grid formation 4) LayoutMirroring -> Property used to mirror layout behaviour 5) Positioner -> provides attached properties that contain details on where an item exists in a positioner 6) Row -> positions its children in a row (horizontally aligned...its wierd that's not a typo)
83
what is the difference btwn Qt-quick positioners and layouts?
layouts have more resizing options
84
what are the five core areas of customization for material design?
Theme, Primary, Accent, Foreground, and Background
85
What are Qt views for and what are the three types?
Dealing with many. Listview -> Provides a list view of items provided by a model GridView -> For specifying a grid view of items provided by a model. PathView -> Lays out model-provided items on a path (creates 3D relief / dimensionality)
86
what is the primary syntx of Dundar methods?
leading and trailing double underscores __someMethod__()