Dans_Diffraction.tkgui.crystal
index
c:\users\grp66007\onedrive - diamond light source ltd\pythonprojects\dans_diffraction\dans_diffraction\tkgui\crystal.py

Main crystal gui windows

 
Modules
       
Dans_Diffraction.functions_crystallography
tkinter.filedialog
tkinter.messagebox
numpy
os
matplotlib.pyplot
re
sys
tkinter

 
Classes
       
builtins.object
AtomsGui
CrystalGui
LatparGui
SuperstructureGui
SymmetryGui

 
class AtomsGui(builtins.object)
    AtomsGui(xtl, symmetric_only=True, magnetic_moments=False)
 
View and edit the atomic positions
 
  Methods defined here:
__init__(self, xtl, symmetric_only=True, magnetic_moments=False)
Initialise
fun_magnets(self)
"ReOpen window with magnetic moments
fun_set(self)
Get positions from crystal object, fill text boxes
fun_update(self)
Update atomic properties, close window

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class CrystalGui(builtins.object)
    CrystalGui(xtl=None)
 
Provide options for plotting and viewing Crystal data
 
  Methods defined here:
__init__(self, xtl=None)
"Initialise Main GUI
fun_atoms(self)
fun_diffractometer(self)
fun_fdmnes(self)
fun_get(self)
fun_info(self)
Display Crystal info
fun_latpar(self)
fun_loadcif(self)
fun_loadstruct(self, event=None)
Load from structure_list
fun_multicrystal(self)
fun_multiple_scattering(self)
fun_plotlayers(self)
fun_plotxtl(self)
fun_properties(self)
fun_set(self)
fun_simulate(self)
fun_structure(self)
fun_superstructure(self)
fun_symmetry(self)
fun_tensor_scattering(self)
fun_writecif(self, inifile=None)
menu_analyse_fdmnes(self)
Open FDMNS analysis GUI
menu_converter(self)
Open unit converter
menu_darkmode(self)
Change colour scheme
menu_examples(self)
List example files, open in system viewer
menu_fdmnes_indata(self)
Display FDMNES indata file
menu_file_clipboard(self)
Add filename to clipboard
menu_info_atoms(self)
Atoms info
menu_info_cif(self)
Print cif
menu_info_crystal(self)
Crystal info
menu_info_elements(self)
View atom properties
menu_info_properties(self)
Properties info
menu_info_structure(self)
P1 Structure info
menu_info_symmetry(self)
Symmetry info
menu_info_table(self)
Open periodic table
menu_latex(self)
Display latex commands
menu_new(self)
Create a new instance
menu_ref_list(self)
Reflection list
menu_scale(self)
Change the scale of the tkinter instance
menu_spacegroups(self)
Open Spacegroup viewer gui
menu_start_fdmnes(self)
Search for FDMNES, restart GUI
menu_xray_interactions(self)
Open x-ray interactions gui
on_closing(self)
End mainloop on close window
short_file(self)
update_name(self, event=None)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class LatparGui(builtins.object)
    LatparGui(xtl)
 
View and edit the lattice parameters
 
  Methods defined here:
__init__(self, xtl)
"Initialise
fun_update(self)
Update lattice parameters, close window

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SuperstructureGui(builtins.object)
    SuperstructureGui(xtl)
 
Generate a superstructure
 
  Methods defined here:
__init__(self, xtl)
Initialise
fun_gencell(self, event=None)
Generate new supercell
fun_parent2super(self, event=None)
Convert parent hkl to super hkl
fun_super2parent(self, event=None)
Convert super hkl to parent hkl
fun_updatecell(self, event=None)
Update cell parameters

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SymmetryGui(builtins.object)
    SymmetryGui(xtl)
 
View and edit the symmetry operations
 
  Methods defined here:
__init__(self, xtl)
"Initialise
fun_ch_maggroup(self)
Button Select Magnetic Spacegroup
fun_ch_spacegroup(self)
Button Select Spacegroup
fun_ch_subgroup(self)
Button select subgroup
fun_mousewheel(self, event)
Move scollbar
fun_move(self, *args)
Move within text frame
fun_scroll(self, *args)
Move scrollbar
fun_set(self)
Generate the text box
fun_spacegroup(self, event=None)
Load spacegroup symmetry
fun_symhkl(self, event=None)
create symmetric hkl reflections
fun_symuvw(self, event=None)
create symmetric uvw position
fun_update(self)
Update button
update(self)
Update crystal

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        BF = ['Palatino', 14]
HF = ['Courier', 12]
SF = ['Palatino', 14]
TF = ['Palatino', 12]
TTF = ('Helvetica', 10, 'bold italic')
bkg = 'snow'
btn = 'azure'
btn_active = 'grey'
ety = 'white'
ety_txt = 'black'
opt = 'azure'
opt_active = 'grey'
txtcol = 'black'