Table of Contents

Class: BKchem bkchem/main.py
Base Classes   
Tk
Methods   
__init__
_load_CDML_file
_quit
_save_according_to_extension
_update_geometry
about
add_new_paper
change_mode
change_paper
change_properties
change_submode
check_if_the_file_is_opened
check_number_of_opened_same_names
clean
clear_status
close_current_paper
close_paper
gen_inchi
gen_inchi_for_molecule
gen_smiles
get_clipboard
get_clipboard_pos
get_name_dic
get_new_tab_name
get_paper_tab_name
init_basics
init_menu
init_mode_buttons
init_modes
init_plugins_menu
init_preferences
init_singletons
init_status_bar
initialize
initialize_batch
load_CDML
plugin_export
plugin_import
process_batch
put_to_clipboard
read_inchi
read_smiles
read_user_templates
request
run_plugin
save_CDML
save_SVG
save_as_CDML
save_as_template
save_configuration
scale
set_file_name
standard_values
start_server
update_cursor_position
update_menu_after_selection_change
update_status
  __init__ 
__init__ ( self )

  _load_CDML_file 
_load_CDML_file ( self,  a )

  _quit 
_quit ( self )

  _save_according_to_extension 
_save_according_to_extension (
        self,
        filename,
        update_default_dir=1,
        )

decides the format from the file extension and saves self.paper in it

  _update_geometry 
_update_geometry ( self,  e )

  about 
about ( self )

  add_new_paper 
add_new_paper ( self,  name='' )

  change_mode 
change_mode ( self,  tag )

  change_paper 
change_paper ( self,  name )

  change_properties 
change_properties ( self )

  change_submode 
change_submode ( self,  tag )

  check_if_the_file_is_opened 
check_if_the_file_is_opened (
        self,
        name,
        check_current=1,
        )

check_current says if the self.paper should be also included into the check, this is usefull to make it 0 for renames

  check_number_of_opened_same_names 
check_number_of_opened_same_names ( self,  name )

checks if there are papers with same name and returns the highest value

  clean 
clean ( self )

  clear_status 
clear_status ( self )

  close_current_paper 
close_current_paper ( self )

  close_paper 
close_paper ( self,  paper=None )

  gen_inchi 
gen_inchi ( self )

  gen_inchi_for_molecule 
gen_inchi_for_molecule ( self,  m )

  gen_smiles 
gen_smiles ( self )

  get_clipboard 
get_clipboard ( self )

  get_clipboard_pos 
get_clipboard_pos ( self )

  get_name_dic 
get_name_dic (
        self,
        name='',
        local_file=0,
        )

  get_new_tab_name 
get_new_tab_name ( self )

  get_paper_tab_name 
get_paper_tab_name ( self,  paper )

  init_basics 
init_basics ( self )

  init_menu 
init_menu ( self )

  init_mode_buttons 
init_mode_buttons ( self )

  init_modes 
init_modes ( self )

  init_plugins_menu 
init_plugins_menu ( self )

  init_preferences 
init_preferences ( self )

  init_singletons 
init_singletons ( self )

  init_status_bar 
init_status_bar ( self )

  initialize 
initialize ( self )

  initialize_batch 
initialize_batch ( self )

  load_CDML 
load_CDML (
        self,
        file=None,
        replace=0,
        )

loads a file into the current paper, file is the name of the file to load (if not supplied dialog is fired), if replace == 0 the content of the file is added to the current content of the file

  plugin_export 
plugin_export (
        self,
        pl_id,
        filename=None,
        )

  plugin_import 
plugin_import (
        self,
        pl_id,
        filename=None,
        )

  process_batch 
process_batch ( self,  opts )

  put_to_clipboard 
put_to_clipboard (
        self,
        xml,
        pos,
        )

  read_inchi 
read_inchi ( self,  inchi=None )

Exceptions   
ValueError, "the processing of inchi failed with following error %s" % sys.exc_value
  read_smiles 
read_smiles ( self,  smiles=None )

  read_user_templates 
read_user_templates ( self )

  request 
request (
        self,
        type,
        **options,
        )

used by submodules etc. for requests of application wide resources such as pixmaps etc.

  run_plugin 
run_plugin ( self,  name )

  save_CDML 
save_CDML (
        self,
        name=None,
        update_default_dir=1,
        )

saves content of self.paper (recent paper) under its filename, if the filename was automaticaly given by bkchem it will call save_as_CDML in order to ask for the name

  save_SVG 
save_SVG ( self,  file_name=None )

Exceptions   
ValueError, "unable to open to file ", x
  save_as_CDML 
save_as_CDML ( self )

asks the user the name for a file and saves the current paper there, dir and name should be given as starting values

  save_as_template 
save_as_template ( self )

  save_configuration 
save_configuration ( self )

  scale 
scale ( self )

  set_file_name 
set_file_name (
        self,
        name,
        check_ext=0,
        )

if check_ext is true append a .svg extension if no is present

  standard_values 
standard_values ( self )

  start_server 
start_server ( self )

  update_cursor_position 
update_cursor_position (
        self,
        x,
        y,
        )

  update_menu_after_selection_change 
update_menu_after_selection_change ( self,  e )

  update_status 
update_status (
        self,
        signal,
        time=4,
        )


Table of Contents

This document was automatically generated on Wed Jun 1 11:05:30 2005 by HappyDoc version 2.1