4 from _sw_core_utils
import gnc_prefs_is_extra_enabled
7 sys.path.append(os.path.dirname(__file__))
8 noisy = gnc_prefs_is_extra_enabled()
10 print "woop", os.path.dirname(__file__)
15 old_sigttou = signal.signal(signal.SIGTTOU, signal.SIG_IGN)
20 signal.signal(signal.SIGTTOU, old_sigttou)
23 print "Hello from python!"
24 print "test", sys.modules.keys()
25 print "test2", dir(_sw_app_utils)
27 root = _sw_app_utils.gnc_get_current_root_account()
30 print "test", dir(root), root.__class__
31 print "test2", dir(gnucash_core_c)
36 print "test3", dir(acct)
43 """ GTK python console """
45 def __init__(self, argv=[], shelltype='python', banner=[],
46 filename=
None, size=100):
47 cons.Console.__init__(self, argv, shelltype, banner, filename, size)
48 self.buffer.create_tag(
'center',
49 justification=gtk.JUSTIFY_CENTER,
61 """ Handle key press event """
64 self.active_canvas.emit (
'key-press-event', event)
66 return cons.Console.key_press_event (self, widget, event)
75 """ Button press event """
79 """ Refresh drawing """
81 figure, canvas, anchor = fig
89 console =
Console(argv = [], shelltype =
'python', banner = [[
'woop',
'title']], size = 100)
91 window = gtk.Window(gtk.WINDOW_TOPLEVEL)
92 window.set_position(gtk.WIN_POS_CENTER)
93 window.set_default_size(800,600)
94 window.set_border_width(0)
97 window.connect(
'destroy-event', gtk.main_quit)
98 window.connect(
'delete-event', gtk.main_quit)
struct account_s Account
Account in Gnucash. This is the typename for an account. The actual structure is defined in the priva...