Displaying 4 results from an estimated 4 matches for "a_frame".
Did you mean:
_frame
2006 Sep 11
15
ruby method names
Hi
Attached is a patch that adds aliases to the API for methods that look
like attribute accessors. So
a_frame.set_title(''The title'') # currently
a_frame.title = ''The title'' # now an alternative
textctrl.get_value # currently
textctrl.value # now an alternative
Also, C++ methods named ''IsXXX'' are now exposed in ruby with the
alternativ...
2006 Dec 30
0
[812] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Added find_window and descendants methods
...may
+ # optionally be passed to restrict the search to windows of that class
+ # (or its subclasses) only - this can be useful if the search
+ # specification calls methods that are only defined for certain
+ # classes.
+ #
+ # # Example - find a StaticText with a label matching /foo/
+ # a_frame.find_window(Wx::StaticText) { | tx | tx.label =~ /foo/ }
+ def find_window(a_class = Wx::Window, &block)
+ descendants.grep(a_class).detect(&block)
+ end
+
</ins><span class="cx"> # Returns the window''s current size as a two element array
</span>&...
2007 Apr 02
0
[939] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Add has_style? method, allow find_window to work even if C++ method
...p    2007-04-02 18:55:19 UTC (rev 939)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> # # Example - find a StaticText with a label matching /foo/
</span><span class="cx"> # a_frame.find_window(Wx::StaticText) { | tx | tx.label =~ /foo/ }
</span><span class="cx"> def find_window(a_class = Wx::Window, &block)
</span><del>- descendants.grep(a_class).detect(&block)
</del><ins>+ get_descendants.grep(a_class).detect(&...
2006 Dec 18
13
unit testing wxruby GUIs
paul.allton at uk.bnpparibas.com wrote:
> I''m a big fan of automated UI testing (i.e. driving the UI from some
robot API). I appreciate this
> is potentially a whole new project, but does wxwidgets provide a
method of clicking buttons,
> typing into components ... if so, would it be technically possible to
expose this in wxruby.
I like automated UI testing too, but