The buttons module

The buttons module contains classes pertaining to creating objects which can be sent to the iPhone or the Guzzoni web server which pertain to creating buttons on the iPhone.

The _Button class

Inheritance diagram of pysiriproxy.objects.buttons._Button

class pysiriproxy.objects.buttons._Button(buttonText, commands=None)[source]

The _Button class encapsulates the base functionality for creating a button on the iPhone Siri view.

The _Custom class

Inheritance diagram of pysiriproxy.objects.buttons._Custom

class pysiriproxy.objects.buttons._Custom(buttonText, command)[source]

The _Custom class creates a button that has the iPhone send a custom command to the event that it is pressed.

The _WebSearchButton class

Inheritance diagram of pysiriproxy.objects.buttons._WebSearchButton

class pysiriproxy.objects.buttons._WebSearchButton(buttonText, query)[source]

The _WebSearchButton creates a button on the iPhone Siri view which will perform a web search for a specific query in the event that the button is pressed.

The Buttons class

Inheritance diagram of pysiriproxy.objects.buttons.Buttons

class pysiriproxy.objects.buttons.Buttons[source]

The Buttons class contains the various types of Buttons as well as a function for creating Buttons of a specific type.

This class provides a factory function for creating Buttons of a specific type.

Custom

A button that executes a custom command when it is pressed.

WebSearch

A button that performs a web search for a specific query when it is pressed.

classmethod create(buttonType, buttonText, *args, **kwargs)[source]

Create a Button of the given type.

  • buttonType – The type of Button to create
  • buttonText – The text displayed on the button
  • args – The arguments
  • kwargs – The keyword arguments

Table Of Contents

Previous topic

The baseObject module

Next topic

The commands module

This Page