Package autoglade :: Module autoglade
[hide private]
[frames] | no frames]

Module autoglade

source code

$Id: autoglade.py 35 2008-08-14 13:52:40Z dtmilano $


Version: 0.4

License: Copyright (C) 2007 Diego Torres Milano <diego@codtech.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA

Classes [hide private]
  AutoGladeAttributeError
AutoGladeAttributeError is an identificable AttributeError
  AutoGladeRuntimeError
AutoGladeRuntimeError
  AutoGladeItemNotFoundException
AutoGladeItemNotFoundException
  AutoGladeObject
AutoGladeObject is an utility class that relates together the Glade widget, its name and the XML element in a particular autoglade instance.
  AutoTreeviewSetCell
AutoTreeviewSetCell helper class.
  AutoGlade
AutoGlade main class.
Functions [hide private]
 
FN()
Get the function name from the previous (calling) frame
source code
 
warning(str, *cond) source code
 
debug(str, *cond) source code
 
treeview_toogle_expansion(treeview, path) source code
Variables [hide private]
  __rev__ = '$Rev: 35 $'
AutoGlade
  AUTO_DELIMITER = ':'
  AUTO_INVOKE_RE = '(.*)'+ AUTO_DELIMITER+ 'auto'+ AUTO_DELIMITE...
  AUTO_INVOKE_WIDGET = 1
  AUTO_INVOKE_METHOD = 2
  AUTO_INVOKE_HASARGS = 3
  AUTO_INVOKE_ARGS = 4
  AUTO_TREEVIEW_SET_CELL_RE = 'setTreeview(.+)Cell(\d+)'
  AGO_POSTPONED = -2
  AGO_DIALOG_PREFERENCES = 'dialogPreferences'
  AGO_BUTTON_PREFERENCES = 'buttonPreferences'
  AGO_MENU_ITEM_PREFERENCES = 'menuItemPreferences'
  AGO_TOOL_BUTTON_PREFERENCES = 'toolButtonPreferences'
  AGO_BUTTON_NEW = 'buttonNew'
  AGO_MENU_ITEM_NEW = 'menuItemNew'
  AGO_TOOL_BUTTON_NEW = 'toolButtonNew'
  AGO_BUTTON_OPEN = 'buttonOpen'
  AGO_MENU_ITEM_OPEN = 'menuItemOpen'
  AGO_TOOL_BUTTON_OPEN = 'toolButtonOpen'
  AGO_BUTTON_SAVE = 'buttonSave'
  AGO_MENU_ITEM_SAVE = 'menuItemSave'
  AGO_TOOL_BUTTON_SAVE = 'toolButtonSave'
  AGO_MENU_ITEM_SAVE_AS = 'menuItemSaveas'
  AGO_MENU_ITEM_COPY = 'menuItemCopy'
  AGO_MENU_ITEM_CUT = 'menuItemCut'
  AGO_MENU_ITEM_PASTE = 'menuItemPaste'
  AGO_MENU_ITEM_DELETE = 'menuItemDelete'
  AGO_BUTTON_QUIT = 'buttonQuit'
  AGO_MENU_ITEM_QUIT = 'menuItemQuit'
  AGO_TOOL_BUTTON_QUIT = 'toolButtonQuit'
  AGO_DIALOG_ABOUT = 'dialogAbout'
  AGO_BUTTON_ABOUT = 'buttonAbout'
  AGO_MENU_ITEM_ABOUT = 'menuItemAbout'
  AGO_TOOL_BUTTON_ABOUT = 'toolButtonAbout'
  AGOS = [AGO_DIALOG_PREFERENCES, AGO_BUTTON_PREFERENCES, AGO_ME...
  ASI_STOCK = 0
  ASI_GTKCLASS = 1
  prog = os.path.basename(sys.argv [0])
  version = '0.4'
  revision = '$Rev: 35 $'
  DEBUG = ['__autoConnect', 'autoCopy', 'autoOpen', 'open', 'aut...
  WARNING = ['__autoConnect']
  colors = {"default": "", "blue": "\x1b[01;34m", "cyan": "\x1b[...
  CYAN = colors ['cyan']
  RED = colors ['red']
  BLUE = colors ['blue']
  GREEN = colors ['green']
  MAGENTA = colors ['magenta']
  SGR0 = colors ['sgr0']
  EMPTY_GLADE = """<?xml version="1.0" encoding="UTF-8" standalo...
  INPUT_CLASS = ['GtkRadioButton', 'GtkCheckButton', 'GtkToggleB...
  usage = "usage: autoglade [options] [file.glade]"

Imports: sys, os, re, gobject, gtk, gconf, warnings, traceback, optparse.OptionParser, xml.dom.minidom


Variables Details [hide private]

AUTO_INVOKE_RE

Value:
'(.*)'+ AUTO_DELIMITER+ 'auto'+ AUTO_DELIMITER+ '([^'+ AUTO_DELIMITER+\
 ']*)('+ AUTO_DELIMITER+ '(.+))?'

AGOS

Value:
[AGO_DIALOG_PREFERENCES, AGO_BUTTON_PREFERENCES, AGO_MENU_ITEM_PREFERE\
NCES, AGO_TOOL_BUTTON_PREFERENCES, AGO_BUTTON_NEW, AGO_MENU_ITEM_NEW, \
AGO_TOOL_BUTTON_NEW, AGO_BUTTON_OPEN, AGO_MENU_ITEM_OPEN, AGO_TOOL_BUT\
TON_OPEN, AGO_BUTTON_SAVE, AGO_MENU_ITEM_SAVE, AGO_TOOL_BUTTON_SAVE, A\
GO_MENU_ITEM_SAVE_AS, AGO_MENU_ITEM_COPY, AGO_MENU_ITEM_CUT, AGO_MENU_\
ITEM_PASTE, AGO_MENU_ITEM_DELETE, AGO_BUTTON_QUIT, AGO_MENU_ITEM_QUIT,\
 AGO_TOOL_BUTTON_QUIT, AGO_DIALOG_ABOUT, AGO_BUTTON_ABOUT, AGO_MENU_IT\
EM_ABOUT, AGO_TOOL_BUTTON_ABOUT,]

DEBUG

Value:
['__autoConnect', 'autoCopy', 'autoOpen', 'open', 'autoNew', 'autoSave\
as', 'save']

colors

Value:
{"default": "", "blue": "\x1b[01;34m", "cyan": "\x1b[01;36m", "green":\
 "\x1b[01;32m", "red": "\x1b[01;05;37;41m", "magenta": "\x1b[01;35m", \
"sgr0": "\x1b[m\x1b(B"}

EMPTY_GLADE

Value:
"""<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.2.0 on Tue Sep 25 21:27:17 2007 by diego@b\
ruce-->
<glade-interface>
</glade-interface>
"""

INPUT_CLASS

Value:
['GtkRadioButton', 'GtkCheckButton', 'GtkToggleButton', 'GtkEntry', 'G\
tkHScale', 'GtkVScale', 'GtkSpinButton', 'GtkComboBox', 'GtkFileChoose\
rButton', 'GtkFontButton', 'GtkColorButton', 'GtkCalendar']