14 def __init__(self, parent, width, height):
19 self.fExit.SetCommand(
'TPython::Exec( "raise SystemExit" )')
29 self.fNumber.Connect(
"ValueSet(Long_t)",
"TPyDispatcher", self.fLabelDispatch,
"Dispatch()")
30 self.fNumber.GetNumberEntry().Connect(
"ReturnPressed()",
"TPyDispatcher", self.fLabelDispatch,
"Dispatch()")
38 self.SetWindowName(
"Number Entry")
40 self.Resize(self.GetDefaultSize())
47 self.fLabel.SetText(
ROOT.Form(
"%d" % self.fNumber.GetNumberEntry().GetIntNumber()))
51if __name__ ==
"__main__":
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.