Methods
|
|
|
|
__init__
|
__init__ ( self )
|
|
about
|
about ( self )
|
|
add_new_paper
|
add_new_paper ( self, name='' )
|
|
ask_preferences
|
ask_preferences ( self )
|
|
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_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 a new paper or the current one (depending on replace value),
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,
interactive=True,
on_begin_attrs=None,
)
interactive attribute tells whether the plugin should be run in interactive mode
|
|
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=None,
)
if time is none it is calculated based on the string length
|