acsncImpl.ACSEventAdminGUI
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acspy/src/acsncImpl/ACSEventAdminGUI.py

This module contains the implementation of a GUI which attaches to the
IDL ACSEventAdmin interface. Also it is the author's first attempt at a GUI
without a GUI builder so please don't bash it too hard;)
 
TODO LIST:
- Implementation
- Documentation

 
Modules
       
Tkinter
acstime
posixpath
pickle
string

 
Classes
       
Acspy.Common.Callbacks.CBstring(Acspy.Common.Callbacks.BaseValueCB, ACS__POA.CBstring)
ACSEventAdminGUI
_Pmw.Pmw_1_2.lib.PmwBase.MegaToplevel(_Pmw.Pmw_1_2.lib.PmwBase.MegaArchetype)
ChannelInfo

 
class ACSEventAdminGUI(Acspy.Common.Callbacks.CBstring)
    ACSEventAdminGUI, derived from the IDL interface CBstring, is the primary GUI panel
used with the ACSEventAdmin IDL interface.
 
 
Method resolution order:
ACSEventAdminGUI
Acspy.Common.Callbacks.CBstring
Acspy.Common.Callbacks.BaseValueCB
ACS__POA.CBstring
ACS__POA.Callback
ACS__POA.OffShoot
omniORB.PortableServer.Servant

Methods defined here:
__init__(self, parent, eventAdminRef, filename)
Standard Constructor
 
Paramters:
- parent is the parent widget of this class
- eventAdminRef is a reference to an ACSEventAdmin IDL interface
 
Returns: Nothing
 
Raises: ???
clearEvents(self)
Saves the entire list of all known events to a given text file.
 
Parameters: None
 
Returns: Nothing
 
Raises: ???
displayActiveChannel(self)
When someone clicks on a channel, a new widget is spawned displaying various
pieces of information
 
Paramters: None
 
Returns: Nothing
 
Raises: ???
displayChannelHelper(self, channelList)
Responsibile for spawning a new widget displaying channel info. This is a
recursive method so end-users can highlight multiple channels at the same time.
Really this can never be the case given the current implementation though.
 
Parameters:
- channelList is a list of channel names
 
Returns: Nothing
 
Raises: ???
displayEvent(self)
Displays a single ICD-style event on the screen.
loadPickledEvents(self)
Loads a pickled list of all known events from a given file.
 
Parameters: None
 
Returns: Nothing
 
Raises: ???
pickleEvents(self)
Pickles the list of all known events to a given file.
 
Parameters: None
 
Returns: Nothing
 
Raises: ???
pollActiveChannels(self)
Gets an updated list of all notification channels and outputs them to the GUI.
Designed to be invoked from a thread.
 
Parameters: None
 
Returns: Nothing
 
Raises: ???
saveEvents(self)
Prompts user for a filename, then saves the entire list of all known events to the given text file.
 
Parameters: None
 
Returns: Nothing
 
Raises: ???
stopArchiving(self)
Can be called to stop the archiving to a file.
submit(self)
Called each time the user tries to invoke some administrative function.
DWF - needs a lot of work still.
working(self, value, completion, desc)
Overriden method from the CBstring class which is invoked each time an event
is received. The event is outputted to a scrolled textbox widget.
 
Parameters:
- value is the stringified event
- completion is a CORBA completion structure
- desc is callback struct description
 
Returns: Nothing
 
Raises: ???

Methods inherited from Acspy.Common.Callbacks.BaseValueCB:
done(self, value, completion, desc)
Invoked asynchronously when the DO has finished. Normally this is
invoked just before a monitor is destroyed or when an asynchronous
method has finished.
 
Parameters:
- value is the value we are interested in
- completion is a CORBA completion structure
- desc is callback struct description
 
Returns: Nothing
 
Raises: Nothing
last(self)
Return the last value received by the DO.
 
Parameters: None.
 
Returns: last archived value
 
Raises: Nothing
negotiate(self, time_to_transmit, desc)
For simplicitys sake, we always return true. If you want more detailed
information on this method, please see the BACI specs.
 
Parameters: See the BACI specs.
 
Returns: Nothing
 
