GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
pygui.mainwindow.MainWindow Class Reference

Detailed Description

Definition at line 22 of file mainwindow.py.

Public Member Functions

 __init__ (self)
 
 AddDirectory (self, tdir)
 
 close_all_canvases (self)
 
 get_canvas_size (self, size="")
 
 hello (self)
 
 load_library (self, library_name, grut_lib=True)
 
 LoadCutG (self, cutg)
 
 LoadDataFile (self, filename=None)
 
 LoadGuiFile (self, filename)
 
 LoadRootFile (self, filename=None)
 
 LoadWindowFile (self, filename=None)
 
 open_canvas (self, title="", columns=-1, rows=-1, topx=0, topy=0, width=0, height=0)
 
 RefreshHistograms (self)
 
 ResetAllHistograms (self)
 
 ResetHistograms (self, hist=None)
 
 ResortDataFile (self)
 
 Run (self)
 
 set_zones (self)
 
 Terminate (self)
 
 Update (self)
 

Public Attributes

list canvases = []
 
 defaultcanvassize = tk.StringVar(value='800x600')
 
 dummy = ROOT.TTimer('.q',-1)
 
dict files = {}
 
 hist_tab = HistTab(self, hist_page)
 
dict icons = {}
 
 optstat_entries = tk.BooleanVar(value=True)
 
 optstat_integral = tk.BooleanVar(value=True)
 
 optstat_kurt = tk.BooleanVar(value=False)
 
 optstat_kurt_err = tk.BooleanVar(value=False)
 
 optstat_mean = tk.BooleanVar(value=True)
 
 optstat_mean_err = tk.BooleanVar(value=False)
 
 optstat_name = tk.BooleanVar(value=True)
 
 optstat_overflow = tk.BooleanVar(value=False)
 
 optstat_rms = tk.BooleanVar(value=False)
 
 optstat_rms_err = tk.BooleanVar(value=False)
 
 optstat_skew = tk.BooleanVar(value=False)
 
 optstat_skew_err = tk.BooleanVar(value=False)
 
 optstat_underflow = tk.BooleanVar(value=False)
 
 plotlocation = tk.StringVar(value='NewCanvas')
 
 predefinedzones = tk.StringVar(value='1x1')
 
 refreshrate = tk.IntVar(value='-1')
 
 status_bar = AnsiColorText(frame, bg='black')
 
 tcut_tab = TCutTab(self, tcut_page)
 
 variable_tab = VariableTab(self, variable_page)
 
 window = tk.Tk()
 
int zone_cols = 1
 
int zone_rows = 1
 

Protected Member Functions

 _draw_single (self, hist, color=1, nselected=1)
 
 _dump_root_file (self, filename=None, include_histograms=True)
 
 _load_default_style (self)
 
 _load_icons (self)
 
 _MakeFileMenu (self, menubar)
 
 _MakeHelpMenu (self, menubar)
 
 _MakeMenuBar (self)
 
 _MakeOptStatMenu (self, menubar)
 
 _MakePlotMenu (self, menubar)
 
 _MakeRefreshMenu (self, menubar)
 
 _MakeZoneMenu (self, menubar)
 
 _PeriodicRefresh (self)
 
 _PickIcon (self, obj)
 
 _save_gui_file (self, filename=None)
 
 _SetOptStat (self)
 
 _setup_GUI (self)
 
 _setup_status_bar (self, parent)
 
 _update_status_bar (self)
 

Protected Attributes

 _PeriodicRefresh
 
 _update_status_bar
 
+ Inheritance diagram for pygui.mainwindow.MainWindow:
+ Collaboration diagram for pygui.mainwindow.MainWindow:

Constructor & Destructor Documentation

◆ __init__()

pygui.mainwindow.MainWindow.__init__ ( self)

Definition at line 24 of file mainwindow.py.

Member Function Documentation

◆ _draw_single()

◆ _dump_root_file()

pygui.mainwindow.MainWindow._dump_root_file ( self,
filename = None,
include_histograms = True )
protected

◆ _load_default_style()

pygui.mainwindow.MainWindow._load_default_style ( self)
protected

Definition at line 102 of file mainwindow.py.

