Back to index

system-config-printer  1.3.9+20120706
Classes | Functions | Variables
system-config-printer Namespace Reference

Classes

class  ServiceStart
class  GUI

Functions

def show_uri
def show_help
def CUPS_server_hostname
def main

Variables

 pkgdata = config.pkgdatadir
tuple iconpath = os.path.join(pkgdata, 'icons/')

Function Documentation

def system-config-printer.CUPS_server_hostname ( )

Definition at line 99 of file system-config-printer.py.

00099 
00100 def CUPS_server_hostname ():
00101     host = cups.getServer ()
00102     if host[0] == '/':
00103         return 'localhost'
00104     return host

def system-config-printer.main ( )

Definition at line 1967 of file system-config-printer.py.

01967 
01968 def main():
01969     cups.setUser (os.environ.get ("CUPS_USER", cups.getUser()))
01970     gtk.gdk.threads_init ()
01971     gobject.threads_init()
01972     from dbus.glib import DBusGMainLoop
01973     DBusGMainLoop (set_as_default=True)
01974 
01975     mainwindow = GUI()
01976 
01977     if gtk.__dict__.has_key("main"):
01978         gtk.main()
01979     else:
01980         gtk.mainloop()
01981 

def system-config-printer.show_help ( )

Definition at line 45 of file system-config-printer.py.

00045 
00046 def show_help():
00047     print ("\nThis is system-config-printer, " \
00048            "a CUPS server configuration program.\n\n"
00049            "Options:\n\n"
00050            "  --debug   Enable debugging output.\n")

def system-config-printer.show_uri (   uri)

Definition at line 37 of file system-config-printer.py.

00037 
00038 def show_uri (uri):
00039     gtk.show_uri (gtk.gdk.screen_get_default (),
00040                   uri,
00041                   gtk.get_current_event_time ())
00042 
00043 gtk.about_dialog_set_url_hook (lambda x, y: show_uri (y))
00044 gtk.about_dialog_set_email_hook (lambda x, y: show_uri ("mailto:" + y))


Variable Documentation

tuple system-config-printer.iconpath = os.path.join(pkgdata, 'icons/')

Definition at line 96 of file system-config-printer.py.

system-config-printer.pkgdata = config.pkgdatadir

Definition at line 95 of file system-config-printer.py.