search for: btn1

Displaying 2 results from an estimated 2 matches for "btn1".

Did you mean: btn
2011 Dec 19
1
Speed issue when writing to RGui console from tcl/tk GUI
...buttons. Clicking the "slow" buttons just calls timings directly, and takes several seconds to run. However, if we request input from the console, via readline (the "fast" button) then the timing drops back down to hundredths of a second. library(tcltk) win <- tktoplevel() btn1 <- ttkbutton(win, text = "slow", command = function() timings()) btn2 <- ttkbutton(win, text = "fast", command = function() {readline("Press ENTER > "); timings()}) tkpack(btn1, btn2) I've only observed this slow behaviour with RGui on Windows (XP) - it d...
2004 Nov 22
1
Layout Issue ...
...ALL, 2 ) @topSizer.add( createButtonSizer(), 1, Wx::ALIGN_CENTER_HORIZONTAL|Wx::ALL, 2 ) @panel.set_sizer( @topSizer ) @topSizer.fit( @frame ) @frame.show self.main_loop end def createButtonSizer @buttonSizer = Wx::BoxSizer.new( Wx::HORIZONTAL ) @btn1 = Wx::Button.new(@panel, -1, ''Button 1'') @buttonSizer.add(@btn1, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @btn2 = Wx::Button.new(@panel, -1, ''Print'') @buttonSizer.add(@btn2, 0, Wx::ALIGN_CENTER_VERTICAL|Wx::ALL, 2) @buttonSi...