WebProfileDialog#
- class astropy.samp.WebProfileDialog[source]#
Bases:
object
A base class to make writing Web Profile GUI consent dialogs easier.
The concrete class must:
Poll
handle_queue
periodically, using the timer services of the GUI’s event loop. This function will callself.show_dialog
when a request requires authorization.self.show_dialog
will be given the arguments:samp_name
: The name of the application making the request.details
: A dictionary of details about the client making the request.client
: A hostname, port pair containing the client address.origin
: A string containing the origin of the request.
Call
consent
orreject
based on the user’s response to the dialog.
Methods Summary
consent
()reject
()Methods Documentation