Displaying 20 results from an estimated 20000 matches similar to: "Old Samples"
2006 Oct 05
8
samples
What do you think about adding a shebang line to the samples so they can
be launched on linux/mac like you can on windows?
Roy
2006 Aug 24
4
SWIG
I decided to try my hand at hacking SWIG and successfully produced a
patch that fixes the error I demonstrated. I''m not -positive- it''s
correct for all cases but I''ll re-run my version of SWIG over the
library and see how things turn out.
Roy
2011 Mar 17
3
Flexible rbind
Dear All,
I am trying to create a empty structure that I want to fill gradually
through the code.
I want to use something like rbind to create the basic structure first.
I am looking for a possibility to do an rbind where the columns names
dont match fully (but the missing columns can be defaulted to either
zero or n/a) (my actual data has a lot of columns).
Please see the data frames below
I
2005 Sep 18
3
Free
In the dialogs.rb sample, when you click the delete button you get:
C:/RubyDev/wxruby2/samples/dialogs/dialogs.rb:61:in `onButton'':
undefined method
`free'' for #<Wxruby2::Button:0x36474b8> (NoMethodError)
Should all/some wxObjects have a free function? how do we intend to
handle this?
2006 Oct 14
3
Samples
Updated all the sample files to add the shebang line and the require
code we discussed.
I also added the wxRuby copyright notice to all the samples I know I
added (I may have missed some).
Next, how about we rename all the .rbw files to .rb and update bigdemo?
Roy
2006 Apr 18
12
Update on SWIG
SWIG 1.3.29 isn''t going to cut it for us. We''ll have to wait until
1.3.30, unless I can hack together a nasty workaround for a problem with
the object tracking. It seem that each SWIG module gets its own hash
for tracking objects. This means that, for example, you create a find
dialog (in FindReplaceDialog.cpp) events you get from it (from
FindDialogEvent.cpp)
2006 Sep 06
12
Patch to wxWindow.h
This patch fixes background color problems (at least on Windows). It
uses the dreaded ''FIXME''
My plan for next weekend is to try building wxPython from the source to
see how they manage to achieve several things with SWIG that we''re not
(yet) able to. If I''m successful it might lead to wrapping a
significant portion of wxWidgets more correctly than
2005 Aug 19
6
Listbook patch
Small patch to correct spelling of lemonade. Should ask Sean if he
really wanted it to be lemonaid. If not, here''s the patch.
On another note... This sample works! Kudos. It is odd that the
textbox doesn''t scroll. I suppose I may patch that, too.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
2006 Aug 25
3
Patch to wxTextCtrl.rbw
This patch enables the char event and changes the set and kill focus
events to be attached to the correct items
2005 Aug 11
2
Patch file for FileDialog.i
Attached is a patch file for FileDialog.i. It doesn''t work 100% yet
because I haven''t yet figured out how to make it put the ruby
declarations in the right place. If I cut and paste the
rb_define_methods into the right place this works perfectly.
This patch fixes the dialogs.rb multiple select example so that
get_paths and get_filenames returns a ruby array. Note that I
2005 Aug 12
5
Functions that return objects...
I was investigating why the find dialog causes an error when you close
it. It seems that wxRuby2 is returning a new ruby object when you call
Event.get_dialog. This causes some big problems when you''re expecting
you''re going to get back the same ruby pointer that you put in. In a
brief check over the source I don''t see anything that preserves the
original ruby
2005 Oct 06
9
Grid.GetTextExtent
Wow. Look what SWIG does to GetTextExtent in Grid.cpp:
void SwigDirector_wxGrid::GetTextExtent(wxString const &string, int *x,
int *y, int *descent, int *externalLeading, wxFont const *font) const {
...
if (swig_get_up()) {
wxWindow::GetTextExtent(string,x,y,descent,externalLeading,font);
return;
}
obj0 = rb_str_new2((const char *)(&string)->mb_str());
2005 Sep 27
5
WxRuby + Ruby/SDL
Hi,
I am making a game with Ruby/SDL and have run into trouble finding a GUI
to cooperate. I have seen numerous examples of wxWindows in combination
with SDL (wxPython and PyGame), but have yet to be able to do it in ruby
(PyGame example: http://wiki.wxpython.org/index.cgi/IntegratingPyGame).
I am not very good with wxRuby as this is my first time using it and
thought some more knowledgable users
2005 Aug 16
4
wxLayoutContraints.h
The file swig/classes/includes/wxLayoutConstraints.h may need to be
updated. It''s missing centreX and centreY from the list of
wxIndividualLayoutConstraints.
I''d send a patch in but I''m wondering if this file just needs to be
regenerated from scratch.
Roy
2005 Sep 11
6
Patch to wxNotebook.rbw
Patch to the notebook example to remove the call to the deprecated
NotebookSizer. It appears to work just fine without the sizer.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Aug 07
4
Reswigged link error
After reswigging I get link problems:
Functions.obj : error LNK2001: unresolved external symbol _mWxruby2
Mac.obj : error LNK2001: unresolved external symbol _mWxruby2
Events.obj : error LNK2001: unresolved external symbol _mWxruby2
...
Which is intriguing since it seems to be defined in wx.cpp
2006 Sep 17
3
ruby-lang.org
How''d we get listed on the top page of projects for Ruby? (See right
side below ''Top Ruby Projects'')
:)
Roy
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb
1) Message box scrolls properly now
2) Blank lines are skipped when adding pizzas and ice cream
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2005 Jul 16
28
wxruby (was: Some questions)
Roy Sutton wrote (on the FreeRIDE list):
> Really? That''s interesting. I haven''t checked out WxRuby but I would
> be much happier using something that interfaces to the underlying
> operating system''s widgets.
As a member (and former leader) of the wxruby team, I thought I would
share the state of the wxruby world.
The current release is 0.6, and it has
2006 Oct 19
4
wxPen.h
wxPen.h #ifdefs out the stipple constructor for GTK but Pen.i %ignores
the stipple functions (GetStipple, SetStipple). Shouldn''t we follow the
same path so we get GetStipple and SetStipple on Mac and Windows? I
didn''t attach a patch. Too tired. Hopefully someone else can whip that
into shape. :)
Roy