gui_classes::Picture Class Reference

List of all members.

Public Member Functions

def __init__
def deactivate
def activate
def save_as
def _dummy
def show_barchart
def show_line
def create_listbox
def menu_change
def pre_shutdown
def shutdown
def _select_error
def _select_date
def _show_description
def _show_plot_description
def _hide_description
def _show_save_as_description
def _show_dropdown_description

Detailed Description

This class provides functions around the "diplay diagrams" issues.

Definition at line 124 of file gui_classes.py.


Member Function Documentation

def gui_classes::Picture::__init__   self,
  color,
  windows
 

Constructor

Definition at line 127 of file gui_classes.py.

def gui_classes::Picture::_dummy   self,
  event = None
 

This function is doing nothing, it serves as a dummy.

Definition at line 237 of file gui_classes.py.

def gui_classes::Picture::_hide_description   self,
  event
 

This function deletes the status bar content.

Definition at line 736 of file gui_classes.py.

def gui_classes::Picture::_select_date   self  ) 
 

This functions take a date and generates a new graph 

Definition at line 620 of file gui_classes.py.

def gui_classes::Picture::_select_error   self  ) 
 

This function get the selected item from the listbox

Definition at line 517 of file gui_classes.py.

def gui_classes::Picture::_show_description   self,
  event
 

This function displays the description for the listbox in the status bar.

Definition at line 719 of file gui_classes.py.

def gui_classes::Picture::_show_dropdown_description   self,
  event
 

This function shows a short description for the dropdown menu in the status bar.

Definition at line 750 of file gui_classes.py.

def gui_classes::Picture::_show_plot_description   self,
  event
 

This function displays the description of the "plot" button in the status bar.

Definition at line 729 of file gui_classes.py.

def gui_classes::Picture::_show_save_as_description   self,
  event
 

This function show the description of the "save as" button in the status bar.

Definition at line 743 of file gui_classes.py.

def gui_classes::Picture::activate   self  ) 
 

This function activates all buttons.

Definition at line 201 of file gui_classes.py.

def gui_classes::Picture::create_listbox   self,
  error = None
 

This function creates a listbox with the given items.

Definition at line 322 of file gui_classes.py.

def gui_classes::Picture::deactivate   self  ) 
 

This function deactivates all buttons.

Definition at line 191 of file gui_classes.py.

def gui_classes::Picture::menu_change   self,
  name,
  index,
  mode
 

This function changes the order in the listbox according to the chosen item in the drop down menu.

Definition at line 404 of file gui_classes.py.

def gui_classes::Picture::pre_shutdown   self  ) 
 

This function calls a message box and make sure the user really wants to shutdown.

Definition at line 472 of file gui_classes.py.

def gui_classes::Picture::save_as   self  ) 
 

This function saves the diagram picture as postscript.

Definition at line 213 of file gui_classes.py.

def gui_classes::Picture::show_barchart   self,
  window_name,
  listus,
  label,
  xlabel,
  ylabel,
  data,
  select_type = None,
  filus_fd = None,
  descript = None
 

This function shows a barchart diagram.

Definition at line 243 of file gui_classes.py.

def gui_classes::Picture::show_line   self,
  window_name,
  listus,
  label,
  xlabel,
  ylabel,
  data,
  select_type = None,
  error = None,
  labelamount = 10,
  filus_fd = None,
  descript = None,
  typ = None
 

This functions shows a line chart diagram.

window_name = name of the new window
listus = value list
label = label list for x-axis
xlabel = description of x-axis
ylabel = description of y-axis
select_type = type of items are listed in listbox
data = dataset which comes from the database query
error = chosen error from listbox
labelamount = amount of possible labels for the x-axis

Definition at line 269 of file gui_classes.py.

def gui_classes::Picture::shutdown   self  ) 
 

This function closes all open child windows and itself

Definition at line 493 of file gui_classes.py.


The documentation for this class was generated from the following file:
Generated on Sun Mar 5 23:04:04 2006 for Virtualiser by  doxygen 1.4.6-NO