Package x2go :: Module printactions :: Class X2goPrintActionDIALOG
[frames] | no frames]

Class X2goPrintActionDIALOG

source code

     object --+    
              |    
X2goPrintAction --+
                  |
                 X2goPrintActionDIALOG

Print action that mediates opening a print dialog window. This class is rather empty, the actual print dialog box must be implemented in our GUI application (with the application's X2goClient instance.

Instance Methods
 
__init__(self, client_instance=None, logger=None, loglevel=56)
This is a meta class and has no functionality as such.
source code
 
do_print(self, pdf_file, job_title, spool_dir)
Execute an external command that has been defined on construction of this X2goPrintActionPRINTCMD instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __name__ = 'DIALOG'
  __decription__ = 'Open a print dialog box'

Inherited from X2goPrintAction: __description__

Properties

Inherited from X2goPrintAction: description, name

Inherited from object: __class__

Method Details

__init__(self, client_instance=None, logger=None, loglevel=56)
(Constructor)

source code 

This is a meta class and has no functionality as such. It is used as parent class by »real« X2go print actions.

Parameters:
  • client_instance (instance) - an X2goClient instance, within your customized X2goClient make sure you have a HOOK_open_print_dialog(filename=<str>) method defined that will actually open the print dialog.
  • logger (instance) - you can pass an X2goLogger object to the X2goPrintActionDIALOG constructor
  • loglevel (int) - if no X2goLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__

do_print(self, pdf_file, job_title, spool_dir)

source code 

Execute an external command that has been defined on construction of this X2goPrintActionPRINTCMD instance.

Parameters:
  • pdf_file (str) - PDF file name as placed in to the X2go spool directory
  • job_title (str) - human readable print job title
  • spool_dir (str) - location of the X2go client's spool directory
Overrides: X2goPrintAction.do_print