Raises: Nothing

 
class ChannelInfo(_Pmw.Pmw_1_2.lib.PmwBase.MegaToplevel)
    Simple widget class. Just prints out a predetermined message (generally listing
some information about a notification channel. Class was cut-and-pasted from a
Pmw example with very minor modifications.
 
 
Method resolution order:
ChannelInfo
_Pmw.Pmw_1_2.lib.PmwBase.MegaToplevel
_Pmw.Pmw_1_2.lib.PmwBase.MegaArchetype

Methods defined here:
__init__(self, parent=None, **kw)
Standard Constructor.
 
Parameters:
- parent is the parent widget
- kw are keyword arguments
 
Returns: Nothing
 
Raises: ???
goodbye(self, event=None)
Invoked by user to destroy the panel.
 
Parameters:
- event???
 
Returns: Nothing
 
Raises: ???

Methods inherited from _Pmw.Pmw_1_2.lib.PmwBase.MegaToplevel:
activate(self, globalMode=0, geometry='centerscreenfirst')
active(self)
after(this, *args, **kw)
after_cancel(this, *args, **kw)
after_idle(this, *args, **kw)
aspect(this, *args, **kw)
attributes(this, *args, **kw)
bbox(this, *args, **kw)
bell(this, *args, **kw)
bind(this, *args, **kw)
bind_all(this, *args, **kw)
bind_class(this, *args, **kw)
bindtags(this, *args, **kw)
client(this, *args, **kw)
clipboard_append(this, *args, **kw)
clipboard_clear(this, *args, **kw)
clipboard_get(this, *args, **kw)
colormapwindows(this, *args, **kw)
colormodel(this, *args, **kw)
columnconfigure(this, *args, **kw)
command(this, *args, **kw)
config(this, *args, **kw)
deactivate(self, result=None)
deiconify(this, *args, **kw)
deletecommand(this, *args, **kw)
destroy(self)
event_add(this, *args, **kw)
event_delete(this, *args, **kw)
event_generate(this, *args, **kw)
event_info(this, *args, **kw)
focus(this, *args, **kw)
focus_displayof(this, *args, **kw)
focus_force(this, *args, **kw)
focus_get(this, *args, **kw)
focus_lastfor(this, *args, **kw)
focus_set(this, *args, **kw)
focusmodel(this, *args, **kw)
frame(this, *args, **kw)
geometry(this, *args, **kw)
getboolean(this, *args, **kw)
getvar(this, *args, **kw)
grab_current(this, *args, **kw)
grab_release(this, *args, **kw)
grab_set(this, *args, **kw)
grab_set_global(this, *args, **kw)
grab_status(this, *args, **kw)
grid(this, *args, **kw)
grid_bbox(this, *args, **kw)
grid_columnconfigure(this, *args, **kw)
grid_location(this, *args, **kw)
grid_propagate(this, *args, **kw)
grid_rowconfigure(this, *args, **kw)
grid_size(this, *args, **kw)
grid_slaves(this, *args, **kw)
group(this, *args, **kw)
iconbitmap(this, *args, **kw)
iconify(this, *args, **kw)
iconmask(this, *args, **kw)
iconname(this, *args, **kw)
iconposition(this, *args, **kw)
iconwindow(this, *args, **kw)
image_names(this, *args, **kw)
image_types(this, *args, **kw)
keys(this, *args, **kw)
lift(this, *args, **kw)
lower(this, *args, **kw)
mainloop(this, *args, **kw)
maxsize(this, *args, **kw)
minsize(this, *args, **kw)
nametowidget(this, *args, **kw)
option_add(this, *args, **kw)
option_clear(this, *args, **kw)
option_get(this, *args, **kw)
option_readfile(this, *args, **kw)
overrideredirect(this, *args, **kw)
pack_propagate(this, *args, **kw)
pack_slaves(this, *args, **kw)
place_slaves(this, *args, **kw)
positionfrom(this, *args, **kw)
propagate(this, *args, **kw)
protocol(this, *args, **kw)
quit(this, *args, **kw)
register(this, *args, **kw)
resizable(this, *args, **kw)
rowconfigure(this, *args, **kw)
selection_clear(this, *args, **kw)
selection_get(this, *args, **kw)
selection_handle(this, *args, **kw)
selection_own(this, *args, **kw)
selection_own_get(this, *args, **kw)
send(this, *args, **kw)
setvar(this, *args, **kw)
show(self, master=None)
size(this, *args, **kw)
sizefrom(this, *args, **kw)
slaves(this, *args, **kw)
state(this, *args, **kw)
title(this, *args, **kw)
tk_bisque(this, *args, **kw)
tk_focusFollowsMouse(this, *args, **kw)
tk_focusNext(this, *args, **kw)
tk_focusPrev(this, *args, **kw)
tk_menuBar(this, *args, **kw)
tk_setPalette(this, *args, **kw)
tk_strictMotif(this, *args, **kw)
tkraise(this, *args, **kw)
transient(this, *args, **kw)
unbind(this, *args, **kw)
unbind_all(this, *args, **kw)
unbind_class(this, *args, **kw)
update(this, *args, **kw)
update_idletasks(this, *args, **kw)
userdeletefunc(self, func=None)
usermodaldeletefunc(self, func=None)
wait_variable(this, *args, **kw)
wait_visibility(this, *args, **kw)
wait_window(this, *args, **kw)
waitvar(this, *args, **kw)
winfo_atom(this, *args, **kw)
winfo_atomname(this, *args, **kw)
winfo_cells(this, *args, **kw)
winfo_children(this, *args, **kw)
winfo_class(this, *args, **kw)
winfo_colormapfull(this, *args, **kw)
winfo_containing(this, *args, **kw)
winfo_depth(this, *args, **kw)
winfo_exists(this, *args, **kw)
winfo_fpixels(this, *args, **kw)
winfo_geometry(this, *args, **kw)
winfo_height(this, *args, **kw)
winfo_id(this, *args, **kw)
winfo_interps(this, *args, **kw)
winfo_ismapped(this, *args, **kw)
winfo_manager(this, *args, **kw)
winfo_name(this, *args, **kw)
winfo_parent(this, *args, **kw)
winfo_pathname(this, *args, **kw)
winfo_pixels(this, *args, **kw)
winfo_pointerx(this, *args, **kw)
winfo_pointerxy(this, *args, **kw)
winfo_pointery(this, *args, **kw)
winfo_reqheight(this, *args, **kw)
winfo_reqwidth(this, *args, **kw)
winfo_rgb(this, *args, **kw)
winfo_rootx(this, *args, **kw)
winfo_rooty(this, *args, **kw)
winfo_screen(this, *args, **kw)
winfo_screencells(this, *args, **kw)
winfo_screendepth(this, *args, **kw)
winfo_screenheight(this, *args, **kw)
winfo_screenmmheight(this, *args, **kw)
winfo_screenmmwidth(this, *args, **kw)
winfo_screenvisual(this, *args, **kw)
winfo_screenwidth(this, *args, **kw)
winfo_server(this, *args, **kw)
winfo_toplevel(this, *args, **kw)
winfo_viewable(this, *args, **kw)
winfo_visual(this, *args, **kw)
winfo_visualid(this, *args, **kw)
winfo_visualsavailable(this, *args, **kw)
winfo_vrootheight(this, *args, **kw)
winfo_vrootwidth(this, *args, **kw)
winfo_vrootx(this, *args, **kw)
winfo_vrooty(this, *args, **kw)
winfo_width(this, *args, **kw)
winfo_x(this, *args, **kw)
winfo_y(this, *args, **kw)
withdraw(this, *args, **kw)
wm_aspect(this, *args, **kw)
wm_attributes(this, *args, **kw)
wm_client(this, *args, **kw)
wm_colormapwindows(this, *args, **kw)
wm_command(this, *args, **kw)
wm_deiconify(this, *args, **kw)
wm_focusmodel(this, *args, **kw)
wm_frame(this, *args, **kw)
wm_geometry(this, *args, **kw)
wm_grid(this, *args, **kw)
wm_group(this, *args, **kw)
wm_iconbitmap(this, *args, **kw)
wm_iconify(this, *args, **kw)
wm_iconmask(this, *args, **kw)
wm_iconname(this, *args, **kw)
wm_iconposition(this, *args, **kw)
wm_iconwindow(this, *args, **kw)
wm_maxsize(this, *args, **kw)
wm_minsize(this, *args, **kw)
wm_overrideredirect(this, *args, **kw)
wm_positionfrom(this, *args, **kw)
wm_protocol(this, *args, **kw)
wm_resizable(this, *args, **kw)
wm_sizefrom(this, *args, **kw)
wm_state(this, *args, **kw)
wm_title(this, *args, **kw)
wm_transient(this, *args, **kw)
wm_withdraw(this, *args, **kw)

Methods inherited from _Pmw.Pmw_1_2.lib.PmwBase.MegaArchetype:
__getitem__ = cget(self, option)
__setitem__(self, key, value)
__str__(self)
addoptions(self, optionDefs)
cget(self, option)
component(self, name)
componentaliases(self)
componentgroup(self, name)
components(self)
configure(self, option=None, **kw)
createcomponent(self, componentName, componentAliases, componentGroup, widgetClass, *widgetArgs, **kw)
createlabel(self, parent, childCols=1, childRows=1)
defineoptions(self, keywords, optionDefs, dynamicGroups=())
destroycomponent(self, name)
hulldestroyed(self)
initialiseoptions(self, dummy=None)
interior(self)
isinitoption(self, option)
options(self)

 
Functions
       
asctime(...)
asctime([tuple]) -> string
 
Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.
When the time tuple is not present, current time as returned by localtime()
is used.
gmtime(...)
gmtime([seconds]) -> (tm_year, tm_mon, tm_mday, tm_hour, tm_min,
                       tm_sec, tm_wday, tm_yday, tm_isdst)
 
Convert seconds since the Epoch to a time tuple expressing UTC (a.k.a.
GMT).  When 'seconds' is not passed in, convert the current time instead.
sleep(...)
sleep(seconds)
 
Delay execution for a given number of seconds.  The argument may be
a floating point number for subsecond precision.
start_new_thread(...)
start_new_thread(function, args[, kwargs])
(start_new() is an obsolete synonym)
 
Start a new thread and return its identifier.  The thread will call the
function with positional arguments from the tuple args and keyword arguments
taken from the optional dictionary kwargs.  The thread exits when the
function returns; the return value is ignored.  The thread will also exit
when the function raises an unhandled exception; a stack trace will be
printed unless the exception is SystemExit.

 
Data
        EVENT_CACHE = {}
Pmw = <Pmw.Pmw_1_2.lib.PmwLoader.PmwLoader instance at 0xb7c656cc>