Exam 4 Flashcards

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
Q

what is the general syntax for TKinter event binding?

A

widget.bind(“«name of the event»”, callback function)

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

What are the four Tkinter binding variables?

A

StringVar(), IntVar(), DoubleVar(), and BooleanVar()

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

syntax for changing text on a label in Tkinter

A

somelabel[‘text’] = ‘some new text’

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

what are the keywords of the Pack() geometry manager?

A

left, right, bottom, top

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

what are the keywords of the Grid() geometry manager?

A

N, S, E, W, NE, NW, SE, SW

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

how are widgets placed using the Place() geometry manager?

A

absolute (pixel) location

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

what Tkinter widget allows you to mix the three geometry managers within a single TK()?

A

Frame

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

what are the four main categories of TKinter dialogues

A

1) messagebox -> decision and no decision variants
2) simpledialog -> single value data entry
3) filedialog
4) colorchooser

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

what are the two GUI graphical designers for TKinter?

A

Pygubu and Page

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

what are the popular bindings for QT and Python?

A

QT Wiki, QtPy, PyQt4, PyQt5, Pyside, Pyside 2, Pyside 3 (only for Qt6)

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

What is QT Creator?

A

An IDE for C++ & QT development extended for QML and Python. Has debugging, code completion, app analysis/monitoring, console output, and project creation

36
Q

The Qt5 base class for all UI objects?

A

QWidget

37
Q

Qt5 checkbox with a text label

A

QCheckbox

38
Q

Qt5 combined button and popup list widget

A

QComboBox

39
Q

Qt5 Widget for editing just dates

A

QDateEdit

40
Q

Qt5 widget for editing dates and times

A

QDateTimeEdit

41
Q

Qt5 widget for editing just times

A

QTimeEdit

42
Q

Qt5 rounded range control (think speedometer)

A

QDial

43
Q

text or image display Qt5

A

QLabel

44
Q

Qt5 one-line text editor

A

QLineEdit

45
Q

menu widget for use in menu bars, context menus, and other popup menus

A

QMenu

46
Q

Qt5 command button

A

QPushButton

47
Q

Qt5 radio button with a text label

A

QRadioButton

48
Q

Qt5 Scrolling view onto another widget

A

QScrollArea

49
Q

Qt5 vertical or horizontal scrollbar

A

QScrollBar

50
Q

Qt5 resize handle for resizing top-level windows

A

QSizeGrip

51
Q

Column of tabbed widget items

A

QToolBox

52
Q

Qt5 spinbox that takes doubles`

A

QDoubleSpinBox

53
Q

Represents an anchor between two items in a QGraphicsAnchorLayout

A

QGraphicsAnchor

54
Q

Layout where one can anchor widgets together in Graphics View

A

QGraphicsAnchorLayout

55
Q

Lines up child widgets horizontally or vertically

A

QBoxLayout

56
Q

Lines up widgets horizontally

A

QHBoxLayout

57
Q

Lines up widgets vertically

A

QVBoxLayout

58
Q

Manages forms of input widgets and their associated labels

A

QFormLayout

59
Q

Lays out widgets in a grid

A

QGridLayout

60
Q

the Qt5 base class of geometry managers

A

QLayout

61
Q

Lays out widgets in a grid

A

QGridLayout

62
Q

Abstract item that a QLayout manipulates

A

QLayoutItem

63
Q

Blank space in a layout

A

QSpacerItem

64
Q

Layout item that represents a widget

A

QWidgetItem

65
Q

Qt5 Layout attribute describing horizontal and vertical resizing policy

A

QSizePolicy

66
Q

Qt5 stack of widgets where only one widget is visible at a time

A

QStackedWidget and QStackedLayout

67
Q

Qt5 container to organize groups of button widgets

A

QButtonGroup

68
Q

Qt5 box frame with a title

A

QGroupBox

69
Q

Model/view implementation Qt5 widget

A

QColumnView

70
Q

Mapping btwn a section of a data model to widgets in Qt5

A

QDataWidgetMapper

71
Q

Qt5 widget that provides a list or icon view onto a model.

A

QListView

72
Q

Qt5 widget for default model/view implementation of a table view

A

QTableView

73
Q

Qt5 widget for default model/view implementation of a tree view

A

QTreeView

74
Q

Qt5 widget that dislpays the contents of a QUndoStack

A

QUndoView

75
Q

Monthly based calendar widget allowing the user to select a date

A

QCalenderWidget

76
Q

Qt5 container widget to organize groups of button widgets

A

QButtonGroup

77
Q

Qt5 group box frame w/ a title

A

QGroupBox

78
Q

Qt5 implementation of a splitter widget

A

QSplitter

79
Q

Qt5 widget that handles functionality for the splitter

A

QSplitterHandle

80
Q

Qt5 stack of tabbed widgets

A

QTabWidget

81
Q

what are the key differences between Qt widgets, Qt Quick, and QML

A

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
Q

what are the six Qt-quick positioners

A

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
Q

what is the difference btwn Qt-quick positioners and layouts?

A

layouts have more resizing options

84
Q

what are the five core areas of customization for material design?

A

Theme, Primary, Accent, Foreground, and Background

85
Q

What are Qt views for and what are the three types?

A

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
Q

what is the primary syntx of Dundar methods?

A

leading and trailing double underscores __someMethod__()