Back to index

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

List of all members.

Public Member Functions

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

Public Attributes

 op
 troubleshooter

Detailed Description

Definition at line 33 of file Welcome.py.


Constructor & Destructor Documentation

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

Definition at line 34 of file Welcome.py.

00034 
00035     def __init__ (self, troubleshooter):
00036         Question.__init__ (self, troubleshooter, "Welcome")
00037         welcome = gtk.HBox ()
00038         welcome.set_spacing (12)
00039         welcome.set_border_width (12)
00040         image = gtk.Image ()
00041         image.set_alignment (0, 0)
00042         image.set_from_stock (gtk.STOCK_PRINT, gtk.ICON_SIZE_DIALOG)
00043         intro = gtk.Label ('<span weight="bold" size="larger">' +
00044                            _("Trouble-shooting Printing") +
00045                            '</span>\n\n' +
00046                            _("The next few screens will contain some "
00047                              "questions about your problem with printing. "
00048                              "Based on your answers a solution may be "
00049                              "suggested.") + '\n\n' +
00050                            _("Click 'Forward' to begin."))
00051         intro.set_alignment (0, 0)
00052         intro.set_use_markup (True)
00053         intro.set_line_wrap (True)
00054         welcome.pack_start (image, False, False, 0)
00055         welcome.pack_start (intro, True, True, 0)
00056         page = troubleshooter.new_page (welcome, self)


Member Function Documentation

Reimplemented from troubleshoot.base.Question.

Definition at line 66 of file Welcome.py.

00066 
00067     def cancel_operation (self):
00068         self.op.cancel ()

Reimplemented from troubleshoot.base.Question.

Definition at line 57 of file Welcome.py.

00057 
00058     def collect_answer (self):
00059         parent = self.troubleshooter.get_window ()
00060         # Store the authentication dialog instance in the answers.  This
00061         # allows the password to be cached.
00062         factory = AuthConnFactory (parent)
00063         self.op = TimedOperation (factory.get_connection, parent=parent)
00064         return {'_authenticated_connection_factory': factory,
00065                 '_authenticated_connection': self.op.run () }

def troubleshoot.base.Question.connect_signals (   self,
  handler 
) [inherited]
def troubleshoot.base.Question.display (   self) [inherited]
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 62 of file Welcome.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: