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
Method
__init__
(self)
ch08_chatbot/chatbotGUI.py:68
Method
__init__
(self)
ch04_database_handling/sql_manager.py:17
Method
__init__
(self, parent=None)
ch04_database_handling/Login.py:14
Method
__init__
(self)
ch04_database_handling/view_database.py:26
Method
__init__
(self, parent, video_file=None)
ch05_computer_vision/display_video.py:26
Method
__init__
(self)
ch05_computer_vision/image_processing.py:23
Method
__init__
(self)
ch05_computer_vision/display_images.py:24
Method
__init__
(self, parent, video_file=None)
ch05_computer_vision/human_detection.py:24
Method
__init__
(self)
ch06_visualize_3D_data/bar_3D_multiseries.py:132
Method
__init__
(self)
ch06_visualize_3D_data/bar_graph_3D.py:16
Method
__init__
(self, title, bg_color)
ch02_project_management/project_manager.py:110
Method
__init__
(self)
ch02_project_management/project_manager.py:196
Method
__init__
(self)
ch02_project_management/drag_drop_widget.py:42
Method
__init__
(self)
ch02_project_management/drag_drop_widget.py:75
Method
__init__
(self)
ch02_project_management/drag_drop_image.py:79
Method
__init__
(self)
ch03_data_visualization/pyqt_matplotlib.py:28
Method
__init__
(self)
ch03_data_visualization/simple_line_chart.py:14
Method
__init__
(self)
ch03_data_visualization/combine_charts.py:35
Method
__init__
(self)
ch03_data_visualization/data_visualization.py:53
Method
__init__
(self)
ch09_deploy_apps/AudioRecorder/audio_recorder.py:17
Method
__init__
(self)
ch01_overview/pomodoro.py:20
Method
__init__
(self)
ch01_overview/user_manager.py:21
Method
__init__
(self)
ch07_networking/request_html.py:17
Method
__init__
(self, parent)
ch07_networking/email_app.py:16
Method
acceptUserInfo
Verify that the user's passwords match. If so, save them user's info to the json file and display the login window.
ch04_database_handling/Login.py:124
Method
addNewUserToTable
Add information from input widgets in dialog box to a list. If a widget is empty, append None to the list. Finally, add a new row to the tabl
ch01_overview/user_manager.py:127
Method
addTaskToTaskbar
When the user clicks plus button, the widgets for the new task will be added to the task bar. Only one task is allowed to be entered at a tim
ch01_overview/pomodoro.py:304
Method
adjustBrightness
The slot corresponding to adjusting image brightness.
ch05_computer_vision/image_processing.py:133
Method
adjustContrast
The slot corresponding to adjusting image contrast.
ch05_computer_vision/image_processing.py:128
Method
applyImageProcessing
For the boolean variables related to the image processing techniques, if True, apply the corresponding process to the image and display the c
ch05_computer_vision/image_processing.py:152
Method
changeAnimations
Slot for changing the animation style of the chart.
ch03_data_visualization/data_visualization.py:226
Method
changeBarStyle
Change the visual style of the bars.
ch06_visualize_3D_data/bar_3D_multiseries.py:87
Method
changeCameraView
Change the camera's preset (the angle from which we view the camera) by cycling through Qt's different preset camera views.
ch06_visualize_3D_data/bar_3D_multiseries.py:56
Method
changeChartTheme
Slot for changing the theme of the chart.
ch03_data_visualization/data_visualization.py:216
Method
changeLegend
Slot for turning off the legend, or changing its location.
ch03_data_visualization/data_visualization.py:232
Method
changeSelectionStyle
Choose the style used to select data, by rows, columns or other options.
ch06_visualize_3D_data/bar_3D_multiseries.py:109
Method
changeTheme
Change the theme and appearance of the graph. Update the QCheckbox widgets.
ch06_visualize_3D_data/bar_3D_multiseries.py:80
Method
chatButtonPressed
When the user begins chatting, the appearance and state of the chat_button are set, and the chatbot is created. The user can also end the cha
ch08_chatbot/chatbotGUI.py:178
Method
clearCurrentTask
Delete the current task, and reset variables and widgets related to tasks.
ch01_overview/pomodoro.py:331
Method
clearText
Clear the QTextEdit widget's text.
ch04_database_handling/sql_manager.py:129
Method
closeEvent
Display a dialog box to confirm that the user wants to close the application while in a chat.
ch08_chatbot/chatbotGUI.py:247
Method
closeEvent
Reimplement the closing event to ensure that the thread closes.
ch05_computer_vision/display_video.py:183
Method
closeEvent
Reimplement the closing event to ensure that the thread closes.
ch05_computer_vision/human_detection.py:159
Method
closeEvent
Display a message in the system tray when the main window has been closed.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:165
Method
confirmTask
If user clicks Add Task in dialog box, create new TaskWidget object and insert it into the container's layout.
ch02_project_management/project_manager.py:166
Method
confirmTaskDescription
When user selects Save, save the info written in the text edit widget in the task_description variable.
ch02_project_management/project_manager.py:70
Method
connectToDatabase
Check the user's information. Close the login window if a match is found, and open the SQL manager window.
ch04_database_handling/Login.py:64
Method
createNewTask
Set up the dialog box that allows the user to create a new task.
ch02_project_management/project_manager.py:138
Method
createNewUser
Set up the dialog box for the user to create a new user account.
ch04_database_handling/Login.py:89
Method
createNewUserDialog
Set up the dialog box that allows the user to enter new user information.
ch01_overview/user_manager.py:84
Method
displayPointInfo
Demonstration that series can be interacted with.
ch03_data_visualization/combine_charts.py:109
Method
displayTime
Calculate the time displayed in the time_label widget.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:153
Method
dragEnterEvent
Accept the dragging event onto the widget.
ch02_project_management/project_manager.py:174
Method
dragEnterEvent
Accept drops when objects are dragged inside widget.
ch02_project_management/drag_drop_widget.py:57
Method
dragEnterEvent
Reimplement event handler to check the data type of item being dragged onto the widget.
ch02_project_management/drag_drop_image.py:102
Method
dropEvent
Check the source of the mouse event. If the source does not already exist in the target widget then the drop is allowed.
ch02_project_management/project_manager.py:178
Method
dropEvent
Check the source of the mouse event. If the source (widget) does not already exist in the target widget then it can be dropped.
ch02_project_management/drag_drop_widget.py:61
Method
dropEvent
Reimplement event handler to handle when an item is dropped on the target. If the mimeData is an image, then the item is accepted.
ch02_project_management/drag_drop_image.py:110
Method
edgeDetection
The slot corresponding to applying edge detection.
ch05_computer_vision/image_processing.py:145
Method
enterUserMessage
Get the text from the line edit widget and append the message to the model. Then display the chatbot's response.
ch08_chatbot/chatbotGUI.py:191
Method
imageSmoothingFilter
The slot corresponding to applying 2D Convolution for smoothing the image.
ch05_computer_vision/image_processing.py:138
Method
inputPassword
Create an instance of the PasswordDialog class and input the Gmail account password.
ch07_networking/email_app.py:114
Method
invalidVideoFile
Display a dialog box to inform the user that an error occurred while loading the video.
ch05_computer_vision/display_video.py:178
Method
loadHTML
Send a GET request to retrieve the current web page and its data.
ch07_networking/request_html.py:75
Method
mouseMoveEvent
Reimplement how to handle the widget being dragged. Change the mouse icon when the user begins dragging the object.
ch02_project_management/project_manager.py:87
Method
mouseMoveEvent
Reimplement the event handler when the object is being dragged.
ch02_project_management/drag_drop_widget.py:30
Method
mouseMoveEvent
Reimplement the mouseMoveEvent so that the user can scroll the chart area.
ch03_data_visualization/data_visualization.py:41
Method
mousePressEvent
Reimplement what happens when the user clicks on the widget.
ch02_project_management/project_manager.py:82
Method
mousePressEvent
Reimplement the event handler when the object is clicked on.
ch02_project_management/drag_drop_widget.py:25
Method
mousePressEvent
If the mouse button is pressed, change the mouse cursor and get the coordinates of the click.
ch03_data_visualization/data_visualization.py:34
Method
mouseReleaseEvent
(self, event)
ch03_data_visualization/data_visualization.py:48
Method
openImageFile
Open an image file and display the contents in the label widget.
ch05_computer_vision/image_processing.py:189
Method
openImageFile
Open an image file and display the contents in the two label widgets.
ch05_computer_vision/display_images.py:82
Method
openVideoFile
Open a video file and display the file's path in the line edit widget.
ch05_computer_vision/display_video.py:155
Method
paint
Reimplement the delegate's paint() function. Renders the delegate using the specified QPainter (painter) and QStyleOptionViewItem (option) fo
ch08_chatbot/chatbotGUI.py:76
Method
replyFinished
Get the reply data. Check for any errors that occurred while loading the web pages.
ch07_networking/request_html.py:88
Method
resetChartZoom
Reset the chart and the axes.
ch03_data_visualization/data_visualization.py:249
Method
resetImageAndSettings
Reset the displayed image and widgets used for image processing.
ch05_computer_vision/image_processing.py:169
Method
rotateHorizontal
(self, rotation)
ch06_visualize_3D_data/bar_3D_multiseries.py:48
Method
rotateVertical
(self, rotation)
ch06_visualize_3D_data/bar_3D_multiseries.py:52
Method
run
This function handles training the chatbot. Once the training is complete, the training_finished signal is emitted, which allows the user to
ch08_chatbot/chatbotGUI.py:33
Method
run
The code that we want to run in a separate thread, in this case capturing video using OpenCV, is placed in this function. run() is called
ch05_computer_vision/display_video.py:31
Method
run
The code that we want to run in a separate thread, in this case capturing video using OpenCV, is placed in this function. run() is called
ch05_computer_vision/human_detection.py:29
Method
runQuery
Run the query/queries entered in the QTextEdit widget.
ch04_database_handling/sql_manager.py:115
Method
saveImageFile
Save the contents of the image_label to file.
ch05_computer_vision/image_processing.py:207
Method
saveTableToFile
Save user information to a csv file.
ch01_overview/user_manager.py:153
Method
selectAudioPath
Open file dialog and choose the directory for saving the audio file.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:114
Method
selectImageFile
Open an image file and display it on the label widget.
ch02_project_management/drag_drop_image.py:67
Method
selectMonths
Select a specific month to view.
ch06_visualize_3D_data/bar_3D_multiseries.py:123
Method
selectYears
Select a specific year to view.
ch06_visualize_3D_data/bar_3D_multiseries.py:116
Method
showOrHideBackground
(self, state)
ch06_visualize_3D_data/bar_3D_multiseries.py:68
Method
showOrHideGrid
(self, state)
ch06_visualize_3D_data/bar_3D_multiseries.py:71
Method
showOrHideSeries
Show or hide the secondary series. seriesList()[1] refers to Spokane; seriesList()[2] refers to Richmond.
ch06_visualize_3D_data/bar_3D_multiseries.py:95
Method
smoothenBars
Smoothen the edges of the items in all series.
ch06_visualize_3D_data/bar_3D_multiseries.py:74
Method
specifyTaskInfo
Create the dialog box where the user to write more information about their current selected task.
ch02_project_management/project_manager.py:34
Method
startCountDown
Starts the timer. If the current tab's time is 00:00, reset the time if user pushes the start button.
ch01_overview/pomodoro.py:198
Method
startRecording
Set up the audio output file location, reset widget states. Also starts the timer and begins recording.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:126
Method
startVideo
Create and begin running the the worker thread to play the video.
ch05_computer_vision/display_video.py:127
Method
startVideo
Create and begin running the the worker thread to play the video.
ch05_computer_vision/human_detection.py:122
Method
stopCurrentVideo
Stop the current video, process events, and clear the video_display_label.
ch05_computer_vision/display_video.py:146
← previous
next →
101–200 of 209, ranked by callers