コード例 #1
0
 def refresh(self):
     """Refreshes widgets on the panel."""
     phasepanelutils.refreshTextCtrls(self)
     pairs = self.structure.getSelectedPairs()
     self.textCtrlIncludedPairs.SetValue(pairs)
     phasepanelutils.refreshGrid(self)
     self.restrictConstrainedParameters()
     return
コード例 #2
0
 def refresh(self):
     """Refreshes wigets on the panel."""
     # This makes the right thing happen in phasepanelutils. It saves a lot
     # of coding.
     pairs = self.structure.getSelectedPairs()
     self.textCtrlIncludedPairs.SetValue(pairs)
     self.structure = self.results
     phasepanelutils.refreshTextCtrls(self)
     phasepanelutils.refreshGrid(self)
     return
コード例 #3
0
 def refresh(self):
     """Refreshes widgets on the panel."""
     phasepanelutils.refreshTextCtrls(self)
     pairs = self.structure.getSelectedPairs()
     self.textCtrlIncludedPairs.SetValue(pairs)
     phasepanelutils.refreshGrid(self)
     self.restrictConstrainedParameters()
     # wxpython 3.0 on Windows 7 prevents textCtrlA from receiving
     # left-click input focus and can be only focused with a Tab key.
     # This only happens for the first input, the text control behaves
     # normally after receiving focus once.
     # Workaround: do explicit focus here for the first rendering.
     if self.__this_is_first_refresh:
         self.__this_is_first_refresh = False
         focusowner = self.textCtrlA.FindFocus()
         wx.CallAfter(self.textCtrlA.SetFocus)
         if focusowner is not None:
             wx.CallAfter(focusowner.SetFocus)
     return
コード例 #4
0
 def refresh(self):
     """Refreshes widgets on the panel."""
     phasepanelutils.refreshTextCtrls(self)
     pairs = self.structure.getSelectedPairs()
     self.textCtrlIncludedPairs.SetValue(pairs)
     phasepanelutils.refreshGrid(self)
     self.restrictConstrainedParameters()
     # wxpython 3.0 on Windows 7 prevents textCtrlA from receiving
     # left-click input focus and can be only focused with a Tab key.
     # This only happens for the first input, the text control behaves
     # normally after receiving focus once.
     # Workaround: do explicit focus here for the first rendering.
     if self.__this_is_first_refresh:
         self.__this_is_first_refresh = False
         focusowner = self.textCtrlA.FindFocus()
         wx.CallAfter(self.textCtrlA.SetFocus)
         if focusowner is not None:
             wx.CallAfter(focusowner.SetFocus)
     return