4 def __init__( self, parent, width, height ):
5 TGMainFrame.__init__( self, parent, width, height )
9 self.fExit.SetCommand(
'TPython::Exec( "raise SystemExit" )' )
11 kLHintsExpandX, 4, 4, 4, 4 ) )
15 TGNumberFormat.kNEANonNegative,
16 TGNumberFormat.kNELLimitMinMax,
20 "ValueSet(Long_t)",
"TPyDispatcher", self.
fLabelDispatch,
"Dispatch()" )
21 self.fNumber.GetNumberEntry().
Connect(
22 "ReturnPressed()",
"TPyDispatcher", self.
fLabelDispatch,
"Dispatch()" )
39 self.fLabel.SetText(
Form(
"%d" % self.fNumber.GetNumberEntry().GetIntNumber() ) )
43 if __name__ ==
'__main__':
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapSubwindows()
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
char * Form(const char *fmt,...)
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.