ui.progressscreen
#
Submodules#
Package Contents#
Classes#
Screen is an element intended to be used with a |
- class ui.progressscreen.ProgressScreen(messages, accounts, **kw)#
Bases:
kivy.uix.screenmanager.Screen
Screen is an element intended to be used with a
ScreenManager
. Check module documentation for more information.- Events:
- on_pre_enter: ()
Event fired when the screen is about to be used: the entering animation is started.
- on_enter: ()
Event fired when the screen is displayed: the entering animation is complete.
- on_pre_leave: ()
Event fired when the screen is about to be removed: the leaving animation is started.
- on_leave: ()
Event fired when the screen is removed: the leaving animation is finished.
Changed in version 1.6.0: Events on_pre_enter, on_enter, on_pre_leave and on_leave were added.
- messages = []#
Stores the messages to be sent. Each message is a dictionary representing the message type and the message content
- accounts = []#
Stores the target accounts to send the messages to
- session#
Stores the backend Session Data
- password#
Stores the password entered by the user. This variable is erased when this screen is destroyed
- on_enter()#
Starts the message sending process
- create_datatable()#
Adds the MDTable to the Screen
- set_table_data()#
Sets the initial data of the MDTable Adds a red clock icon to the status column
- edit_selection(instance_table, current_row)#
Enables the remove button when a row is selected
- confirm_remove()#
Confirms the removal of the selected accounts
- remove_from_queue(*args)#
Removes the accounts from queue. Only removes the accounts that are not currently being processed or the accounts that are completed
- confirm_stop()#
Confirms the stopping of the message sending process
- stop_messages(*args)#
Stops the message sending process
- set_account_to_processing(count)#
Sets the status of the account to processing. Sets the icon to an orange icon
- set_account_to_completed(count)#
Sets the status of the account to completed. Sets the icon to a green icon
- confirm_start()#
Shows a confirm start menu along with request for the password again
- start_messages(password)#
Starts Sending Messages in new thread
- _start_messages()#
- start_message_loop(*args)#
Starts the message loop
- simulate_human(text)#
Simulates human typing
- wrong_password()#
Executed when the user enters the wrong password. Clears this screen and navigates back to the message screen
- find_element(XPATH)#
Finds an element by XPATH
- find_element_css(CSS)#
Finds an element by CSS Selector
- check_if_element_exists(XPATH)#
Checks if an element exists by XPATH