◆ _load_icons()

pygui.mainwindow.MainWindow._load_icons ( self)
protected

Definition at line 85 of file mainwindow.py.

◆ _MakeFileMenu()

pygui.mainwindow.MainWindow._MakeFileMenu ( self,
menubar )
protected

Definition at line 246 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _MakeHelpMenu()

pygui.mainwindow.MainWindow._MakeHelpMenu ( self,
menubar )
protected

Definition at line 433 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _MakeMenuBar()

◆ _MakeOptStatMenu()

pygui.mainwindow.MainWindow._MakeOptStatMenu ( self,
menubar )
protected

Definition at line 388 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _MakePlotMenu()

pygui.mainwindow.MainWindow._MakePlotMenu ( self,
menubar )
protected

Definition at line 419 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _MakeRefreshMenu()

pygui.mainwindow.MainWindow._MakeRefreshMenu ( self,
menubar )
protected

Definition at line 309 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _MakeZoneMenu()

pygui.mainwindow.MainWindow._MakeZoneMenu ( self,
menubar )
protected

Definition at line 338 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._MakeMenuBar().

◆ _PeriodicRefresh()

◆ _PickIcon()

pygui.mainwindow.MainWindow._PickIcon ( self,
obj )
protected

Definition at line 275 of file mainwindow.py.

References pygui.mainwindow.MainWindow.icons.

◆ _save_gui_file()

pygui.mainwindow.MainWindow._save_gui_file ( self,
filename = None )
protected

◆ _SetOptStat()

◆ _setup_GUI()

◆ _setup_status_bar()

pygui.mainwindow.MainWindow._setup_status_bar ( self,
parent )
protected

Definition at line 189 of file mainwindow.py.

◆ _update_status_bar()

pygui.mainwindow.MainWindow._update_status_bar ( self)
protected

Definition at line 197 of file mainwindow.py.

References pygui.mainwindow.MainWindow.status_bar.

◆ AddDirectory()

pygui.mainwindow.MainWindow.AddDirectory ( self,
tdir )

◆ close_all_canvases()

pygui.mainwindow.MainWindow.close_all_canvases ( self)

Definition at line 571 of file mainwindow.py.

◆ get_canvas_size()

pygui.mainwindow.MainWindow.get_canvas_size ( self,
size = "" )

◆ hello()

pygui.mainwindow.MainWindow.hello ( self)

Definition at line 568 of file mainwindow.py.

◆ load_library()

pygui.mainwindow.MainWindow.load_library ( self,
library_name,
grut_lib = True )

Definition at line 562 of file mainwindow.py.

◆ LoadCutG()

pygui.mainwindow.MainWindow.LoadCutG ( self,
cutg )

Definition at line 511 of file mainwindow.py.

References pygui.mainwindow.MainWindow.tcut_tab.

◆ LoadDataFile()

pygui.mainwindow.MainWindow.LoadDataFile ( self,
filename = None )

Definition at line 515 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._setup_GUI().

◆ LoadGuiFile()

pygui.mainwindow.MainWindow.LoadGuiFile ( self,
filename )

◆ LoadRootFile()

pygui.mainwindow.MainWindow.LoadRootFile ( self,
filename = None )

◆ LoadWindowFile()

pygui.mainwindow.MainWindow.LoadWindowFile ( self,
filename = None )

Definition at line 544 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._setup_GUI().

◆ open_canvas()

pygui.mainwindow.MainWindow.open_canvas ( self,
title = "",
columns = -1,
rows = -1,
topx = 0,
topy = 0,
width = 0,
height = 0 )

◆ RefreshHistograms()

pygui.mainwindow.MainWindow.RefreshHistograms ( self)

◆ ResetAllHistograms()

pygui.mainwindow.MainWindow.ResetAllHistograms ( self)

◆ ResetHistograms()

pygui.mainwindow.MainWindow.ResetHistograms ( self,
hist = None )

Definition at line 440 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._setup_GUI().

◆ ResortDataFile()

pygui.mainwindow.MainWindow.ResortDataFile ( self)

◆ Run()

pygui.mainwindow.MainWindow.Run ( self)

Definition at line 556 of file mainwindow.py.

