1. pyro.gui.GLgui
No Docstring
In File: pryo/gui/GL.py
Subclass of: pyro.gui.gui (see PyroGuiGui) in pyrobot/gui/init.py
Depends on:
-
pyro.gui.*
-
pyro.gui.widgets.TKwidgets.*
-
pyro.system.version
-
pyro.engine.*
-
pyro.system
-
pyro.gui.Drawable
-
pyro.gui.renderer.gl.*
-
pyro.gui.renderer.streams.*
- pyro.gui.GLgui
1.1. Constructor(engine, width = 400, height = 400, db = 1, depth = 1, mode = 1)
No Docstring
Arguments:
-
engine: a Pyro engine object
-
width: [optional, def. 400] integer, the window width
-
height: [optional, def. 400] integer, the window height
-
db: ?
-
depth: ?
-
mode: [optional, def. 1] 1 is openGL, 0 is TK
1.2. External Functions
1.2.1. CommandReturnKey(event)
No docstring
Arguments:
-
event: ?
Gets a command from self.commandEntry.get(), does some string manipulation, and calls processCommand on it.
1.2.2. viewRobot()
No Docstring
Looks like it creates the winows fort he robot view.
1.2.3. viewBrain()
No Docstring
Creates the window for the brain view.
1.2.4. redrawPie(pie, percentSoFar, piececnt, controller, percent, name)
No Docstring
Arguments:
-
pie: ?
-
percentSoFar: ?
-
controller: ?
-
percent: ?
-
name: ?
Draws the pies for the brain view. I'm not sure about the various arguments.
1.2.5. redrawWindowBrain()
No Docstring
I'll come back to this one.
1.2.6. redrawWindowRobot()
No Docstring
Currently does nothing
1.2.7. editBrain()
No Docstring
Open the brain file in emacs.
1.2.8. makeMenu(name, commands)
No Docstring
Arguments:
-
name: String, the title of the menu
-
commands: A list of menu items. Each item consists of a list; the first element is the name of the item, and the second is a function reference to the command that the menu item should execute.
Returns:
-
A menu object
1.2.9. run()
No Docstring
calls self.win.mainloop()
1.2.10. init()
No Docstring
Initializes the openGL options.
1.2.11. fileloaddialog(filetype, skel)
No Docstring
Arguments:
-
filetype: a string. This looks in the /plugins/filetype directory in pyro, so it should be the type of plugin that you want to load
-
skel: string. This is the type of file you're looking for (e.g., '*.py')
Returns:
-
The file returned by the file dialog box.
1.2.12. refresh()
No Docstring
Do something to the win.[x | y | auto]spin
1.2.13. redraw(win = 0)
No Docstring
Arguments:
-
win: I suppose this normally gets a reference to the window.
