WebProfileDialog

class astropy.samp.WebProfileDialog[source]

Bases: object

A base class to make writing Web Profile GUI consent dialogs easier.

The concrete class must:

  1. Poll handle_queue periodically, using the timer services of the GUI’s event loop. This function will call self.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.
  2. Call consent or reject based on the user’s response to the dialog.

Methods Summary

consent(self)
handle_queue(self)
reject(self)

Methods Documentation

consent(self)[source]
handle_queue(self)[source]
reject(self)[source]