Package qubx :: Module pyenvGTK
[hide private]
[frames] | no frames]

Module pyenvGTK

source code

GUI support for user scripting.

Copyright 2007-2014 Research Foundation State University of New York This file is part of QUB Express.

QUB Express 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 3 of the License, or (at your option) any later version.

QUB Express 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, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  PythonOut
A widget showing sys.stdout.
  PythonPrompt
A widget which lets the user execute a line of python.
  PythonEnvironmentDialog
Dialog for editing sys.path extensions and the startup script (see qubx.pyenv.PythonEnvironment).
  PythonScriptView
Widget for editing and running user scripts.
  PythonScriptWindow
Window for editing and running user scripts.
  HelpTestDialog
Dialog to help write and debug one-liners.
  HelpTestButton
A gtk.Button linked to a qubx.GTK.NumEntry, labeled '?', which brings up an appropriate HelpTestDialog.
  AltMapTable
  ExploreTreeView
  ExploreListSlice
  ExploreObjView
  ExploreDialog
Modal window to explore python namespace.
  ScriptedLinkView
Functions [hide private]
 
show_message(message, buttons=<enum GTK_BUTTONS_OK of type GtkButtonsType>, title='', parent=None)
Displays a message dialog box.
source code
 
prompt_choices(message, choices=['Cancel', 'OK'], title='', parent=None)
Returns index of choice; 0 is also window-close.
source code
 
prompt_entry(message, value, accept=None, format='%s', title='', parent=None)
Returns modified value, or None if canceled.
source code
 
prompt_entries(items, title='', parent=None)
Returns modified value list, or None if canceled.
source code
 
build_dotname(objname) source code
 
ExploreListSlices(obj, objname, base=0, count=None) source code
 
explore_one(obj, name, *selection_names, **kw)
Shows the Python object hierarchy under one object.
source code
 
explore(*selection_names, **kw)
Shows the Python object hierarchy in qubx.global_namespace
source code
 
get_api_url(obj, name, parent) source code
Variables [hide private]
  ALTMAP_KEYS = 'abcdefghijklmnopqrstuvwxyz1234567890-=`[]\\;\',./'
  EXPLORE_STR_CUSTOM = 4
  EXPLORE_STR_DOC = 3
  EXPLORE_STR_NONE = 0
  EXPLORE_STR_PPRINT = 2
  EXPLORE_STR_STR = 1
  __package__ = 'qubx'
  e = 2.71828182846
  pi = 3.14159265359
  rdbk = 'Expired.'
  rdbreak = 'supporting'
  rdname = 'qubfast.txt'
Function Details [hide private]

prompt_entries(items, title='', parent=None)

source code 

Returns modified value list, or None if canceled.

Parameters:
  • items - list of tuple (caption, value, accept, format)

explore_one(obj, name, *selection_names, **kw)

source code 

Shows the Python object hierarchy under one object.

Parameters:
  • obj - anything
  • name - caption for obj
  • selection_names - path that will be expanded initially
  • show_private - (default False) True to show variables with __ in their name
Returns:
selection_names of last selected sub-object

explore(*selection_names, **kw)

source code 

Shows the Python object hierarchy in qubx.global_namespace

Parameters:
  • selection_names - path that will be expanded initially
  • show_private - (default False) True to show variables with __ in their name
Returns:
selection_names of last selected object e.g. ['QubX', 'Models']