Merge Christoph Holtermann's 'pycons-more-verbose' into maint.

This commit is contained in:
John Ralls 2019-05-03 13:26:42 -07:00
commit 8fb2111636

View File

@ -95,8 +95,13 @@ class Console (cons.Console):
# Change this to "if True:" to switch on a python console at gnucash
# startup:
# shelltype can either be "python" or "ipython" (the latter is not yet fully functional)
if False:
console = Console(argv = [], shelltype = 'python', banner = [['woop', 'title']], size = 100)
shelltype = "python"
title = "gnucash "+shelltype+" shell"
banner_style = 'title'
banner = "Welcome to "+title+"!\n"
console = Console(argv = [], shelltype = shelltype, banner = [[banner, banner_style]], size = 100)
window = Gtk.Window(type = Gtk.WindowType.TOPLEVEL)
window.set_position(Gtk.WindowPosition.CENTER)