[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUe] Working example for calling a specific form from a python script
From: |
Jan Ischebeck |
Subject: |
[GNUe] Working example for calling a specific form from a python script |
Date: |
Fri, 17 Nov 2006 14:38:44 +0100 |
User-agent: |
Thunderbird 1.5.0.8 (Windows/20061025) |
Hi Adrian,
the following example is working for me (latest development version).
Jan
#!/usr/bin/python
from gnue.forms.GFInstance import GFInstance
from gnue.forms.uidrivers import wx26 as ui
from gnue.forms.GFConfig import ConfigOptions
from gnue.common.apps.GClientApp import GClientApp
class gfdrunner(GClientApp):
def __init__ (self, connections = None):
self.OPTIONS['username'] = "myname"
self.OPTIONS['password'] = "mypassword"
GClientApp.__init__ (self, connections, 'forms', ConfigOptions)
self.configurationManager.registerAlias ('gConfigForms', 'forms')
def run(self):
instance = GFInstance(manager=self,
connections=self.connections,
ui=ui, disableSplash=1)
instance.addFormFromFile('F:\gnue\samples\gauntlet.gfd')
instance.activate()
r = gfdrunner()
r.run()
- [GNUe] Working example for calling a specific form from a python script,
Jan Ischebeck <=