Back to index

system-config-printer  1.3.9+20120706
Public Member Functions | Private Attributes
ppdsloader.Foo Class Reference

List of all members.

Public Member Functions

def __init__
def go
def ppds_loaded

Private Attributes

 _window

Detailed Description

Definition at line 283 of file ppdsloader.py.


Constructor & Destructor Documentation

def ppdsloader.Foo.__init__ (   self)

Definition at line 284 of file ppdsloader.py.

00284 
00285         def __init__ (self):
00286             w = gtk.Window ()
00287             b = gtk.Button ("Go")
00288             w.add (b)
00289             b.connect ('clicked', self.go)
00290             w.connect ('delete-event', gtk.main_quit)
00291             w.show_all ()
00292             self._window = w

Here is the call graph for this function:


Member Function Documentation

def ppdsloader.Foo.go (   self,
  button 
)

Definition at line 293 of file ppdsloader.py.

00293 
00294         def go (self, button):
00295             loader = PPDsLoader (device_id="MFG:MFG;MDL:MDL;",
00296                                  parent=self._window)
00297             loader.connect ('finished', self.ppds_loaded)
00298             loader.run ()

Here is the call graph for this function:

Here is the caller graph for this function:

def ppdsloader.Foo.ppds_loaded (   self,
  ppdsloader 
)

Definition at line 299 of file ppdsloader.py.

00299 
00300         def ppds_loaded (self, ppdsloader):
00301             self._window.destroy ()
00302             gtk.main_quit ()
00303             exc = ppdsloader.get_error ()
00304             print exc
00305             ppds = ppdsloader.get_ppds ()
00306             if ppds != None:
00307                 print len (ppds)
00308 
00309             ppdsloader.destroy ()
00310 
    import gobject

Here is the caller graph for this function:


Member Data Documentation

Definition at line 291 of file ppdsloader.py.


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