Displaying 9 results from an estimated 9 matches for "keyword_constructor".
Did you mean:
keyword_constructors
2006 Dec 02
0
[771] trunk/wxsugar/lib/wx_sugar/keyword_constructors.rb: Fix typo in error message
...#ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[771] trunk/wxsugar/lib/wx_sugar/keyword_constructors.rb: Fix typo in error message</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>771</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-12-02 06:44:32 -0500 (Sat, 02...
2007 Mar 22
0
[912] trunk/wxsugar/lib: Overview documentation moved to lib/wx_sugar.rb
...;'wx''
-# # OR ... old non-SWIG beta veresion
-# require ''wxruby''
-#
-# require ''wx_sugar/all''
-# ...
-#
-# If you only want to load specific WxSugar behaviours, just +require+
-# the desired extensions only
-#
-# require ''wx_sugar/keyword_constructors''
-# require ''wx_sugar/acccessors''
-#
-# == Overview of extensions
-#
-# The following are the WxSugar behaviours that are available. In
-# general you require one of these extensions, it modifies the behaviour
-# of all relevant Wx classes, and affects all new instance...
2006 Dec 03
0
[773] trunk/wxsugar/lib/wx_sugar/all.rb: Updated overview, deprecated itemdata
...just +require+ the
-# desired extensions only
</del><ins>+# If you only want to load specific WxSugar behaviours, just +require+
+# the desired extensions only
</ins><span class="cx"> #
</span><span class="cx"> # require ''wx_sugar/keyword_constructors''
</span><span class="cx"> # require ''wx_sugar/acccessors''
</span><span class="cx"> #
</span><span class="cx"> # == Overview of extensions
</span><ins>+#
+# The following are the WxSugar behav...
2007 Jan 06
0
[836] trunk/wxsugar/lib/wx_sugar: Make :validator and :name sugary ctor args work for Controls classes
...sugary ctor args work for Controls classes</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwxsugarlibwx_sugarkeyword_classesrb">trunk/wxsugar/lib/wx_sugar/keyword_classes.rb</a></li>
<li><a href="#trunkwxsugarlibwx_sugarkeyword_constructorsrb">trunk/wxsugar/lib/wx_sugar/keyword_constructors.rb</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxsugarlibwx_sugarkeyword_classesrb"></a>
<div class="modfile"><h4>Modifie...
2007 Apr 03
0
[945] trunk/wxsugar/lib/wx_sugar.rb: Add note about enumerable_controls, reorder list of extensions
...gt;<span class="cx"> # [accessors]
</span><span class="cx"> # Provide ruby-style getters, setters and question-mark methods
</span><del>-# [delayed_constructors]
-# Required by +layout+, of limited independent interest
</del><ins>+# [keyword_constructors]
+# Use keyword-style hash arguments to construct widgets
</ins><span class="cx"> # [event_connector]
</span><span class="cx"> # Neater syntax for connecting event listeners
</span><del>-# [keyword_constructors]
-# Use keyword-style has...
2006 Sep 07
2
A little bit of sugar
...#39;'accessors'' : creates ruby-style accessors (foo instead of get_foo,
foo= instead of set_foo, foo? instead of is_foo). If there''s a consensus
that we want to follow WxPython in doing this, I''ll submit a patch that
implements this at the C API level.
* ''keyword_constructors'' : For example, Wx::Button.new(:label => ''press
me''); this extension allows you to avoid typing Wx::DEFAULT_POSITION or
having to remember what order arguments go in ever again. You can mix
positional and keyword arguments (in case you hate the latter, Kevin ;) )...
2006 Nov 29
5
wxSugar control problem
...:Point:
0x690474>, #<Wxruby2::Size:0x6904b0>, 4096, 0, 100, 0]
correct parameters are:
id (Fixnum)
pos (Wxruby2::Point)
size (Wxruby2::Size)
style (Fixnum)
id (Fixnum)
pos (Wxruby2::Point)
size (Wxruby2::Size)
style (Fixnum)
min (Fixnum)
max (Fixnum)
initial (Fixnum)
method initialize
in keyword_constructors.rb at line 238
method initialize
in date_picker.rb at line 9
method initialize
in main_window.rb at line 9
method listen
in event_connector.rb at line 125
at top level
in - at line 16
Ruby version: ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]
The SpinCtrl is working fine in the Big Demo, and o...
2007 Feb 20
1
sugar constructor error
I tried out the sugar. The following code crashes:
require ''rubygems''
require ''wx''
require ''wx_sugar/all''
frame = Wx::Frame.new(nil, :title => "Text")
panel = Wx::Panel.new(frame)
With the following error.
0.1.13/lib/wx_sugar/keyword_constructors.rb:244: [BUG] Bus Error
Any ideas?
Micah Martin
8th Light, Inc.
8thlight.com
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Nov 28
2
(no subject)
...ing # Sent paramters: [#, -1, #, #, 4,
-1, #, #, 4096, 0, 100, 0] correct parameters are: id (Fixnum) pos
(Wxruby2::Point) size (Wxruby2::Size) style (Fixnum) id (Fixnum) pos
(Wxruby2::Point) size (Wxruby2::Size) style (Fixnum) min (Fixnum) max
(Fixnum) initial (Fixnum)
method initialize
in keyword_constructors.rb at line 246
method initialize
in date_picker.rb at line 19
method initialize
in main_window.rb at line 9
method listen
in event_connector.rb at line 125
at top level
in - at line 16
Ruby version: ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]
The SpinCtrl is working fine in the e.g. Big Demo,...