Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/modern-pyqt
/ functions
Functions
209 in github.com/Apress/modern-pyqt
⨍
Functions
209
◇
Types & classes
38
↓ 11 callers
Method
calculateDisplayTime
Calculate the time that should be displayed in the QLCDNumber widget.
ch01_overview/pomodoro.py:351
↓ 8 callers
Method
setPixmap
Reimplement setPixmap() method so that image will appear on objects created from TargetLabel class. Hide other widgets.
ch02_project_management/drag_drop_image.py:58
↓ 6 callers
Method
appendMessage
First, append new messages to chat_messages. Doing so will update the number of rows and indexes in the model (rowCount()), which will then up
ch08_chatbot/chatbotGUI.py:59
↓ 3 callers
Method
__init__
(self)
ch08_chatbot/chatbotGUI.py:134
↓ 3 callers
Method
convertCVToQImage
Load a cv image and convert the image to a Qt QImage. Display the image in image_label.
ch05_computer_vision/image_processing.py:219
↓ 3 callers
Method
data
Necessary to include data() when subclassing QAbstractListModel. Retrieves items from the list and returns data specified by the role, which
ch08_chatbot/chatbotGUI.py:52
↓ 3 callers
Method
stopCountDown
If the timer is already running, then stop the timer.
ch01_overview/pomodoro.py:214
↓ 2 callers
Method
__init__
(self, title)
ch02_project_management/project_manager.py:15
↓ 2 callers
Method
__init__
(self, text)
ch02_project_management/drag_drop_widget.py:21
↓ 2 callers
Method
addButton
Add QPushButton widgets to container class layout.
ch02_project_management/drag_drop_widget.py:53
↓ 2 callers
Method
resetWidgetValues
Reset the spinbox and checkbox values to their beginning values.
ch05_computer_vision/image_processing.py:182
↓ 2 callers
Method
rowCount
Necessary to include rowCount() when subclassing QAbstractListModel. For this program, we only need to update the the number of rows in the m
ch08_chatbot/chatbotGUI.py:46
↓ 2 callers
Method
setupChart
Set up the GUI's graph series type, chart instance, chart axes, and chart view widget.
ch03_data_visualization/data_visualization.py:67
↓ 1 callers
Method
__init__
(self)
ch05_computer_vision/display_video.py:62
↓ 1 callers
Method
__init__
(self)
ch05_computer_vision/human_detection.py:78
↓ 1 callers
Method
__init__
(self, parent, bar_graph)
ch06_visualize_3D_data/bar_3D_multiseries.py:36
↓ 1 callers
Method
__init__
(self)
ch02_project_management/drag_drop_image.py:38
↓ 1 callers
Method
__init__
(self, parent=None, nrow=1, ncol=1)
ch03_data_visualization/pyqt_matplotlib.py:17
↓ 1 callers
Method
__init__
(self, chart)
ch03_data_visualization/data_visualization.py:15
↓ 1 callers
Method
__init__
(self)
ch07_networking/email_app.py:51
↓ 1 callers
Method
convertCVToQImage
Demonstrates how to load a cv image and convert the image to a Qt QImage. Returns the converted Qimage.
ch05_computer_vision/display_images.py:103
↓ 1 callers
Method
convertTotalTime
Convert time from milliseconds.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:159
↓ 1 callers
Method
convertTotalTime
Convert time to milliseconds.
ch01_overview/pomodoro.py:345
↓ 1 callers
Method
createChatbot
Create the chatbot and train it in a separate thread.
ch08_chatbot/chatbotGUI.py:208
↓ 1 callers
Method
createConnection
Set up connection to the database. Check if the tables needed exist.
ch04_database_handling/sql_manager.py:34
↓ 1 callers
Method
createConnection
Set up connection to the database. Check if the tables needed exist.
ch04_database_handling/view_database.py:39
↓ 1 callers
Method
createHOGDescriptor
Function creates the HOG Descriptor for human detection and returns the detections (rects).
ch05_computer_vision/human_detection.py:53
↓ 1 callers
Method
displayChatbotResponse
Get the response from the chatbot, convert the reply to a string and append the text to the model where it will be added to the window.
ch08_chatbot/chatbotGUI.py:200
↓ 1 callers
Method
endCurrentChat
Display a QMessageBox to the user asking if they want to quit the current chat.
ch08_chatbot/chatbotGUI.py:230
↓ 1 callers
Method
initializeUI
Initialize the window and its contents.
ch08_chatbot/chatbotGUI.py:138
↓ 1 callers
Method
initializeUI
Initialize the window and its contents.
ch04_database_handling/sql_manager.py:21
↓ 1 callers
Method
initializeUI
Initialize the Login GUI window.
ch04_database_handling/Login.py:19
↓ 1 callers
Method
initializeUI
Initialize the window and its contents.
ch04_database_handling/view_database.py:30
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/display_video.py:66
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/image_processing.py:27
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/display_images.py:28
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/human_detection.py:82
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch06_visualize_3D_data/bar_3D_multiseries.py:136
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch06_visualize_3D_data/bar_graph_3D.py:20
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/project_manager.py:200
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/drag_drop_widget.py:79
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/drag_drop_image.py:83
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch03_data_visualization/pyqt_matplotlib.py:32
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch03_data_visualization/simple_line_chart.py:18
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch03_data_visualization/combine_charts.py:39
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch03_data_visualization/data_visualization.py:57
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:21
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch01_overview/pomodoro.py:24
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents to the screen.
ch01_overview/user_manager.py:25
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch07_networking/request_html.py:21
↓ 1 callers
Method
initializeUI
Initialize the window and display its contents.
ch07_networking/email_app.py:55
↓ 1 callers
Function
linearRegression
Find the regression line that fits best to the data. Calculate the values for m, the slope of a line, and b, the y-intercept in the equation
ch03_data_visualization/combine_charts.py:13
↓ 1 callers
Method
loadCSVFile
Load CSV files. Return data as numpy arrays.
ch06_visualize_3D_data/bar_3D_multiseries.py:369
↓ 1 callers
Method
loadCSVFile
Load the data from a CSV-formatted file using csv and numpy.
ch06_visualize_3D_data/bar_graph_3D.py:81
↓ 1 callers
Method
loadCSVFile
Load the iris dataset and store the data in a numpy array.
ch03_data_visualization/pyqt_matplotlib.py:109
↓ 1 callers
Method
loadCSVFile
Load data from CSV file for the line chart. Select and store x and y values into Python list objects. Return the x_values and y_value
ch03_data_visualization/simple_line_chart.py:70
↓ 1 callers
Method
loadCSVFile
Load data from CSV file for the scatter chart. Select and store x and y values into Python list objects. Return the x_values and y_va
ch03_data_visualization/combine_charts.py:113
↓ 1 callers
Method
loadCSVFile
Load data from CSV file for the chart. Select and store x and y values and labels into Python list objects. Return the xy_data_and_la
ch03_data_visualization/data_visualization.py:255
↓ 1 callers
Method
longBreakTab
Set up the long break tab, widgets and layout.
ch01_overview/pomodoro.py:168
↓ 1 callers
Function
parseCommandLine
Use argparse to parse the command line for the SQL data model and any queries to the database. Users can enter multiple queries in the command li
ch04_database_handling/view_database.py:11
↓ 1 callers
Method
pomodoroTab
Set up the Pomodoro tab, widgets and layout.
ch01_overview/pomodoro.py:108
↓ 1 callers
Method
resetCountDown
Resets the time for the current tab when the reset button is selected.
ch01_overview/pomodoro.py:220
↓ 1 callers
Method
sendEmail
Compose the email headers and contents. Use smtplib to login to your Gmail account and send an email. Success or errors will be displayed in t
ch07_networking/email_app.py:124
↓ 1 callers
Method
setImage
Set the target's pixmap when an item is dropped onto the label area.
ch02_project_management/drag_drop_image.py:122
↓ 1 callers
Method
setupChart
Set up the GUI's window and widgets that are embedded with Matplotlib figures.
ch03_data_visualization/pyqt_matplotlib.py:40
↓ 1 callers
Method
setupChart
Set up the GUI's graph line series type, chart instance, chart axes, and chart view widget.
ch03_data_visualization/simple_line_chart.py:26
↓ 1 callers
Method
setupChart
Set up the GUI's series and chart.
ch03_data_visualization/combine_charts.py:49
↓ 1 callers
Method
setupGraph
Load data and set up the window for the bar graph.
ch06_visualize_3D_data/bar_graph_3D.py:28
↓ 1 callers
Method
setupMenu
Simple menu bar to select local videos.
ch05_computer_vision/display_video.py:112
↓ 1 callers
Method
setupMenu
Simple menu bar to select and save local images.
ch05_computer_vision/image_processing.py:108
↓ 1 callers
Method
setupMenu
Simple menu bar to select local images.
ch05_computer_vision/display_images.py:67
↓ 1 callers
Method
setupMenu
Create a simple menu to manage the dock widget.
ch03_data_visualization/data_visualization.py:148
↓ 1 callers
Method
setupMenu
Set up menu bar.
ch01_overview/user_manager.py:62
↓ 1 callers
Method
setupModelView
Set up widgets, and standard item model and table view.
ch01_overview/user_manager.py:34
↓ 1 callers
Method
setupSystemTrayIcon
Set up system tray icon and context menu. User can re-open the window if it was closed or quit the application using the tray menu.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:97
↓ 1 callers
Method
setupTable
Set up the main window. The SQL model used is based on data_model; The query_cmdline argument is a list of queries from the command line.
ch04_database_handling/view_database.py:57
↓ 1 callers
Method
setupTabsAndWidgets
Set up the tab bar for the different pomodoro stages: pomodoro, short break, long break.
ch01_overview/pomodoro.py:55
↓ 1 callers
Method
setupToolbar
Create the toolbar for running queries and clearing the text edit widget.
ch04_database_handling/sql_manager.py:96
↓ 1 callers
Method
setupToolbar
Create the toolbar for navigating web pages.
ch07_networking/request_html.py:57
↓ 1 callers
Method
setupToolsDockWidget
Set up the dock widget that displays different tools and themes for interacting with the chart. Also displays the data values in a table view
ch03_data_visualization/data_visualization.py:157
↓ 1 callers
Method
setupWidgets
Set up the containers and main layout for the window.
ch02_project_management/project_manager.py:209
↓ 1 callers
Method
setupWidgets
Set up the left and right DropTargetWidget objects, add a single DragButton object to each one, and create the main layout for the GUI.
ch02_project_management/drag_drop_widget.py:87
↓ 1 callers
Method
setupWidgets
Set up the label widget that will act as the target for the image drop, and the main layout.
ch02_project_management/drag_drop_image.py:92
↓ 1 callers
Method
setupWindow
Set up the widgets and model/view instances for the main window.
ch08_chatbot/chatbotGUI.py:149
↓ 1 callers
Method
setupWindow
Set up the directory model/view instances, SQL model/view instances, and other widgets to be displayed in the main window.
ch04_database_handling/sql_manager.py:52
↓ 1 callers
Method
setupWindow
Set up the widgets for the login GUI.
ch04_database_handling/Login.py:25
↓ 1 callers
Method
setupWindow
Set up widgets in the main window.
ch05_computer_vision/display_video.py:77
↓ 1 callers
Method
setupWindow
Set up widgets in the main window.
ch05_computer_vision/image_processing.py:41
↓ 1 callers
Method
setupWindow
Set up widgets in the main window.
ch05_computer_vision/display_images.py:37
↓ 1 callers
Method
setupWindow
Set up widgets in the main window.
ch05_computer_vision/human_detection.py:92
↓ 1 callers
Method
setupWindow
The window is comprised of two main parts: A Q3DBars graph on the left, and QToolBox on the right containing different widgets for tweaking di
ch06_visualize_3D_data/bar_3D_multiseries.py:145
↓ 1 callers
Method
setupWindow
Set up widgets in the main window and the QAudioRecorder instance.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:32
↓ 1 callers
Method
setupWindow
Set up the widgets in the main window.
ch07_networking/request_html.py:31
↓ 1 callers
Method
setupWindow
Set up the widgets for inputting the headers and body of the email.
ch07_networking/email_app.py:63
↓ 1 callers
Method
shortBreakTab
Set up the short break tab, widgets and layout.
ch01_overview/pomodoro.py:138
↓ 1 callers
Method
sizeHint
Reimplement to figure out the size of the item displayed at the given index. Uses option to figure out the style information, in this case, th
ch08_chatbot/chatbotGUI.py:119
↓ 1 callers
Method
stopThread
Process all pending events before stopping the thread.
ch05_computer_vision/display_video.py:55
↓ 1 callers
Method
stopThread
Process all pending events before stopping the thread.
ch05_computer_vision/human_detection.py:71
Method
__init__
(self, chatbot)
ch08_chatbot/chatbotGUI.py:29
Method
__init__
(self)
ch08_chatbot/chatbotGUI.py:42
next →
1–100 of 209, ranked by callers