This section describes a set of miscellaneous widgets in the ABAQUS GUI Toolkit that you can use in your applications. The following topics are covered:
The FXHorizontalSeparator widget and the FXVerticalSeparator widget provide a visual separator to allow separating elements in a GUI. The ABAQUS GUI Toolkit also includes a FXMenuSeparator widget that you can use to separate items in a menu pane. For example,
FXLabel(parent, 'This is a label above an FXHorizontalSeparator') FXHorizontalSeparator(parent) FXLabel(parent, 'This is a label below an FXHorizontalSeparator')
The AFXNote widget provides a convenient way to display notes or warnings in a dialog box. AFXNote displays either the word “Note” or the word “Warning” in a bold font. AFXNote also aligns messages that contain more than one line. For example,
AFXNote(parent, 'This is an AFXNote information note\nthat wraps on two lines.') AFXNote(parent, 'This is an AFXNote warning note!', NOTE_WARNING)
The AFXProgressBar widget provides feedback during a process that takes a long time to complete. You can use several different modes with a progress bar. For example,
pb = AFXProgressBar(parent, keyword, tgt, LAYOUT_FIX_HEIGHT|LAYOUT_FIX_WIDTH| FRAME_SUNKEN|FRAME_THICK|AFXPROGRESSBAR_SCANNER, 0, 0, 200, 25) pb.setTotal(100) pb.setProgress(50)