References pygui.mainwindow.MainWindow.window.

◆ set_zones()

pygui.mainwindow.MainWindow.set_zones ( self)

◆ Terminate()

pygui.mainwindow.MainWindow.Terminate ( self)

Definition at line 271 of file mainwindow.py.

◆ Update()

pygui.mainwindow.MainWindow.Update ( self)

Definition at line 559 of file mainwindow.py.

References pygui.mainwindow.MainWindow.window.

Member Data Documentation

◆ _PeriodicRefresh

pygui.mainwindow.MainWindow._PeriodicRefresh
protected

Definition at line 328 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._PeriodicRefresh().

◆ _update_status_bar

pygui.mainwindow.MainWindow._update_status_bar
protected

Definition at line 195 of file mainwindow.py.

◆ canvases

list pygui.mainwindow.MainWindow.canvases = []

◆ defaultcanvassize

pygui.mainwindow.MainWindow.defaultcanvassize = tk.StringVar(value='800x600')

Definition at line 247 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow.get_canvas_size().

◆ dummy

pygui.mainwindow.MainWindow.dummy = ROOT.TTimer('.q',-1)

Definition at line 272 of file mainwindow.py.

◆ files

dict pygui.mainwindow.MainWindow.files = {}

Definition at line 30 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow.LoadRootFile().

◆ hist_tab

◆ icons

dict pygui.mainwindow.MainWindow.icons = {}

Definition at line 86 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._PickIcon().

◆ optstat_entries

pygui.mainwindow.MainWindow.optstat_entries = tk.BooleanVar(value=True)

Definition at line 390 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_integral

pygui.mainwindow.MainWindow.optstat_integral = tk.BooleanVar(value=True)

Definition at line 397 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_kurt

pygui.mainwindow.MainWindow.optstat_kurt = tk.BooleanVar(value=False)

Definition at line 400 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_kurt_err

pygui.mainwindow.MainWindow.optstat_kurt_err = tk.BooleanVar(value=False)

Definition at line 401 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_mean

pygui.mainwindow.MainWindow.optstat_mean = tk.BooleanVar(value=True)

Definition at line 391 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_mean_err

pygui.mainwindow.MainWindow.optstat_mean_err = tk.BooleanVar(value=False)

Definition at line 392 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_name

pygui.mainwindow.MainWindow.optstat_name = tk.BooleanVar(value=True)

Definition at line 389 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_overflow

pygui.mainwindow.MainWindow.optstat_overflow = tk.BooleanVar(value=False)

Definition at line 396 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_rms

pygui.mainwindow.MainWindow.optstat_rms = tk.BooleanVar(value=False)

Definition at line 393 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_rms_err

pygui.mainwindow.MainWindow.optstat_rms_err = tk.BooleanVar(value=False)

Definition at line 394 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_skew

pygui.mainwindow.MainWindow.optstat_skew = tk.BooleanVar(value=False)

Definition at line 398 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_skew_err

pygui.mainwindow.MainWindow.optstat_skew_err = tk.BooleanVar(value=False)

Definition at line 399 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ optstat_underflow

pygui.mainwindow.MainWindow.optstat_underflow = tk.BooleanVar(value=False)

Definition at line 395 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._SetOptStat().

◆ plotlocation

pygui.mainwindow.MainWindow.plotlocation = tk.StringVar(value='NewCanvas')

◆ predefinedzones

pygui.mainwindow.MainWindow.predefinedzones = tk.StringVar(value='1x1')

Definition at line 339 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow.set_zones().

◆ refreshrate

pygui.mainwindow.MainWindow.refreshrate = tk.IntVar(value='-1')

Definition at line 310 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._PeriodicRefresh().

◆ status_bar

pygui.mainwindow.MainWindow.status_bar = AnsiColorText(frame, bg='black')

Definition at line 192 of file mainwindow.py.

Referenced by pygui.mainwindow.MainWindow._update_status_bar().

◆ tcut_tab

◆ variable_tab

◆ window

◆ zone_cols

pygui.mainwindow.MainWindow.zone_cols = 1

◆ zone_rows

pygui.mainwindow.MainWindow.zone_rows = 1