Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Public Attributes
troubleshoot.RemoteAddress.RemoteAddress Class Reference
Inheritance diagram for troubleshoot.RemoteAddress.RemoteAddress:
Inheritance graph
[legend]
Collaboration diagram for troubleshoot.RemoteAddress.RemoteAddress:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def display
def collect_answer
def connect_signals
def disconnect_signals
def can_click_forward
def cancel_operation
def initial_vbox
 Helper functions.

Public Attributes

 server_name
 server_ipaddr
 troubleshooter

Detailed Description

Definition at line 23 of file RemoteAddress.py.


Constructor & Destructor Documentation

def troubleshoot.RemoteAddress.RemoteAddress.__init__ (   self,
  troubleshooter 
)

Definition at line 24 of file RemoteAddress.py.

00024 
00025     def __init__ (self, troubleshooter):
00026         Question.__init__ (self, troubleshooter, "Remote address")
00027         page = self.initial_vbox (_("Remote Address"),
00028                                   _("Please enter as many details as you "
00029                                     "can about the network address of this "
00030                                     "printer."))
00031         table = gtk.Table (2, 2)
00032         table.set_row_spacings (6)
00033         table.set_col_spacings (6)
00034         page.pack_start (table, False, False, 0)
00035 
00036         label = gtk.Label (_("Server name:"))
00037         label.set_alignment (0, 0)
00038         table.attach (label, 0, 1, 0, 1)
00039         self.server_name = gtk.Entry ()
00040         self.server_name.set_activates_default (True)
00041         table.attach (self.server_name, 1, 2, 0, 1)
00042 
00043         label = gtk.Label (_("Server IP address:"))
00044         label.set_alignment (0, 0)
00045         table.attach (label, 0, 1, 1, 2)
00046         self.server_ipaddr = gtk.Entry ()
00047         self.server_ipaddr.set_activates_default (True)
00048         table.attach (self.server_ipaddr, 1, 2, 1, 2)
00049 
00050         troubleshooter.new_page (page, self)

Here is the call graph for this function:


Member Function Documentation

def troubleshoot.base.Question.cancel_operation (   self) [inherited]

Reimplemented from troubleshoot.base.Question.

Definition at line 58 of file RemoteAddress.py.

00058 
00059     def collect_answer (self):
00060         if not self.displayed:
00061             return {}
00062 
00063         return { 'remote_server_name': self.server_name.get_text (),
00064                  'remote_server_ip_address': self.server_ipaddr.get_text () }
def troubleshoot.base.Question.connect_signals (   self,
  handler 
) [inherited]
Returns True if this page should be displayed, or False
if it should be skipped.

Reimplemented from troubleshoot.base.Question.

Definition at line 51 of file RemoteAddress.py.

00051 
00052     def display (self):
00053         answers = self.troubleshooter.answers
00054         if answers['cups_queue_listed']:
00055             return False
00056 
00057         return answers['printer_is_remote']

def troubleshoot.base.Question.initial_vbox (   self,
  title = '',
  text = '' 
) [inherited]

Helper functions.

Definition at line 66 of file base.py.

00066 
00067     def initial_vbox (self, title='', text=''):
00068         vbox = gtk.VBox ()
00069         vbox.set_border_width (12)
00070         vbox.set_spacing (12)
00071         if title:
00072             s = '<span weight="bold" size="larger">' + title + '</span>\n\n'
00073         else:
00074             s = ''
00075         s += text
00076         label = gtk.Label (s)
00077         label.set_alignment (0, 0)
00078         label.set_line_wrap (True)
00079         label.set_use_markup (True)
00080         vbox.pack_start (label, False, False, 0)
00081         return vbox

Here is the caller graph for this function:


Member Data Documentation

Definition at line 45 of file RemoteAddress.py.

Definition at line 38 of file RemoteAddress.py.

Reimplemented in troubleshoot.CheckPrinterSanity.CheckPrinterSanity.

Definition at line 41 of file base.py.


The documentation for this class was generated from the following file: