Method: BWidget_Demo#initialize
- Defined in:
- sample/tkextlib/bwidget/demo.rb
#initialize ⇒ BWidget_Demo
Returns a new instance of BWidget_Demo.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'sample/tkextlib/bwidget/demo.rb', line 29 def initialize TkOption.add('*TitleFrame.l.font', 'helvetica 11 bold italic') root = TkRoot.new(:title=>'BWidget demo') root.withdraw _create Tk::BWidget.place(root, 0, 0, :center) root.deiconify root.raise root.focus(true) root.geometry(root.geometry) end |