MCPcopy Create free account

hub / github.com/Apress/modern-pyqt / functions

Functions209 in github.com/Apress/modern-pyqt

↓ 11 callersMethodcalculateDisplayTime
Calculate the time that should be displayed in the QLCDNumber widget.
ch01_overview/pomodoro.py:351
↓ 8 callersMethodsetPixmap
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 callersMethodappendMessage
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 callersMethod__init__
(self)
ch08_chatbot/chatbotGUI.py:134
↓ 3 callersMethodconvertCVToQImage
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 callersMethoddata
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 callersMethodstopCountDown
If the timer is already running, then stop the timer.
ch01_overview/pomodoro.py:214
↓ 2 callersMethod__init__
(self, title)
ch02_project_management/project_manager.py:15
↓ 2 callersMethod__init__
(self, text)
ch02_project_management/drag_drop_widget.py:21
↓ 2 callersMethodaddButton
Add QPushButton widgets to container class layout.
ch02_project_management/drag_drop_widget.py:53
↓ 2 callersMethodresetWidgetValues
Reset the spinbox and checkbox values to their beginning values.
ch05_computer_vision/image_processing.py:182
↓ 2 callersMethodrowCount
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 callersMethodsetupChart
Set up the GUI's graph series type, chart instance, chart axes, and chart view widget.
ch03_data_visualization/data_visualization.py:67
↓ 1 callersMethod__init__
(self)
ch05_computer_vision/display_video.py:62
↓ 1 callersMethod__init__
(self)
ch05_computer_vision/human_detection.py:78
↓ 1 callersMethod__init__
(self, parent, bar_graph)
ch06_visualize_3D_data/bar_3D_multiseries.py:36
↓ 1 callersMethod__init__
(self)
ch02_project_management/drag_drop_image.py:38
↓ 1 callersMethod__init__
(self, parent=None, nrow=1, ncol=1)
ch03_data_visualization/pyqt_matplotlib.py:17
↓ 1 callersMethod__init__
(self, chart)
ch03_data_visualization/data_visualization.py:15
↓ 1 callersMethod__init__
(self)
ch07_networking/email_app.py:51
↓ 1 callersMethodconvertCVToQImage
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 callersMethodconvertTotalTime
Convert time from milliseconds.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:159
↓ 1 callersMethodconvertTotalTime
Convert time to milliseconds.
ch01_overview/pomodoro.py:345
↓ 1 callersMethodcreateChatbot
Create the chatbot and train it in a separate thread.
ch08_chatbot/chatbotGUI.py:208
↓ 1 callersMethodcreateConnection
Set up connection to the database. Check if the tables needed exist.
ch04_database_handling/sql_manager.py:34
↓ 1 callersMethodcreateConnection
Set up connection to the database. Check if the tables needed exist.
ch04_database_handling/view_database.py:39
↓ 1 callersMethodcreateHOGDescriptor
Function creates the HOG Descriptor for human detection and returns the detections (rects).
ch05_computer_vision/human_detection.py:53
↓ 1 callersMethoddisplayChatbotResponse
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 callersMethodendCurrentChat
Display a QMessageBox to the user asking if they want to quit the current chat.
ch08_chatbot/chatbotGUI.py:230
↓ 1 callersMethodinitializeUI
Initialize the window and its contents.
ch08_chatbot/chatbotGUI.py:138
↓ 1 callersMethodinitializeUI
Initialize the window and its contents.
ch04_database_handling/sql_manager.py:21
↓ 1 callersMethodinitializeUI
Initialize the Login GUI window.
ch04_database_handling/Login.py:19
↓ 1 callersMethodinitializeUI
Initialize the window and its contents.
ch04_database_handling/view_database.py:30
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/display_video.py:66
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/image_processing.py:27
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/display_images.py:28
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch05_computer_vision/human_detection.py:82
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch06_visualize_3D_data/bar_3D_multiseries.py:136
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch06_visualize_3D_data/bar_graph_3D.py:20
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/project_manager.py:200
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/drag_drop_widget.py:79
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch02_project_management/drag_drop_image.py:83
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch03_data_visualization/pyqt_matplotlib.py:32
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch03_data_visualization/simple_line_chart.py:18
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch03_data_visualization/combine_charts.py:39
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch03_data_visualization/data_visualization.py:57
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:21
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch01_overview/pomodoro.py:24
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents to the screen.
ch01_overview/user_manager.py:25
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch07_networking/request_html.py:21
↓ 1 callersMethodinitializeUI
Initialize the window and display its contents.
ch07_networking/email_app.py:55
↓ 1 callersFunctionlinearRegression
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 callersMethodloadCSVFile
Load CSV files. Return data as numpy arrays.
ch06_visualize_3D_data/bar_3D_multiseries.py:369
↓ 1 callersMethodloadCSVFile
Load the data from a CSV-formatted file using csv and numpy.
ch06_visualize_3D_data/bar_graph_3D.py:81
↓ 1 callersMethodloadCSVFile
Load the iris dataset and store the data in a numpy array.
ch03_data_visualization/pyqt_matplotlib.py:109
↓ 1 callersMethodloadCSVFile
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 callersMethodloadCSVFile
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 callersMethodloadCSVFile
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 callersMethodlongBreakTab
Set up the long break tab, widgets and layout.
ch01_overview/pomodoro.py:168
↓ 1 callersFunctionparseCommandLine
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 callersMethodpomodoroTab
Set up the Pomodoro tab, widgets and layout.
ch01_overview/pomodoro.py:108
↓ 1 callersMethodresetCountDown
Resets the time for the current tab when the reset button is selected.
ch01_overview/pomodoro.py:220
↓ 1 callersMethodsendEmail
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 callersMethodsetImage
Set the target's pixmap when an item is dropped onto the label area.
ch02_project_management/drag_drop_image.py:122
↓ 1 callersMethodsetupChart
Set up the GUI's window and widgets that are embedded with Matplotlib figures.
ch03_data_visualization/pyqt_matplotlib.py:40
↓ 1 callersMethodsetupChart
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 callersMethodsetupChart
Set up the GUI's series and chart.
ch03_data_visualization/combine_charts.py:49
↓ 1 callersMethodsetupGraph
Load data and set up the window for the bar graph.
ch06_visualize_3D_data/bar_graph_3D.py:28
↓ 1 callersMethodsetupMenu
Simple menu bar to select local videos.
ch05_computer_vision/display_video.py:112
↓ 1 callersMethodsetupMenu
Simple menu bar to select and save local images.
ch05_computer_vision/image_processing.py:108
↓ 1 callersMethodsetupMenu
Simple menu bar to select local images.
ch05_computer_vision/display_images.py:67
↓ 1 callersMethodsetupMenu
Create a simple menu to manage the dock widget.
ch03_data_visualization/data_visualization.py:148
↓ 1 callersMethodsetupMenu
Set up menu bar.
ch01_overview/user_manager.py:62
↓ 1 callersMethodsetupModelView
Set up widgets, and standard item model and table view.
ch01_overview/user_manager.py:34
↓ 1 callersMethodsetupSystemTrayIcon
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 callersMethodsetupTable
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 callersMethodsetupTabsAndWidgets
Set up the tab bar for the different pomodoro stages: pomodoro, short break, long break.
ch01_overview/pomodoro.py:55
↓ 1 callersMethodsetupToolbar
Create the toolbar for running queries and clearing the text edit widget.
ch04_database_handling/sql_manager.py:96
↓ 1 callersMethodsetupToolbar
Create the toolbar for navigating web pages.
ch07_networking/request_html.py:57
↓ 1 callersMethodsetupToolsDockWidget
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 callersMethodsetupWidgets
Set up the containers and main layout for the window.
ch02_project_management/project_manager.py:209
↓ 1 callersMethodsetupWidgets
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 callersMethodsetupWidgets
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 callersMethodsetupWindow
Set up the widgets and model/view instances for the main window.
ch08_chatbot/chatbotGUI.py:149
↓ 1 callersMethodsetupWindow
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 callersMethodsetupWindow
Set up the widgets for the login GUI.
ch04_database_handling/Login.py:25
↓ 1 callersMethodsetupWindow
Set up widgets in the main window.
ch05_computer_vision/display_video.py:77
↓ 1 callersMethodsetupWindow
Set up widgets in the main window.
ch05_computer_vision/image_processing.py:41
↓ 1 callersMethodsetupWindow
Set up widgets in the main window.
ch05_computer_vision/display_images.py:37
↓ 1 callersMethodsetupWindow
Set up widgets in the main window.
ch05_computer_vision/human_detection.py:92
↓ 1 callersMethodsetupWindow
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 callersMethodsetupWindow
Set up widgets in the main window and the QAudioRecorder instance.
ch09_deploy_apps/AudioRecorder/audio_recorder.py:32
↓ 1 callersMethodsetupWindow
Set up the widgets in the main window.
ch07_networking/request_html.py:31
↓ 1 callersMethodsetupWindow
Set up the widgets for inputting the headers and body of the email.
ch07_networking/email_app.py:63
↓ 1 callersMethodshortBreakTab
Set up the short break tab, widgets and layout.
ch01_overview/pomodoro.py:138
↓ 1 callersMethodsizeHint
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 callersMethodstopThread
Process all pending events before stopping the thread.
ch05_computer_vision/display_video.py:55
↓ 1 callersMethodstopThread
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