def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: TemperatureSeriesPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.instructionsLabel = wx.StaticText(self, -1, "Select a fit from the tree on the left then add datasets and assign\ntemperatues below. If you have not set up a fit to be the template\nfor the series, hit cancel and rerun this macro once a fit has been\ncreated.") self.listCtrlFiles = AutoWidthListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_EDIT_LABELS|wx.SUNKEN_BORDER) self.buttonUp = wx.BitmapButton(self, -1, wx.NullBitmap) self.buttonDown = wx.BitmapButton(self, -1, wx.NullBitmap) self.buttonAdd = wx.Button(self, wx.ID_ADD, "Add") self.buttonDelete = wx.Button(self, wx.ID_DELETE, "Delete") self.static_line_1 = wx.StaticLine(self, -1) self.goButton = wx.Button(self, wx.ID_OK, "OK") self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LIST_COL_CLICK, self.onColClick, self.listCtrlFiles) self.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.onEndLabelEdit, self.listCtrlFiles) self.Bind(wx.EVT_BUTTON, self.onUp, self.buttonUp) self.Bind(wx.EVT_BUTTON, self.onDown, self.buttonDown) self.Bind(wx.EVT_BUTTON, self.onAdd, id=wx.ID_ADD) self.Bind(wx.EVT_BUTTON, self.onDelete, id=wx.ID_DELETE) self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.buttonUp.SetBitmapLabel(wx.ArtProvider.GetBitmap(wx.ART_GO_UP)) self.buttonDown.SetBitmapLabel(wx.ArtProvider.GetBitmap(wx.ART_GO_DOWN)) self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: SGConstrainDialog.__init__ kwds["style"] = wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.sizer_2_staticbox = wx.StaticBox(self, -1, "Space Group Constraints") self.numConstrainedLabel = wx.StaticText(self, -1, "") self.sgLabel = wx.StaticText(self, -1, "Space Group") self.sgComboBox = wx.ComboBox(self, -1, choices=["P1"], style=wx.CB_DROPDOWN) self.offsetLabel = wx.StaticText(self, -1, "Origin Offset") self.offsetTextCtrlX = wx.TextCtrl(self, -1, "0") self.offsetTextCtrlY = wx.TextCtrl(self, -1, "0") self.offsetTextCtrlZ = wx.TextCtrl(self, -1, "0") self.positionCheckBox = wx.CheckBox(self, -1, "constrain positions") self.tfCheckBox = wx.CheckBox(self, -1, "constrain temperature factors") self.static_line_1 = wx.StaticLine(self, -1) self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.okButton = wx.Button(self, wx.ID_OK, "OK") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_TEXT_ENTER, self.onSGTextEnter, self.sgComboBox) self.Bind(wx.EVT_COMBOBOX, self.onSGSelect, self.sgComboBox) self.Bind(wx.EVT_TEXT_ENTER, self.onOXTextEnter, self.offsetTextCtrlX) self.Bind(wx.EVT_TEXT_ENTER, self.onOYTextEnter, self.offsetTextCtrlY) self.Bind(wx.EVT_TEXT_ENTER, self.onOZTextEnter, self.offsetTextCtrlZ) self.Bind(wx.EVT_CHECKBOX, self.onPosFlag, self.positionCheckBox) self.Bind(wx.EVT_CHECKBOX, self.onTempFlag, self.tfCheckBox) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) self.Bind(wx.EVT_BUTTON, self.onOk, id=wx.ID_OK) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: PlotPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_4_staticbox = wx.StaticBox(self, -1, "Y") self.sizer_3_staticbox = wx.StaticBox(self, -1, "X") self.xDataCombo = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN|wx.CB_READONLY) self.yDataList = KeyEventsListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER|wx.SUNKEN_BORDER) self.offsetLabel = wx.StaticText(self, -1, "offset", style=wx.ALIGN_RIGHT) self.offsetTextCtrl = wx.TextCtrl(self, -1, "-5", style=wx.TE_PROCESS_ENTER) self.static_line_1 = wx.StaticLine(self, -1) self.plotButton = wx.Button(self, -1, "Plot") self.resetButton = wx.Button(self, -1, "Reset") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_TEXT_ENTER, self.onEnter, self.offsetTextCtrl) self.Bind(wx.EVT_BUTTON, self.onPlot, self.plotButton) self.Bind(wx.EVT_BUTTON, self.onReset, self.resetButton) # end wxGlade self.Bind(wx.EVT_COMBOBOX, self._check, self.xDataCombo) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._check, self.yDataList) self.Bind(wx.EVT_LIST_ITEM_DESELECTED, self._check, self.yDataList) self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: RSeriesPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_4_copy_staticbox = wx.StaticBox(self, -1, "fit minimum") self.sizer_4_staticbox = wx.StaticBox(self, -1, "fit maximum") self.instructionsLabel = wx.StaticText(self, -1, "Select a fit from the tree on the left and set the first value, last value, \nand the step size of the maximum and/or minimum of the fit range\nbelow. If you have not set up a fit to be the template for the series, hit\ncancel and rerun this macro once a fit has been created.") self.maxFirstLabel = wx.StaticText(self, -1, "first") self.maxFirstTextCtrl = wx.TextCtrl(self, -1, "") self.maxLastLabel = wx.StaticText(self, -1, "last") self.maxLastTextCtrl = wx.TextCtrl(self, -1, "") self.maxStepLabel = wx.StaticText(self, -1, "step") self.maxStepTextCtrl = wx.TextCtrl(self, -1, "") self.minFirstLabel = wx.StaticText(self, -1, "first") self.minFirstTextCtrl = wx.TextCtrl(self, -1, "") self.minLastLabel = wx.StaticText(self, -1, "last") self.minLastTextCtrl = wx.TextCtrl(self, -1, "") self.minStepLabel = wx.StaticText(self, -1, "step") self.minStepTextCtrl = wx.TextCtrl(self, -1, "") self.goButton = wx.Button(self, wx.ID_OK, "OK") self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: PreferencesPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizerPanelName_staticbox = wx.StaticBox(self, -1, "") self.labelPanelName = wx.StaticText(self, -1, "Preferences") self.labelViewer = wx.StaticText(self, -1, "Structure viewer executable") self.textCtrlViewer = wx.TextCtrl(self, -1, "") self.buttonViewerBrowse = wx.Button(self, -1, "Browse") self.labelArgStr = wx.StaticText(self, -1, "Argument string") self.textCtrlArgument = wx.TextCtrl(self, -1, "") self.labelFormat = wx.StaticText(self, -1, "Structure format") self.choiceFormat = wx.Choice(self, -1, choices=[]) self.structureDirCheckBox = wx.CheckBox(self, -1, "Remember path to structure files") self.dataDirCheckBox = wx.CheckBox(self, -1, "Remember path to data sets") self.static_line_1 = wx.StaticLine(self, -1) self.okButton = wx.Button(self, wx.ID_OK, "OK") self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.onBrowse, self.buttonViewerBrowse) self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: CalculationPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_panelname_staticbox = wx.StaticBox(self, -1, "") self.panelNameLabel = wx.StaticText(self, -1, "Calculation Configuration") self.radioBoxStype = wx.RadioBox(self, -1, "Scatterer Type", choices=["Neutron", "X-ray"], majorDimension=2, style=wx.RA_SPECIFY_COLS) self.labelCalcRange = wx.StaticText(self, -1, "Range", style=wx.ALIGN_RIGHT) self.textCtrlCalcFrom = wx.TextCtrl(self, -1, "1.0") self.labelTo = wx.StaticText(self, -1, "to", style=wx.ALIGN_RIGHT) self.textCtrlCalcTo = wx.TextCtrl(self, -1, "10.0") self.labelRStep = wx.StaticText(self, -1, "spacing", style=wx.ALIGN_RIGHT) self.textCtrlRStep = wx.TextCtrl(self, -1, "0.01") self.labelScaleFactor = wx.StaticText(self, -1, "Scale Factor", style=wx.ALIGN_RIGHT) self.textCtrlScaleFactor = wx.TextCtrl(self, -1, "1.0") self.labelQmax = wx.StaticText(self, -1, "Qmax", style=wx.ALIGN_RIGHT) self.textCtrlQmax = wx.TextCtrl(self, -1, "25.0") self.label_1 = wx.StaticText(self, -1, "") self.label_1_copy = wx.StaticText(self, -1, "") self.labelQdamp = wx.StaticText(self, -1, "Qdamp", style=wx.ALIGN_RIGHT) self.textCtrlQdamp = wx.TextCtrl(self, -1, "0.0") self.labelQbroad = wx.StaticText(self, -1, "Qbroad", style=wx.ALIGN_RIGHT) self.textCtrlQbroad = wx.TextCtrl(self, -1, "0.0") self.label_1_copy_2 = wx.StaticText(self, -1, "") self.label_1_copy_1 = wx.StaticText(self, -1, "") self.label_1_copy_6 = wx.StaticText(self, -1, "") self.label_1_copy_5 = wx.StaticText(self, -1, "") self.label_1_copy_3 = wx.StaticText(self, -1, "") self.label_1_copy_4 = wx.StaticText(self, -1, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_RADIOBOX, self.onStype, self.radioBoxStype) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) wx.Panel.__init__(self, *args, **kwds) kwds["style"] = wx.TAB_TRAVERSAL image = wx.Image(iconpath("titlepage.png"), wx.BITMAP_TYPE_PNG) bitmap = wx.BitmapFromImage(image) self.bitmap_1 = wx.StaticBitmap(self, -1, bitmap) self.__set_properties() self.__do_layout() return
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: ServerPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.accountSizer_staticbox = wx.StaticBox(self, -1, "Account") self.rsaSizer_staticbox = wx.StaticBox(self, -1, "RSA/DSA path") self.hostSizer_staticbox = wx.StaticBox(self, -1, "Host") self.serverList = AutoWidthListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_EDIT_LABELS|wx.SUNKEN_BORDER) self.newButton = wx.Button(self, wx.ID_NEW, "New") self.deleteButton = wx.Button(self, wx.ID_DELETE, "Delete") self.static_line_2 = wx.StaticLine(self, -1, style=wx.LI_VERTICAL) self.hostLabel = wx.StaticText(self, -1, "Host") self.hostText = wx.TextCtrl(self, -1, "") self.portLabel = wx.StaticText(self, -1, "SSH port") self.portText = wx.TextCtrl(self, -1, "22") self.portCheck = wx.CheckBox(self, -1, "Use default port") self.authRadio = wx.RadioBox(self, -1, "Authentication type", choices=["Passwd", "RSA", "DSA"], majorDimension=1, style=wx.RA_SPECIFY_ROWS) self.userLabel = wx.StaticText(self, -1, "username") self.userText = wx.TextCtrl(self, -1, "") self.passwdLabel = wx.StaticText(self, -1, "password") self.passwdText = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD) self.rsaCheck = wx.CheckBox(self, -1, "Use default path") self.pathText = wx.TextCtrl(self, -1, "~/.ssh/id_rsa") self.keyfileBtn = wx.Button(self, -1, "Select") self.passphraseLabel = wx.StaticText(self, -1, "RSA/DSA Passphrase") self.passphraseText = wx.TextCtrl(self, -1, "", style=wx.TE_PASSWORD) self.static_line_1 = wx.StaticLine(self, -1) self.okButton = wx.Button(self, wx.ID_OK, "OK") self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.onItemSelected, self.serverList) self.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.onItemEdited, self.serverList) self.Bind(wx.EVT_LIST_COL_CLICK, self.onColClick, self.serverList) self.Bind(wx.EVT_BUTTON, self.onNew, id=wx.ID_NEW) self.Bind(wx.EVT_BUTTON, self.onDelete, id=wx.ID_DELETE) self.Bind(wx.EVT_TEXT, self.onHost, self.hostText) self.Bind(wx.EVT_TEXT, self.onPort, self.portText) self.Bind(wx.EVT_CHECKBOX, self.onPortChecked, self.portCheck) self.Bind(wx.EVT_RADIOBOX, self.onAuthChoice, self.authRadio) self.Bind(wx.EVT_TEXT, self.onUser, self.userText) self.Bind(wx.EVT_TEXT, self.onPass, self.passwdText) self.Bind(wx.EVT_CHECKBOX, self.onRSAChecked, self.rsaCheck) self.Bind(wx.EVT_TEXT, self.onPath, self.pathText) self.Bind(wx.EVT_BUTTON, self.onSelect, self.keyfileBtn) self.Bind(wx.EVT_TEXT, self.onRSAPass, self.passphraseText) self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: PhaseConstraintsPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizerLatticeParameters_staticbox = wx.StaticBox(self, -1, "") self.sizerAdditionalParameters_staticbox = wx.StaticBox(self, -1, "") self.sizerAtoms_staticbox = wx.StaticBox(self, -1, "") self.sizerPanelName_staticbox = wx.StaticBox(self, -1, "") self.labelPanelName = wx.StaticText(self, -1, "Phase Constraints") self.labelA = wx.StaticText(self, -1, "a") self.textCtrlA = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelB = wx.StaticText(self, -1, "b") self.textCtrlB = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelC = wx.StaticText(self, -1, "c") self.textCtrlC = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelAlpha = wx.StaticText(self, -1, "alpha") self.textCtrlAlpha = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelBeta = wx.StaticText(self, -1, "beta") self.textCtrlBeta = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelGamma = wx.StaticText(self, -1, "gamma") self.textCtrlGamma = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelScaleFactor = wx.StaticText(self, -1, "Scale Factor") self.textCtrlScaleFactor = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelDelta1 = wx.StaticText(self, -1, "delta1") self.textCtrlDelta1 = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelDelta2 = wx.StaticText(self, -1, "delta2") self.textCtrlDelta2 = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelSpdiameter = wx.StaticText(self, -1, "spdiameter") self.textCtrlSpdiameter = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelSratio = wx.StaticText(self, -1, "sratio") self.textCtrlSratio = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER) self.labelRcut = wx.StaticText(self, -1, "rcut") self.textCtrlRcut = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_READONLY) self.labelStepcut = wx.StaticText(self, -1, "stepcut") self.textCtrlStepcut = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_READONLY) self.labelIncludedPairs = wx.StaticText(self, -1, "Included Pairs") self.textCtrlIncludedPairs = wx.TextCtrl(self, -1, "all-all", style=wx.TE_READONLY) self.gridAtoms = AutoWidthLabelsGrid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() self.Bind(wx.grid.EVT_GRID_CMD_CELL_RIGHT_CLICK, self.onCellRightClick, self.gridAtoms) self.Bind(wx.grid.EVT_GRID_CMD_EDITOR_SHOWN, self.onEditorShown, self.gridAtoms) self.Bind(wx.grid.EVT_GRID_CMD_LABEL_RIGHT_CLICK, self.onLabelRightClick, self.gridAtoms) self.Bind(wx.grid.EVT_GRID_CMD_CELL_CHANGE, self.onCellChange, self.gridAtoms) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) self.toolTips = toolTips # begin wxGlade: DataSetConfigurePanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_panelname_staticbox = wx.StaticBox(self, -1, "") self.panelNameLabel = wx.StaticText(self, -1, "Data Set Configuration") self.radioBoxStype = wx.RadioBox(self, -1, "Scatterer Type", choices=["Neutron", "X-ray"], majorDimension=2, style=wx.RA_SPECIFY_COLS) self.radioBoxSampling = wx.RadioBox(self, -1, "Data Sampling", choices=["Data", "Nyquist", "Custom"], majorDimension=3, style=wx.RA_SPECIFY_COLS) self.labelDataRange = wx.StaticText(self, -1, "Data Range") self.textCtrlDataFrom = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelDataTo = wx.StaticText(self, -1, "to") self.textCtrlDataTo = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelDataStep = wx.StaticText(self, -1, "spacing") self.textCtrlDataStep = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelFitRange = wx.StaticText(self, -1, "Fit Range", style=wx.ALIGN_RIGHT) self.textCtrlFitFrom = wx.TextCtrl(self, -1, "1.0") self.labelFitTo = wx.StaticText(self, -1, "to", style=wx.ALIGN_RIGHT) self.textCtrlFitTo = wx.TextCtrl(self, -1, "10.0") self.labelFitStep = wx.StaticText(self, -1, "spacing") self.textCtrlFitStep = wx.TextCtrl(self, -1, "0") self.labelScaleFactor = wx.StaticText(self, -1, "Scale Factor", style=wx.ALIGN_RIGHT) self.textCtrlScaleFactor = wx.TextCtrl(self, -1, "1.0") self.labelQmax = wx.StaticText(self, -1, "Qmax", style=wx.ALIGN_RIGHT) self.textCtrlQmax = wx.TextCtrl(self, -1, "25.0") self.blank1_copy = wx.StaticText(self, -1, "") self.blank1_copy_4 = wx.StaticText(self, -1, "") self.labelQdamp = wx.StaticText(self, -1, "Qdamp", style=wx.ALIGN_RIGHT) self.textCtrlQdamp = wx.TextCtrl(self, -1, "0.0") self.labelQbroad = wx.StaticText(self, -1, "Qbroad", style=wx.ALIGN_RIGHT) self.textCtrlQbroad = wx.TextCtrl(self, -1, "0.0") self.blank1_copy_1 = wx.StaticText(self, -1, "") self.blank1_copy_5 = wx.StaticText(self, -1, "") self.labelTemperature = wx.StaticText(self, -1, "Temperature", style=wx.ALIGN_RIGHT) self.textCtrlTemperature = wx.TextCtrl(self, -1, "300.0") self.labelDoping = wx.StaticText(self, -1, "Doping", style=wx.ALIGN_RIGHT) self.textCtrlDoping = wx.TextCtrl(self, -1, "1.0") self.blank1_copy_3 = wx.StaticText(self, -1, "") self.blank1_copy_7 = wx.StaticText(self, -1, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_RADIOBOX, self.onStype, self.radioBoxStype) self.Bind(wx.EVT_RADIOBOX, self.onSampling, self.radioBoxSampling) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: AddDataPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.textLoadData = wx.StaticText(self, -1, "Load a data set from file.") self.buttonOpen = wx.Button(self, wx.ID_OPEN, "Open") self.static_line_2 = wx.StaticLine(self, -1) self.buttonCancel = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.onOpen, id=wx.ID_OPEN) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: JournalPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.textCtrlJournal = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE) self.exportButton = wx.Button(self, -1, "Export") self.closeButton = wx.Button(self, wx.ID_CLOSE, "") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_TEXT, self.onText, self.textCtrlJournal) self.Bind(wx.EVT_BUTTON, self.onExport, self.exportButton) self.Bind(wx.EVT_BUTTON, self.onClose, id=wx.ID_CLOSE) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: PhaseResultsPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizerLatticeParameters_staticbox = wx.StaticBox(self, -1, "") self.sizerAdditionalParameters_staticbox = wx.StaticBox(self, -1, "") self.sizerAtoms_staticbox = wx.StaticBox(self, -1, "") self.sizerPanelName_staticbox = wx.StaticBox(self, -1, "") self.labelPanelName = wx.StaticText(self, -1, "Phase Results") self.labelA = wx.StaticText(self, -1, "a") self.textCtrlA = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelB = wx.StaticText(self, -1, "b") self.textCtrlB = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelC = wx.StaticText(self, -1, "c") self.textCtrlC = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelAlpha = wx.StaticText(self, -1, "alpha") self.textCtrlAlpha = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelBeta = wx.StaticText(self, -1, "beta") self.textCtrlBeta = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelGamma = wx.StaticText(self, -1, "gamma") self.textCtrlGamma = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelScaleFactor = wx.StaticText(self, -1, "Scale Factor") self.textCtrlScaleFactor = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelDelta1 = wx.StaticText(self, -1, "delta1") self.textCtrlDelta1 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelDelta2 = wx.StaticText(self, -1, "delta2") self.textCtrlDelta2 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelSpdiameter = wx.StaticText(self, -1, "spdiameter") self.textCtrlSpdiameter = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelSratio = wx.StaticText(self, -1, "sratio") self.textCtrlSratio = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelRcut = wx.StaticText(self, -1, "rcut") self.textCtrlRcut = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelStepcut = wx.StaticText(self, -1, "stepcut") self.textCtrlStepcut = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.labelIncludedPairs = wx.StaticText(self, -1, "Included Pairs") self.textCtrlIncludedPairs = wx.TextCtrl(self, -1, "all-all", style=wx.TE_READONLY) self.gridAtoms = AutoWidthLabelsGrid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade self.__customProperties() return
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: DataSetConstraintPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_panelname_staticbox = wx.StaticBox(self, -1, "") self.panelNameLabel = wx.StaticText(self, -1, "Data Set Constraints") self.labelScaleFactor = wx.StaticText(self, -1, "Scale Factor") self.textCtrlScaleFactor = wx.TextCtrl(self, -1, "") self.labelQdamp = wx.StaticText(self, -1, "Qdamp") self.textCtrlQdamp = wx.TextCtrl(self, -1, "") self.labelQbroad = wx.StaticText(self, -1, "Qbroad") self.textCtrlQbroad = wx.TextCtrl(self, -1, "") self.__set_properties() self.__do_layout() # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: DataSetPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.dataSetNotebook = wx.Notebook(self, -1, style=0) self.resultsPage = wx.Panel(self.dataSetNotebook, -1) self.constraintsPage = wx.Panel(self.dataSetNotebook, -1) self.configurePage = wx.Panel(self.dataSetNotebook, -1) self.configurePanel = DataSetConfigurePanel(self.configurePage, -1) self.constraintPanel = DataSetConstraintPanel(self.constraintsPage, -1) self.resultsPanel = DataSetResultsPanel(self.resultsPage, -1) self.__set_properties() self.__do_layout() self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.onNotebookChanged, self.dataSetNotebook) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: ParametersPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.grid_parameters = AutoWidthLabelsGrid(self, -1, size=(1, 1)) self.button_applyparameters = wx.Button(self, -1, "Apply parameters") self.__set_properties() self.__do_layout() self.Bind(wx.grid.EVT_GRID_CMD_RANGE_SELECT, self.onGridRangeSelect, self.grid_parameters) self.Bind(wx.grid.EVT_GRID_CMD_CELL_RIGHT_CLICK, self.onCellRightClick, self.grid_parameters) self.Bind(wx.grid.EVT_GRID_CMD_EDITOR_SHOWN, self.onEditorShown, self.grid_parameters) self.Bind(wx.grid.EVT_GRID_CMD_CELL_LEFT_CLICK, self.onCellLeftClick, self.grid_parameters) self.Bind(wx.grid.EVT_GRID_CMD_CELL_CHANGE, self.onCellChange, self.grid_parameters) self.Bind(wx.EVT_BUTTON, self.onApplyParameters, self.button_applyparameters) # end wxGlade self.__customProperties() return
def __init__(self, *args, **kwds): PDFPanel.__init__(self) kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.notebook_phase = wx.Notebook(self, -1, style=0) self.notebook_phase_pane_Configure = PhaseConfigurePanel(self.notebook_phase, -1) self.notebook_phase_pane_Constraints = PhaseConstraintsPanel(self.notebook_phase, -1) self.notebook_phase_pane_Results = PhaseResultsPanel(self.notebook_phase, -1) self.__set_properties() self.__do_layout() self.notebook_phase.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.onNotebookPageChanged ) self.notebook_phase.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self.onNotebookPageChanging ) self.configuration = None self.constraints = {} self.results = None self.mainFrame = None self.focusedId = 0
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: AddPhasePanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.labelOpenPhase = wx.StaticText(self, -1, "Load a structure from file.") self.buttonOpen = wx.Button(self, wx.ID_OPEN, "Open") self.static_line_5 = wx.StaticLine(self, -1) self.labelCreatePhase = wx.StaticText(self, -1, "Create a structure from scratch.") self.buttonNew = wx.Button(self, wx.ID_NEW, "New") self.static_line_6 = wx.StaticLine(self, -1) self.buttonCancel = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.onOpen, id=wx.ID_OPEN) self.Bind(wx.EVT_BUTTON, self.onNew, id=wx.ID_NEW) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: DopingSeriesPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.instructionsLabel = wx.StaticText( self, -1, "Select a fit from the tree on the left then add datasets and assign\ndoping elements and values below. If you have not set up a fit to be\nthe template for the series, hit cancel and rerun this macro once a\nfit has been created." ) self.labelBaseElement = wx.StaticText(self, -1, "Base element") self.textCtrlBaseElement = wx.TextCtrl(self, -1, "") self.labelDopant = wx.StaticText(self, -1, "Dopant") self.textCtrlDopant = wx.TextCtrl(self, -1, "") self.listCtrlFiles = AutoWidthListCtrl( self, -1, style=wx.LC_REPORT | wx.LC_EDIT_LABELS | wx.SUNKEN_BORDER) self.buttonUp = wx.BitmapButton(self, -1, wx.NullBitmap) self.buttonDown = wx.BitmapButton(self, -1, wx.NullBitmap) self.buttonAdd = wx.Button(self, wx.ID_ADD, "Add") self.buttonDelete = wx.Button(self, wx.ID_DELETE, "Delete") self.static_line_1 = wx.StaticLine(self, -1) self.goButton = wx.Button(self, wx.ID_OK, "OK") self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_LIST_COL_CLICK, self.onColClick, self.listCtrlFiles) self.Bind(wx.EVT_LIST_END_LABEL_EDIT, self.onEndLabelEdit, self.listCtrlFiles) self.Bind(wx.EVT_BUTTON, self.onUp, self.buttonUp) self.Bind(wx.EVT_BUTTON, self.onDown, self.buttonDown) self.Bind(wx.EVT_BUTTON, self.onAdd, id=wx.ID_ADD) self.Bind(wx.EVT_BUTTON, self.onDelete, id=wx.ID_DELETE) self.Bind(wx.EVT_BUTTON, self.onOK, id=wx.ID_OK) self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) # end wxGlade self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) kwds["style"] = wx.DEFAULT_DIALOG_STYLE wx.Dialog.__init__(self, *args, **kwds) self.sizer_2_staticbox = wx.StaticBox(self, -1, "Bond Angle Calculation") self.instructionsLabel = wx.StaticText(self, -1, "Calculate the angle defined by three atoms.") self.atomsLabel = wx.StaticText(self, -1, "Atom Indices") self.aSpinCtrl = wx.SpinCtrl(self, -1, "1", min=1, max=1) self.bSpinCtrl = wx.SpinCtrl(self, -1, "1", min=1, max=1) self.cSpinCtrl = wx.SpinCtrl(self, -1, "1", min=1, max=1) self.static_line_1 = wx.StaticLine(self, -1) self.cancelButton = wx.Button(self, wx.ID_CANCEL, "Cancel") self.okButton = wx.Button(self, wx.ID_OK, "OK") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_BUTTON, self.onCancel, id=wx.ID_CANCEL) self.Bind(wx.EVT_BUTTON, self.onOk, id=wx.ID_OK) self.Bind(wx.EVT_SPINCTRL, self.onSpin, self.aSpinCtrl) self.Bind(wx.EVT_SPINCTRL, self.onSpin, self.bSpinCtrl) self.Bind(wx.EVT_SPINCTRL, self.onSpin, self.cSpinCtrl) self.__customProperties()
def __init__(self, *args, **kwds): PDFPanel.__init__(self) wx.Panel.__init__(self, *args, **kwds)