From alex at pressure.to Mon Feb 2 09:46:17 2009 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Feb 2009 14:46:17 +0000 Subject: [wxruby-users] Ruby 1.9.1, WxRuby, and Windows In-Reply-To: References: Message-ID: <49870739.5020501@pressure.to> Hi Jamal Jamal Mazrui wrote: > I'm not on the general ruby-talk list at present, and have some questions > that, somewhat surprisingly, I could not find answers to, despite much web > searching. > > Is the official version of Ruby 1.9.1 delayed? It's now released: http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/35e963933f9d0b1a# > Does WxRuby work with Ruby 1.9.1 preview? I thought I read a message > on this list that said this was working. It may well be the case > with other operating systems, but I have not been able to get it to > work with the binary version of Ruby 1.9.1 preview available from the > ruby-lang site. The wxRuby code base is fully compatible with ruby 1.9.1 and works well. The main shortcoming is the lack of binaries for Windows - both for Ruby itself and wxRuby. We'll be offering at least a MingW version of wxRuby 2.0 for Ruby 1.9. best alex From lists at ruby-forum.com Mon Feb 2 15:16:58 2009 From: lists at ruby-forum.com (Mahlon Smith) Date: Mon, 2 Feb 2009 21:16:58 +0100 Subject: [wxruby-users] Proper way to use SplashScreen? Message-ID: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> Hey all. I'm using Wx 1.9.9 on ruby 1.8.6. I can't seem to instantiate a SplashScreen without causing a SystemStackError -- am I doing something wrong? This code is in my App's on_init() method: splash_img = Wx::Bitmap.new( '/tmp/image.png', Wx::BITMAP_TYPE_PNG ) Wx::SplashScreen.new( splash_img, Wx::SPLASH_CENTRE_ON_SCREEN | Wx::SPLASH_TIMEOUT, 3000, nil, -1 ) ... which produces the following, after the splash times out. ./test:138:in `show': stack level too deep (SystemStackError) from ./test:138:in `main_loop' from ./test:138 Thanks for any insight. -- Posted via http://www.ruby-forum.com/. From fabio.petrucci at gmail.com Mon Feb 2 16:10:20 2009 From: fabio.petrucci at gmail.com (Fabio Petrucci) Date: Mon, 2 Feb 2009 22:10:20 +0100 Subject: [wxruby-users] Proper way to use SplashScreen? In-Reply-To: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> References: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> Message-ID: I've got the same error and resolved using SPLASH_NO_TIMEOUT, but i don't know why :-/ cheers, bio. On Mon, Feb 2, 2009 at 9:16 PM, Mahlon Smith wrote: > > Hey all. I'm using Wx 1.9.9 on ruby 1.8.6. I can't seem to instantiate > a SplashScreen without causing a SystemStackError -- am I doing > something wrong? > > This code is in my App's on_init() method: > > splash_img = Wx::Bitmap.new( '/tmp/image.png', Wx::BITMAP_TYPE_PNG ) > Wx::SplashScreen.new( splash_img, > Wx::SPLASH_CENTRE_ON_SCREEN | Wx::SPLASH_TIMEOUT, > 3000, nil, -1 ) > > ... which produces the following, after the splash times out. > > ./test:138:in `show': stack level too deep (SystemStackError) > from ./test:138:in `main_loop' > from ./test:138 > > > Thanks for any insight. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Mon Feb 2 16:33:27 2009 From: alex at pressure.to (Alex Fenton) Date: Mon, 02 Feb 2009 21:33:27 +0000 Subject: [wxruby-users] Proper way to use SplashScreen? In-Reply-To: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> References: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> Message-ID: <498766A7.30502@pressure.to> Mahlon Smith wrote: > Hey all. I'm using Wx 1.9.9 on ruby 1.8.6. I can't seem to instantiate > a SplashScreen without causing a SystemStackError -- am I doing > something wrong? It's a bug, sorry. Thanks for the report and sample code. It's fixed by this patch: http://rubyforge.org/pipermail/wxruby-svn-commit/2009-February/000847.html alex From lists at ruby-forum.com Tue Feb 3 13:09:48 2009 From: lists at ruby-forum.com (Mahlon Smith) Date: Tue, 3 Feb 2009 19:09:48 +0100 Subject: [wxruby-users] Proper way to use SplashScreen? In-Reply-To: <498766A7.30502@pressure.to> References: <4e9451eabcedb17da1df99f98a90d1ac@ruby-forum.com> <498766A7.30502@pressure.to> Message-ID: <2e94836e4775826e282775da264ed125@ruby-forum.com> Alex Fenton wrote: > > It's a bug, sorry. Thanks for the report and sample code. It's fixed by > this patch: Awesome. Thanks for the speedy reply, Alex! -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 4 09:55:13 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 04 Feb 2009 14:55:13 +0000 Subject: [wxruby-users] Control Characters In-Reply-To: <49833733.2000508@pressure.to> References: <1908c1638028a3c1adff82cb596cc1e6@ruby-forum.com> <49824CAE.5010405@pressure.to> <49833733.2000508@pressure.to> Message-ID: <4989AC51.5000908@pressure.to> Alex Fenton wrote: > Alexander Hawley wrote: >> # string = "foo\x0boo" >> > > Embedded NUL characters. At the moment the wxRuby Ruby->C++ conversion > for String relies on C conventions - ie that the NUL character > terminates a string. So although both Ruby and wxWidgets permit > Strings with embedded NUL, they get truncated in conversion. I had a closer look at this. We can tweak the wrappings so that embedded NUL characters are preserved as they are passed between Ruby and wxWidgets. However, the wxWidgets wrapping around Scintilla makes the assumption that strings are terminated by NUL - so, even a NUL character is entered, it can't be retrieved. See http://lists.wxwidgets.org/pipermail/wxpython-users/2004-September/031993.html I had a look at adding special methods to bypass this problem, but no joy yet. What I suggest as a workaround is gsub-bing the string as it goes in and out, and replacing NUL with the unicode character symbol-for-null. string.gsub(/\x00/, "\xE2\x90\x80") By the way, other control characters are displayed as you describe in Scite. I've filed a bug to track this: http://rubyforge.org/tracker/index.php?func=detail&aid=23814&group_id=35&atid=218 alex From lists at ruby-forum.com Wed Feb 4 12:25:04 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Wed, 4 Feb 2009 18:25:04 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: Message-ID: <5b35a46ee572571225b9350106e3405e@ruby-forum.com> Still having a problem with this. Anyone out there that can point me in the right direction? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Feb 4 12:32:44 2009 From: lists at ruby-forum.com (Alexander Hawley) Date: Wed, 4 Feb 2009 18:32:44 +0100 Subject: [wxruby-users] Control Characters In-Reply-To: <4989AC51.5000908@pressure.to> References: <1908c1638028a3c1adff82cb596cc1e6@ruby-forum.com> <49824CAE.5010405@pressure.to> <49833733.2000508@pressure.to> <4989AC51.5000908@pressure.to> Message-ID: <6235c12557d777beaa3cb9ded4fc5bea@ruby-forum.com> > However, the wxWidgets wrapping around Scintilla makes the assumption that strings are terminated by NUL - so, even a NUL character is entered, it can't be retrieved. A dependency/assumption in how wxWidgets uses C, I suspect. Scite must not have the same C dependencies/assumptions as wxWidgets. It can display most control characters okay. > What I suggest as a workaround is gsub-bing the string as it goes in and out, and replacing NUL with the unicode character symbol-for-null. Already there. I'm already doing a string search of existing not safe for UTF-8 characters. > By the way, other control characters are displayed as you describe in Scite. Yup. I got the EOL display, whitespace display, control display methods working nicely. Thanks for all the work looking into it. And the formal bug. -AH -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 4 12:35:08 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 04 Feb 2009 17:35:08 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <5b35a46ee572571225b9350106e3405e@ruby-forum.com> References: <5b35a46ee572571225b9350106e3405e@ruby-forum.com> Message-ID: <4989D1CC.1000001@pressure.to> Hi Rooby Nooby wrote: > Still having a problem with this. Anyone out there that can point me in > the right direction? > I'm afraid I don't have a AMD-64 machine I can test on. We're in the process of putting out a new wxRuby release which will include an AMD-64 binary gem, and I hope this will resolve the issue. Mario - please could you have a look at the original issue and verify it's resolved as you do the AMD-64 build? Thanks: http://www.ruby-forum.com/topic/176654#new alex From lists at ruby-forum.com Wed Feb 4 12:46:22 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Wed, 4 Feb 2009 18:46:22 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <4989D1CC.1000001@pressure.to> References: <5b35a46ee572571225b9350106e3405e@ruby-forum.com> <4989D1CC.1000001@pressure.to> Message-ID: Alex Many thanks for that quick response. Although I have an Intel Core2duo I guess the AMD-64 build is essentially the same thing? -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 4 12:52:01 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 04 Feb 2009 17:52:01 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <5b35a46ee572571225b9350106e3405e@ruby-forum.com> <4989D1CC.1000001@pressure.to> Message-ID: <4989D5C1.8020403@pressure.to> Rooby Nooby wrote: > Many thanks for that quick response. Although I have an Intel Core2duo I > guess the AMD-64 build is essentially the same thing? I believe so: http://www.mail-archive.com/debian-amd64 at lists.debian.org/msg25169.html a From alex at pressure.to Wed Feb 4 13:27:11 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 04 Feb 2009 18:27:11 +0000 Subject: [wxruby-users] wxRuby Release Candidate 1 (or, wxRuby 1.9.10) Message-ID: <4989DDFF.2090708@pressure.to> Hi I'm pleased to announce the release of wxRuby 2.0 Release Candidate 1 (officially, wxRuby 1.9.10, to play safe with RubyGems versioning). The major effort in this release has been fixing outstanding bugs. All of the bugs and feature requests on the tracker have been reviewed, and, where possible within wxRuby, have been fixed and closed - getting on for 30 items. There are also many other fixes and improvements based on reports on the mailing lists. We're finding that wxRuby's now really solid and stable, and we hope you will too. But if not, we want to hear. == WHAT'S NEW == - Major rework of DataObject classes, allowing exchange of arbitrary data with external applications via drag'n'drop and clipboard - Added TreeBook and ToolBook GUI classes - Added Display, MouseState and AUIDockArt helper classes - Many fixes to existing classes, methods and memory management - Improved support for MingW and Ruby 1.9 - Additions and corrections to samples and docs == INSTALLATION == gem install wxruby Note that, if on Linux, you will need your distro's wxwidgets-2.8 packages installed. Currently, binary builds are available for Ruby 1.8 on Linux, Windows and OS X, and 1.9 on Linux and OS X. Additional builds for AMD-64 and MingW (including 1.9) should be available in due course. == TODO == Before official 2.0, we will: - Verify and fix functioning of DataObjects on Windows - Update README and INSTALLATION docs == THANKS == Included in this release are patches from Chauk-Mean Proum, Mario Steele and Pascal Hurni. Chauk-Mean has provided many valuable additions to wxRuby, and we're pleased that he recently agreed to join the "official" wxRuby development team. Also, a big thank-you to everyone who reported bugs either on the mailing list or the tracker. With a library as large as wxRuby, we rely on you to help us improve it to the standard it's now reached. Keep it up! cheers alex From lists at ruby-forum.com Wed Feb 4 19:07:52 2009 From: lists at ruby-forum.com (Ridge Mcghee) Date: Thu, 5 Feb 2009 01:07:52 +0100 Subject: [wxruby-users] wxRuby - Segmentation fault Message-ID: # Windows XP Professional + SP3 # ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] # wxruby (1.9.9) If you can tell me how to update to 1.9.10, I'd be happy to run this and a few other tests. Also, if I should be posting bugs somewhere else, please let me know. Here's a bit of code to reproduce a seg fault: ----------------------------------------------------------- require 'wx' include Wx class MyGui < App def on_init frame = Frame.new(nil, -1, 'Seg fault') panel = Panel.new(frame, -1) 500.times { Window.new(frame) } frame.show() end end MyGui.new.main_loop() ----------------------------------------------------------- If the number is 64 (instead of 500), it doesn't seg fault (on my system). Keep up the good work Alex. I'm looking forward to the new release. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Feb 4 19:21:05 2009 From: lists at ruby-forum.com (Ridge Mcghee) Date: Thu, 5 Feb 2009 01:21:05 +0100 Subject: [wxruby-users] wxRuby - Segmentation fault In-Reply-To: References: Message-ID: Ridge Mcghee wrote: > # Windows XP Professional + SP3 > # ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > # wxruby (1.9.9) > > If you can tell me how to update to 1.9.10, I'd be happy to run > this and a few other tests. Also, if I should be posting bugs > somewhere else, please let me know. > > Here's a bit of code to reproduce a seg fault: > ----------------------------------------------------------- > require 'wx' > include Wx > > class MyGui < App > def on_init > frame = Frame.new(nil, -1, 'Seg fault') > panel = Panel.new(frame, -1) > > 500.times { Window.new(frame) } > > frame.show() > end > end > > MyGui.new.main_loop() > ----------------------------------------------------------- > > If the number is 64 (instead of 500), it doesn't seg fault > (on my system). > > Keep up the good work Alex. I'm looking forward to the > new release. I should note that: "gem install wxruby" still points to 1.9.9 (as of 2009-Feb-04 16:00:00 PST) "gem install wxruby2" doesn't work (and probably isn't supposed to) -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 4 22:01:38 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Feb 2009 03:01:38 +0000 Subject: [wxruby-users] wxRuby - Segmentation fault In-Reply-To: References: Message-ID: <498A5692.10100@pressure.to> Ridge Mcghee wrote: > # Windows XP Professional + SP3 > # ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > # wxruby (1.9.9) > > If you can tell me how to update to 1.9.10, I'd be happy to run > this and a few other tests. It can sometimes take a little time for the gem indexes to update, but it seems to have happened now: Abaddon:~ alex$ sudo gem install wxruby Successfully installed wxruby-1.9.10-universal-darwin-9 1 gem installed Abaddon:~ alex$ ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] As an alternative, you can always download the gem file from http://rubyforge.org/frs/?group_id=35 and then do "gem install " to install from a local file. > Also, if I should be posting bugs > somewhere else, please let me know. > Here is fine. If you have a rubyforge account, you can instead post bugs direct to the rubyforge tracker http://rubyforge.org/tracker/?atid=218&group_id=35 which helps us track them. Being logged in when filing a bug ensures we can get further information if needed. > Here's a bit of code to reproduce a seg fault: > ----------------------------------------------------------- > require 'wx' > include Wx > > class MyGui < App > def on_init > frame = Frame.new(nil, -1, 'Seg fault') > panel = Panel.new(frame, -1) > > 500.times { Window.new(frame) } > > frame.show() > end > end > > MyGui.new.main_loop() > ----------------------------------------------------------- > Thanks for the sample code. It works fine for me on OS X; I'll try it on Windows when I get a chance. alex From mario at ruby-im.net Thu Feb 5 01:36:47 2009 From: mario at ruby-im.net (Mario Steele) Date: Thu, 5 Feb 2009 00:36:47 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: Message-ID: Hello Rooby, If I may inquire, when you installed the 1.9.8 Build of wxRuby, did you also install the associated wxWidgets packages needed from your Distro's repositories? I just want to make sure what kind of linking problem we have here, since it's coming up with an Init_wxMediaCtrl undefined symbol error. Also, if you did install from your Distro's repositories, what version of the wxWidgets libraries are installed? Thanks, Mario On Sat, Jan 24, 2009 at 11:14 AM, Rooby Nooby wrote: > Hi. I'm desperately trying to learn Ruby and wxWidgets, on my 64-bit > Linux machine. However when I try to run any of the samples from the > command line I get the following error message: > > ruby: symbol lookup error: > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/lib/wxruby2.so: > undefined symbol: Init_wxMediaCtrl > > > I'd be very grateful for any help. Many thanks in advance! > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Feb 5 06:57:01 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Thu, 5 Feb 2009 12:57:01 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: Message-ID: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> > If I may inquire, when you installed the 1.9.8 Build of wxRuby, did you > also install the associated wxWidgets packages needed from your Distro's > repositories? > Also, if you did install from your Distro's repositories, what version > of the wxWidgets libraries are installed? Yes I did install the associated wxWidgets packages from my Distro's repositories (which is the latest Fedora 10). wxWidgets version 2.8.9 (GTK2 port of the wxWidgets GUI library) etc. I've been trying to fix things at my end by uninstalling and reinstalling etc and think I may have messed things up a little bit beyond repair. I may just end up reinstalling Fedora and revert to the 32-bit version for an easy life... Thanks for your help, R. -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Thu Feb 5 07:10:28 2009 From: mario at ruby-im.net (Mario Steele) Date: Thu, 5 Feb 2009 06:10:28 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> Message-ID: Well, before you go and do that, I have just posted the 2.0 RC1 64bit gem for wxRuby, and if you would like, I can send you the gem, for you to try, and see if it will work or not. It should work, as I didn't have any problems. However, I'm running on Ubuntu, and I make my builds on Ubuntu as well. On Thu, Feb 5, 2009 at 5:57 AM, Rooby Nooby wrote: > > If I may inquire, when you installed the 1.9.8 Build of wxRuby, did you > > also install the associated wxWidgets packages needed from your Distro's > > repositories? > > Also, if you did install from your Distro's repositories, what version > > of the wxWidgets libraries are installed? > > Yes I did install the associated wxWidgets packages from my Distro's > repositories (which is the latest Fedora 10). wxWidgets version 2.8.9 > (GTK2 port of the wxWidgets GUI library) etc. > > I've been trying to fix things at my end by uninstalling and > reinstalling etc and think I may have messed things up a little bit > beyond repair. I may just end up reinstalling Fedora and revert to the > 32-bit version for an easy life... > > Thanks for your help, R. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Feb 5 07:23:02 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 13:23:02 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: Message-ID: <0d80b2e7692800cb346bd614d1d0dc2b@ruby-forum.com> I'm having a similar problem: (Which I think could be similar to http://www.ruby-forum.com/topic/165803 although I would like to avoid building from source if necessary) Error message produced when trying to run some of the example files (eg minimal.rb) No debug: $ ruby -rubygems minimal.rb ruby: symbol lookup error: /var/lib/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/lib/wxruby2.so: undefined symbol: Init_wxMediaCtrl With debug enabled: /var/lib/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/samples/minimal$ ruby -rubygems -debug minimal.rb Exception `LoadError' at /usr/lib/ruby/1.8/rubygems.rb:772 - no such file to load -- rubygems/defaults/operating_system Exception `NameError' at -e:1 - undefined local variable or method `bug' for main:Object -e:1: undefined local variable or method `bug' for main:Object (NameError) Any help will be greatly appreciated, thanks, Mark Debugging info: $ lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:languages-3.2-amd64:languages-3.2-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:printing-3.2-amd64:printing-3.2-noarch:qt4-3.1-amd64:qt4-3.1-noarch Distributor ID: Ubuntu Description: Ubuntu 8.10 Release: 8.10 Codename: intrepid dpkg -l | egrep 'wx|ruby|swig' ii libart2-ruby1.8 0.17.0~rc1-6ubuntu1 Libart 2 bindings for the Ruby language ii libatk1-ruby1.8 0.17.0~rc1-6ubuntu1 ATK bindings for the Ruby language ii libcairo-ruby1.8 1.5.1-1+lenny1 Cairo bindings for the Ruby language ii libdrb-ruby 4.2 transitional dummy package ii liberb-ruby 4.2 transitional dummy package ii libgdk-pixbuf2-ruby1.8 0.17.0~rc1-6ubuntu1 Gdk-Pixbuf 2 bindings for the Ruby language ii libgemplugin-ruby1.8 0.2.3-1ubuntu1 Gem Based Plugin System ii libglib2-ruby1.8 0.17.0~rc1-6ubuntu1 Glib 2 bindings for the Ruby language ii libgnome2-ruby 0.17.0~rc1-6ubuntu1 GNOME 2 bindings for the Ruby language ii libgnome2-ruby1.8 0.17.0~rc1-6ubuntu1 GNOME 2 bindings for the Ruby language ii libgnomecanvas2-ruby1.8 0.17.0~rc1-6ubuntu1 GNOME Canvas 2 bindings for the Ruby languag ii libgtk2-ruby1.8 0.17.0~rc1-6ubuntu1 GTK+ bindings for the Ruby language ii libpango1-ruby1.8 0.17.0~rc1-6ubuntu1 Pango bindings for the Ruby language ii libreadline-ruby1.8 1.8.7.72-1ubuntu0.1 Readline interface for Ruby 1.8 ii libruby 4.2 Libraries necessary to run Ruby 1.8.x ii libruby1.8 1.8.7.72-1ubuntu0.1 Libraries necessary to run Ruby 1.8 ii libwxbase2.4-1 2.4.5.1.1ubuntu1 wxBase library (runtime) - non-GUI support c ii libwxbase2.4-dev 2.4.5.1.1ubuntu1 wxBase library (development) - non-GUI suppo ii libwxbase2.6-0 2.6.3.2.2-2ubuntu5 wxBase library (runtime) - non-GUI support c ii libwxbase2.8-0 2.8.8.0-0ubuntu2 wxBase library (runtime) - non-GUI support c ii libwxgtk2.4-1 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (GT ii libwxgtk2.4-dev 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (GT ii libwxgtk2.6-0 2.6.3.2.2-2ubuntu5 wxWidgets Cross-platform C++ GUI toolkit (GT ii libwxgtk2.8-0 2.8.8.0-0ubuntu2 wxWidgets Cross-platform C++ GUI toolkit (GT ii libyaml-ruby 4.2 transitional dummy package ii libzlib-ruby 4.2 transitional dummy package ii python-pythoncard 0.8.1-8.1ubuntu1 wxPython-based GUI construction framework (u ii python-wxgtk2.4 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (wx ii python-wxgtk2.6 2.6.3.2.2-2ubuntu5 wxWidgets Cross-platform C++ GUI toolkit (wx ii python-wxgtk2.8 2.8.8.0-0ubuntu2 wxWidgets Cross-platform C++ GUI toolkit (wx ii python-wxversion 2.8.8.0-0ubuntu2 wxWidgets Cross-platform C++ GUI toolkit (wx ii rdoc 4.2 Generate documentation from ruby source file ii ruby 4.2 An interpreter of object-oriented scripting ii ruby-dev 4.2 Header files for compiling extension modules ii ruby1.8 1.8.7.72-1ubuntu0.1 Interpreter of object-oriented scripting lan ii ruby1.8-dev 1.8.7.72-1ubuntu0.1 Header files for compiling extension modules ii rubygems 1.3.0~RC1really1.2.0-2ubuntu3 package management framework for Ruby librar ii rubygems1.8 1.3.0~RC1really1.2.0-2ubuntu3 package management framework for Ruby librar ii swig 1.3.35-4ubuntu1 Generate scripting interfaces to C/C++ code ii wx2.4-examples 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (ex ii wx2.4-headers 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (he ii wx2.4-i18n 2.4.5.1.1ubuntu1 wxWindows Cross-platform C++ GUI toolkit (i1 -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Thu Feb 5 07:27:39 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Feb 2009 12:27:39 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> Message-ID: <498ADB3B.3030106@pressure.to> Rooby Nooby wrote: > Yes I did install the associated wxWidgets packages from my Distro's > repositories (which is the latest Fedora 10). wxWidgets version 2.8.9 > (GTK2 port of the wxWidgets GUI library) etc. > That sounds fine. > I've been trying to fix things at my end by uninstalling and > reinstalling etc and think I may have messed things up a little bit > beyond repair. I may just end up reinstalling Fedora and revert to the > 32-bit version for an easy life... I hope not! A rubygem for wxRuby 1.9.10 on AMD-64 is now available, you might give that a try before giving up hope... a From lists at ruby-forum.com Thu Feb 5 08:21:04 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 14:21:04 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498ADB3B.3030106@pressure.to> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> Message-ID: <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Alex Fenton wrote: ... > I hope not! A rubygem for wxRuby 1.9.10 on AMD-64 is now available, you > might give that a try before giving up hope... I'm running wxruby 1.9.8. Is there an easy way to update to 1.9.10 - I've tried gem update wxruby but there's nothing to update apparently. Thanks, Mark -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Thu Feb 5 08:29:31 2009 From: mario at ruby-im.net (Mario Steele) Date: Thu, 5 Feb 2009 07:29:31 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <0d80b2e7692800cb346bd614d1d0dc2b@ruby-forum.com> References: <0d80b2e7692800cb346bd614d1d0dc2b@ruby-forum.com> Message-ID: On Thu, Feb 5, 2009 at 6:23 AM, Mark Thurston wrote: > I'm having a similar problem: > (Which I think could be similar to > http://www.ruby-forum.com/topic/165803 although I would like to avoid > building from source if necessary) > > Error message produced when trying to run some of the example files (eg > minimal.rb) > > No debug: > $ ruby -rubygems minimal.rb > ruby: symbol lookup error: > /var/lib/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/lib/wxruby2.so: > undefined symbol: Init_wxMediaCtrl The problem isn't with wxRuby 1.9.8 in that area, it's with the fact, that wxruby2.so, cannot find the Symbol Init_wxMediaCtrl, which is a C/C++ Side problem. > With debug enabled: > /var/lib/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/samples/minimal$ ruby > -rubygems -debug minimal.rb > Exception `LoadError' at /usr/lib/ruby/1.8/rubygems.rb:772 - no such > file to load -- rubygems/defaults/operating_system > Exception `NameError' at -e:1 - undefined local variable or method `bug' > for main:Object > -e:1: undefined local variable or method `bug' for main:Object > (NameError) > The Problem with this, is you used -debug, which is only partly right. What you actually need, is ruby -d, cause you threw in there, an eval, which is done with the switch -e, but since -d doesn't require any arguments, it automatically processed the e as another command switch, which tried to eval 'bug'. Hence why there's an NameError in that. ;-) > Any help will be greatly appreciated, thanks, > > Mark > > Debugging info: > It looks as though you have 2.8.8 installed for wxWidgets for the 2.8 series, as well as the 2.4, and the 2.6 series of wxWidgets. It may mean nothing, but I would try removing the 2.4 and 2.6 series libraries for both wxbase, and wxgtk, and then force a re-install of the 2.8 series, to see if that helps any. Just a few suggestions. -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Feb 5 09:15:05 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 15:15:05 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <0d80b2e7692800cb346bd614d1d0dc2b@ruby-forum.com> Message-ID: Mario, Thanks for the suggestions. Mario Steele wrote: > The Problem with this, is you used -debug, which is only partly right. > What > you actually need, is ruby -d, cause you threw in there, an eval, which > is > done with the switch -e, but since -d doesn't require any arguments, it > automatically processed the e as another command switch, which tried to > eval > 'bug'. Hence why there's an NameError in that. ;-) Here's the correct output from ruby -d minimal.rb (I now only have the 2.8 packages on my machine) $ ruby -d minimal.rb Exception `LoadError' at /usr/lib/ruby/1.8/rubygems.rb:772 - no such file to load -- rubygems/defaults/operating_system Exception `LoadError' at /usr/lib/ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- wx ruby: symbol lookup error: /var/lib/gems/1.8/gems/wxruby-1.9.8-x86_64-linux/lib/wxruby2.so: undefined symbol: Init_wxMediaCtrl -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Thu Feb 5 09:40:29 2009 From: mario at ruby-im.net (Mario Steele) Date: Thu, 5 Feb 2009 08:40:29 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Message-ID: The RubyGems server is still updating the different mirrors that RubyGems runs through. You can find it here: http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem To easily install it, just run the following commands in a console / terminal: wget http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem sudo gem install wxruby-1.9.10-x86_64-linux.gem On Thu, Feb 5, 2009 at 7:21 AM, Mark Thurston wrote: > Alex Fenton wrote: > ... > > I hope not! A rubygem for wxRuby 1.9.10 on AMD-64 is now available, you > > might give that a try before giving up hope... > > I'm running wxruby 1.9.8. Is there an easy way to update to 1.9.10 - > I've tried gem update wxruby but there's nothing to update apparently. > > Thanks, Mark > > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Feb 5 10:21:02 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 16:21:02 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Message-ID: Mario Steele wrote: > The RubyGems server is still updating the different mirrors that > RubyGems > runs through. You can find it here: > http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem > To easily install it, just run the following commands in a console / > terminal: > > wget http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem > sudo gem install wxruby-1.9.10-x86_64-linux.gem No joy with 1.9.10 - and I removed 1.9.8 with sudo gem uninstall, just to make sure there was no conflict. What is your $PATH - do I need to add anything to it? It seems I have Wx installed, but ruby can't load it: $ ruby -d helloworld_wx.rb Exception `LoadError' at helloworld_wx.rb:5 - no such file to load -- wx helloworld_wx.rb:5:in `require': no such file to load -- wx (LoadError) from helloworld_wx.rb:5 helloworld_wx.rb was taken from http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World Thanks, Mark -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Feb 5 10:21:57 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 16:21:57 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Message-ID: <200b67c440e3bc8960246cb26ad21aa1@ruby-forum.com> > What is your $PATH - do I need to add anything to it? It seems I have > Wx installed, but ruby can't load it: Sorry, I forgot to paste mine: $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Thu Feb 5 10:37:09 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Feb 2009 15:37:09 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Message-ID: <498B07A5.7020101@pressure.to> Mark Thurston wrote: > What is your $PATH - do I need to add anything to it? It seems I have > Wx installed, but ruby can't load it: > > $ ruby -d helloworld_wx.rb > > Exception `LoadError' at helloworld_wx.rb:5 - no such file to load -- wx > helloworld_wx.rb:5:in `require': no such file to load -- wx (LoadError) > from helloworld_wx.rb:5 > With ruby 1.8, you need to ensure you load rubygems before you can use any library installed as a gem. Try: ruby -rubygems helloworld_wx.rb alex From mario at ruby-im.net Thu Feb 5 10:44:31 2009 From: mario at ruby-im.net (Mario Steele) Date: Thu, 5 Feb 2009 09:44:31 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> Message-ID: Try doing: ruby -rubygems -d helloworld_wx.rb On Thu, Feb 5, 2009 at 9:21 AM, Mark Thurston wrote: > Mario Steele wrote: > > The RubyGems server is still updating the different mirrors that > > RubyGems > > runs through. You can find it here: > > http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem > > To easily install it, just run the following commands in a console / > > terminal: > > > > wget http://www.trilake.net/wxruby/wxruby-1.9.10-x86_64-linux.gem > > sudo gem install wxruby-1.9.10-x86_64-linux.gem > > No joy with 1.9.10 - and I removed 1.9.8 with sudo gem uninstall, just > to make sure there was no conflict. > > What is your $PATH - do I need to add anything to it? It seems I have > Wx installed, but ruby can't load it: > > $ ruby -d helloworld_wx.rb > Exception `LoadError' at helloworld_wx.rb:5 - no such file to load -- wx > helloworld_wx.rb:5:in `require': no such file to load -- wx (LoadError) > from helloworld_wx.rb:5 > > helloworld_wx.rb was taken from > http://wxruby.rubyforge.org/wiki/wiki.pl?Hello_World > > Thanks, Mark > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu Feb 5 11:17:36 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Thu, 5 Feb 2009 17:17:36 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498B07A5.7020101@pressure.to> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <498ADB3B.3030106@pressure.to> <50cf8765d33b7db99eaafd0ecb792cda@ruby-forum.com> <498B07A5.7020101@pressure.to> Message-ID: Mario and Alex, Thanks a lot. I'd already tried that multiple times, but looking back on it, I think I'd tried it in conjunction with -dubug rather that -d Anyway, it works fine now - thanks for your help. Regards, Mark -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Feb 5 14:59:56 2009 From: lists at ruby-forum.com (Zhimin Zhan) Date: Thu, 5 Feb 2009 20:59:56 +0100 Subject: [wxruby-users] wxRuby Release Candidate 1 (or, wxRuby 1.9.10) In-Reply-To: <4989DDFF.2090708@pressure.to> References: <4989DDFF.2090708@pressure.to> Message-ID: <6c00b091c35162807f41cec25d585635@ruby-forum.com> Hi Alex, Chauk-Mean, Mario and Pascal: Congrats! and Thanks for your great work! I upgraded my app to wxRuby 1.9.10 for Ruby 1.9.1 on Mac OS X without problems, still waiting Ruby 1.9.1 mingw32 installer to test it out on Windows. Regards, Zhimin -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Thu Feb 5 16:11:58 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 05 Feb 2009 21:11:58 +0000 Subject: [wxruby-users] wxRuby Release Candidate 1 (or, wxRuby 1.9.10) In-Reply-To: <6c00b091c35162807f41cec25d585635@ruby-forum.com> References: <4989DDFF.2090708@pressure.to> <6c00b091c35162807f41cec25d585635@ruby-forum.com> Message-ID: <498B561E.3060508@pressure.to> Zhimin Zhan wrote: > Hi Alex, Chauk-Mean, Mario and Pascal: > > Congrats! and Thanks for your great work! > Thanks for your kind words, and also for your feedback on previous versions. Your comments on event handling, for example, exposed subtle but important bugs in memory management which we hope are now resolved. > I upgraded my app to wxRuby 1.9.10 for Ruby 1.9.1 on Mac OS X without > problems, still waiting Ruby 1.9.1 mingw32 installer to test it out on > Windows. If you download the ruby 1.8 MingW/Msys pre-built environment by Luis Lavena, you should be able to build your own Ruby 1.9 without any modifications, using standard ./configure, make cheers a From chauk.mean at gmail.com Thu Feb 5 17:08:00 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Thu, 5 Feb 2009 23:08:00 +0100 Subject: [wxruby-users] wxRuby Release Candidate 1 (or, wxRuby 1.9.10) In-Reply-To: <6c00b091c35162807f41cec25d585635@ruby-forum.com> References: <4989DDFF.2090708@pressure.to> <6c00b091c35162807f41cec25d585635@ruby-forum.com> Message-ID: Hi Zhimin, 2009/2/5 Zhimin Zhan : > I upgraded my app to wxRuby 1.9.10 for Ruby 1.9.1 on Mac OS X without > problems, still waiting Ruby 1.9.1 mingw32 installer to test it out on > Windows. > I intend to provide a wxruby distribution for Windows : - based on ruby-1.9.1 on MinGW with the strict minimal dependency (i.e. zlib required for rubygems) - with the wxruby gem bundled This is for people who don't want to build ruby or cannot wait for the availability of the new One Click Installer. If you're interested, just wait for the week-end ... Cheers, Chauk-Mean. From lists at ruby-forum.com Fri Feb 6 13:06:07 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Fri, 6 Feb 2009 19:06:07 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> Message-ID: <13b86838a5c781f237aa765637dc933d@ruby-forum.com> Mario Steele wrote: > Well, before you go and do that, I have just posted the 2.0 RC1 64bit > gem for wxRuby, and if you would like, I can send you the gem, for you to > try and see if it will work or not. It should work, as I didn't have any > problems. However, I'm running on Ubuntu, and I make my builds on > Ubuntu as well. Thanks for that. OK - I have now re-installed my 64-bit Fedora from scratch. To the best of my knowledge I've correctly installed Ruby, Rubygems, wxWidgets 2.8.9, and wxRuby 1.9.10. I crossed my fingers and then... a different error message greeted me! What joy: ruby -rubygems minimal.rb /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so: libwx_gtk2u_gl-2.8.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx.rb:12 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from minimal.rb:8 Arrrrgh! Any help would be appreciated. Thanks in advance. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 13:34:00 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Fri, 6 Feb 2009 19:34:00 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <13b86838a5c781f237aa765637dc933d@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> Message-ID: <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> Rooby Nooby wrote: > Arrrrgh! Any help would be appreciated. Thanks in advance. My problem was solved, I think, by carefully reviewing all the packages to do with wx and ruby that I had install and not installed. I installed the -dev packages that I thought may be remotely relevant. I also updated my wxruby gem to the latest amd64 release using the wget code suggested above, and removed the old gem. My install now works even without the -rubygems option (as long as the code includes: begin require 'rubygems' rescue LoadError end ) Hope that helps. Unfortunately, mine just started working after doing a number of things, so I'm not sure exactly what it was that fixed it. If I had to guess it would probably be the update of wxruby. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 13:35:04 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Fri, 6 Feb 2009 19:35:04 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> Message-ID: <1bc96e73d8fc3ff5f02937e754a9d701@ruby-forum.com> Mark Thurston wrote: > Rooby Nooby wrote: > >> Arrrrgh! Any help would be appreciated. Thanks in advance. > > My problem was solved, I think, by carefully reviewing all the packages > to do with wx and ruby I mean with my distribution package manager (for you, this would be yum) -- Posted via http://www.ruby-forum.com/. From chauk.mean at gmail.com Fri Feb 6 13:53:17 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Fri, 6 Feb 2009 19:53:17 +0100 Subject: [wxruby-users] wxRuby distribution for Windows available Message-ID: Hi all, For those who don't want to build ruby or cannot wait for the availability of the new One Click Installer, here it is ... A wxRuby distribution for Windows bundling : - ruby-1.9.1-p0 with its minimal dependency (zlib) built with MinGW - wxRuby-1.9.10 (aka wxRuby-2.0-RC1) I've just uploaded the installer on Rubyforge (this may take some time before it is actually available). Enjoy. Chauk-Mean. From lists at ruby-forum.com Fri Feb 6 15:57:03 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Fri, 6 Feb 2009 21:57:03 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> Message-ID: <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> > My problem was solved, I think, by carefully reviewing all the packages > to do with wx and ruby that I had install and not installed. I > installed the -dev packages that I thought may be remotely relevant. Thanks for the suggestion, Mark. Using Fedora's Package Manager I've installed wxGTK-devel-2.8.9-1 as suggested and hey presto - another error message: $ ruby minimal.rb /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [x86_64-linux] $ ruby bigdemo.rb bigdemo.rb:823: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [x86_64-linux] At least it's less gobbledegook than last time so I guess I'm heading in the right direction?!!! Frankly I haven't a clue what any of these error messages mean.... -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 16:09:29 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Fri, 6 Feb 2009 22:09:29 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> Message-ID: Just a thought, but the only two gems I have installed at the moment are wx_sugar (0.1.21) and wxruby (1.9.10) - should I have any others installed which might help me out of this pickle? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 16:27:58 2009 From: lists at ruby-forum.com (Mark Thurston) Date: Fri, 6 Feb 2009 22:27:58 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> Message-ID: <744fa926e8914d74e17d32f5f1adeca1@ruby-forum.com> Rooby Nooby wrote: > Just a thought, but the only two gems I have installed at the moment are > wx_sugar (0.1.21) and wxruby (1.9.10) - should I have any others > installed which might help me out of this pickle? try installing core and rake as well -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 17:36:23 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Fri, 6 Feb 2009 23:36:23 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <744fa926e8914d74e17d32f5f1adeca1@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <744fa926e8914d74e17d32f5f1adeca1@ruby-forum.com> Message-ID: Mark Thurston wrote: > Rooby Nooby wrote: >> Just a thought, but the only two gems I have installed at the moment are >> wx_sugar (0.1.21) and wxruby (1.9.10) - should I have any others >> installed which might help me out of this pickle? > > try installing core and rake as well Thanks for the suggestion but after installing core and rake I'm still getting the same error message. I now have: core (2.0.0) rake (0.8.3) wx_sugar (0.1.21) wxruby (1.9.10) The error message is pretty much the same for all samples: $ ruby listbook.rb listbook.rb:174: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [x86_64-linux] Which 64-bit Linux are you using? -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Fri Feb 6 18:54:06 2009 From: alex at pressure.to (Alex Fenton) Date: Fri, 06 Feb 2009 23:54:06 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> Message-ID: <498CCD9E.6060701@pressure.to> Rooby Nooby wrote: > Thanks for the suggestion, Mark. Using Fedora's Package Manager I've > installed wxGTK-devel-2.8.9-1 as suggested and hey presto - another > error message: > > $ ruby minimal.rb > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16: > [BUG] Segmentation fault > ruby 1.8.6 (2008-08-11) [x86_64-linux] I'm afraid in this situation the only way to get more informative error messages is to use a debugger. Try something like gdb ruby --args -rubygems minimal.rb It should then start, enter 'c' to run the programme. Then when it crashes, at the gdb prompt, type 'where' and you should get a load of feedback. Post this back to the list. Alternatively, it might be easier just to compile your own wxruby. If you have your own distro's libwx-gtk and libwx-gtk-dev packages installed, download the .tar.gz file, unpack it, then do rake gem WXRUBY_VERSION=1.9.10 sudo gem install wxruby hth alex From lists at ruby-forum.com Fri Feb 6 22:44:38 2009 From: lists at ruby-forum.com (Ridge Mcghee) Date: Sat, 7 Feb 2009 04:44:38 +0100 Subject: [wxruby-users] wxRuby - Segmentation fault In-Reply-To: <498A5692.10100@pressure.to> References: <498A5692.10100@pressure.to> Message-ID: <9e5c0d20d047ee9f869fd522d1eb8c0e@ruby-forum.com> Alex Fenton wrote: > Ridge Mcghee wrote: >> # Windows XP Professional + SP3 >> # ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] >> # wxruby (1.9.9) >> >> If you can tell me how to update to 1.9.10, I'd be happy to run >> this and a few other tests. > > It can sometimes take a little time for the gem indexes to update, but > it seems to have happened now: Yep, I just installed 1.9.10 - thanks. > Thanks for the sample code. It works fine for me on OS X; I'll try it on > Windows when I get a chance. I just tried it on 1.9.10 and it still seg faults (on exit). Ridge -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Feb 6 22:56:04 2009 From: lists at ruby-forum.com (Ridge Mcghee) Date: Sat, 7 Feb 2009 04:56:04 +0100 Subject: [wxruby-users] Copy/Paste problems in dragdrop.rb In-Reply-To: <4979B155.6030904@pressure.to> References: <99d42665179137bf72b4f213cc583cc8@ruby-forum.com> <4979B155.6030904@pressure.to> Message-ID: <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> Alex Fenton wrote: > Hi Ridge > > Ridge Mcghee wrote: >> Windows XP Professional + SP3 >> ruby 1.8.6 >> wxRuby 1.9.9 >> >> The drag and drop sample results in segmentation faults. >> > > Thanks for the report. I hadn't realised there was this problem in > 1.9.9. > > The development version of wxRuby contains a major rework of the classes > used in DnD and Clipboard, which have been very tricky to port because > of the way they're designed in wxWidgets. > > We've still got one problem with Clipboard on Windows, but this is a > blocking issue (actually, now the only one) for wxRuby 2.0, so it will > be fixed for the next release. > > cheers > alex Hi Alex, Just a note -- I repeated the above tests on 1.9.10. The good news is that Problem #1 has disappeared. The bad news is that Problems #2 and #3 still seg fault. I didn't know whether "next release" meant 1.9.10 or 2.0. Ridge -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Sat Feb 7 00:54:51 2009 From: mario at ruby-im.net (Mario Steele) Date: Fri, 6 Feb 2009 23:54:51 -0600 Subject: [wxruby-users] Copy/Paste problems in dragdrop.rb In-Reply-To: <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> References: <99d42665179137bf72b4f213cc583cc8@ruby-forum.com> <4979B155.6030904@pressure.to> <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> Message-ID: 1.9.10 is wxRuby 2.0 RC1, but RubyGems doesn't like us using this kind of naming scheme, so we have to use 1.9.10 to satisfy RubyGems. On Fri, Feb 6, 2009 at 9:56 PM, Ridge Mcghee wrote: > Alex Fenton wrote: > > Hi Ridge > > > > Ridge Mcghee wrote: > >> Windows XP Professional + SP3 > >> ruby 1.8.6 > >> wxRuby 1.9.9 > >> > >> The drag and drop sample results in segmentation faults. > >> > > > > Thanks for the report. I hadn't realised there was this problem in > > 1.9.9. > > > > The development version of wxRuby contains a major rework of the classes > > used in DnD and Clipboard, which have been very tricky to port because > > of the way they're designed in wxWidgets. > > > > We've still got one problem with Clipboard on Windows, but this is a > > blocking issue (actually, now the only one) for wxRuby 2.0, so it will > > be fixed for the next release. > > > > cheers > > alex > > Hi Alex, > > Just a note -- > I repeated the above tests on 1.9.10. > The good news is that Problem #1 has disappeared. > The bad news is that Problems #2 and #3 still seg fault. > I didn't know whether "next release" meant 1.9.10 or 2.0. > > Ridge > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From chauk.mean at gmail.com Sat Feb 7 03:47:19 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Sat, 7 Feb 2009 09:47:19 +0100 Subject: [wxruby-users] wxRuby - Segmentation fault In-Reply-To: <9e5c0d20d047ee9f869fd522d1eb8c0e@ruby-forum.com> References: <498A5692.10100@pressure.to> <9e5c0d20d047ee9f869fd522d1eb8c0e@ruby-forum.com> Message-ID: Hi Ridge, 2009/2/7 Ridge Mcghee : > I just tried it on 1.9.10 and it still seg faults (on exit). > I've been able to reproduce the seg fault with ruby-1.9.1 on MinGW. On Linux, the exit takes some time but does not seg faults. Chauk-Mean. From chauk.mean at gmail.com Sat Feb 7 04:09:06 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Sat, 7 Feb 2009 10:09:06 +0100 Subject: [wxruby-users] Copy/Paste problems in dragdrop.rb In-Reply-To: <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> References: <99d42665179137bf72b4f213cc583cc8@ruby-forum.com> <4979B155.6030904@pressure.to> <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> Message-ID: Hi Ridge, 2009/2/7 Ridge Mcghee : > I repeated the above tests on 1.9.10. > The good news is that Problem #1 has disappeared. > The bad news is that Problems #2 and #3 still seg fault. >1. Run dragdrop.rb >2. Click on Clipboard tab >3. Type some text in TextCtrl >4. Click the Copy text button >5. Click the Paste button 3 times >(Segmentation fault 7 times in 10) >6. Repeat 4. and 5. >(Segmentation fault 10 times in 10 within a few iterations) I've been able to reproduce this issue with wxRuby-1.9.10, ruby-1.9.1 both on MinGW and Linux. There is no need to repeat 4 but I have to click on the Paste button many times. On Linux, sometimes the text becomes corrupted, other times the app seg faults. >1. Run dragdrop.rb >2. Click on Clipboard tab >3. Type some text in TextCtrl >4. Click the Copy text button >5. Resize the window >6. Click the Paste button >(Immediate segmentation fault) I've been able to reproduce this issue with wxRuby-1.9.10, ruby-1.9.1 both on MinGW and Linux. Sometimes, the crash occurs after the first click on Paste button, other times it occurs after several clicks on this button. Also on Linux, sometimes the text becomes corrupted, other times the app seg faults. Chauk-Mean. From lists at ruby-forum.com Sat Feb 7 05:09:01 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sat, 7 Feb 2009 11:09:01 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498CCD9E.6060701@pressure.to> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> Message-ID: <638e966dc5d1963b449dba9f63016704@ruby-forum.com> Hi Alex Many thanks for your prompt and excellent guidance, however, I'm afraid I don't seem to have made a great deal of progress yet. > I'm afraid in this situation the only way to get more informative error > messages is to use a debugger. Try something like > > gdb ruby --args -rubygems minimal.rb > > It should then start, enter 'c' to run the programme. Then when it > crashes, at the gdb prompt, type 'where' and you should get a load of > feedback. Post this back to the list. Here goes nothing... $ gdb ruby --args -rubygems minimal.rb GNU gdb Fedora (6.8-29.fc10) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... -rubygems: No such file or directory. (gdb) c The program is not being run. (gdb) I then tried it a couple of different ways.... $ gdb ruby --args minimal.rb GNU gdb Fedora (6.8-29.fc10) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... "/home/russell/wxsamples/minimal/minimal.rb": not in executable format: File format not recognized (gdb) c The program is not being run. (gdb) (sigh!) how about ... $ gdb ruby minimal.rb GNU gdb Fedora (6.8-29.fc10) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... (no debugging symbols found) "/home/russell/wxsamples/minimal/minimal.rb" is not a core dump: File format not recognized Missing separate debuginfos, use: debuginfo-install ruby-1.8.6.287-2.fc10.x86_64 (gdb) c The program is not being run. (gdb) > Alternatively, it might be easier just to compile your own wxruby. If > you have your own distro's libwx-gtk and libwx-gtk-dev packages > installed, download the .tar.gz file, unpack it, then do > > rake gem WXRUBY_VERSION=1.9.10 > sudo gem install wxruby OK. I uninstalled the gem using $ sudo gem uninstall wxruby I checked my distro's package manager and the following are shown to be installed: wxGTK-2.8.9-1.fc10 (x86_64) wxGTK-devel-2.8.9-1.fc10 (x86_64) I then downloaded and unpacked the relevant .tar.gz file, navigated to the wxruby-1.9.10 folder and took a deep breath. $ rake gem --trace WXRUBY_VERSION=1.9.10 (in /home/russell/Download/wxruby-1.9.10) Enabling DYNAMIC build Enabling RELEASE build Enabling UNICODE build The following wxWidgets features are not available and will be skipped: PrinterDC ** Invoke gem (first_time) ** Invoke default (first_time) ** Invoke lib/wxruby2.so (first_time) ** Invoke obj/AboutDialogInfo.o (first_time) ** Invoke src/AboutDialogInfo.cpp (first_time, not_needed) ** Invoke swig/classes/AboutDialogInfo.i (first_time, not_needed) ** Invoke /home/russell/Download/wxruby-1.9.10/swig/common.i (first_time, not_needed) ** Invoke /home/russell/Download/wxruby-1.9.10/swig/classes/include/wxAboutDialogInfo.h (first_time, not_needed) ** Execute obj/AboutDialogInfo.o g++ -c -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxABI_VERSION=20808 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fPIC -Wno-unused-function -I. -I /usr/lib64/ruby/1.8/x86_64-linux -o obj/AboutDialogInfo.o src/AboutDialogInfo.cpp rake aborted! Command failed with status (127): [g++ -c -I/usr/lib64/wx/include/gtk2-unic...] /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:970:in `sh' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:983:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:983:in `sh' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1071:in `sh' ./rake/rakewx.rb:152 /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:614:in `call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:614:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:611:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:611:in `execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:570:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:587:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:576:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:570:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:587:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:576:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:570:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:587:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:584:in `invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:576:in `invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:570:in `invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:563:in `invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2018:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1996:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1996:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1996:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2035:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1990:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2035:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1966:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19 Whaaaaaat!?!? As usual, any assistance would be gratefully appreciated. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Feb 7 05:29:49 2009 From: lists at ruby-forum.com (jazzez ravi) Date: Sat, 7 Feb 2009 11:29:49 +0100 Subject: [wxruby-users] Form submission in WXRUBY Message-ID: Hi All, My Question: 1. I want to open a new Window 2. That window must contain Text field and Button 3. Enter "1" in that text field 4. Click Button. 5. # That Given "1" must come to Ruby program(add VALUE+1) and return the output 6. Now the window must displays "2". Is it possible with wxruby ? Thanks, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Sat Feb 7 06:22:09 2009 From: mario at ruby-im.net (Mario Steele) Date: Sat, 7 Feb 2009 05:22:09 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <638e966dc5d1963b449dba9f63016704@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> Message-ID: Hello Rooby, On Sat, Feb 7, 2009 at 4:09 AM, Rooby Nooby wrote: > Hi Alex > > Many thanks for your prompt and excellent guidance, however, I'm afraid > I don't seem to have made a great deal of progress yet. > > > I'm afraid in this situation the only way to get more informative error > > messages is to use a debugger. Try something like > > > > gdb ruby --args -rubygems minimal.rb > > > > It should then start, enter 'c' to run the programme. Then when it > > crashes, at the gdb prompt, type 'where' and you should get a load of > > feedback. Post this back to the list. > > Here goes nothing... Alright, Alex mis-typed the line to run the GDB Debugger, you actually need to do this: gdb --args ruby -rubygems minimal.rb The problems, is that with the first two instances of the command you ran, GDB thinks your actually trying to execute the plain text file, thinking it's a compiled program, which it isn't, and hence why your getting the incorrect format. The last instance, is another problem of mistaken identity, cause when you run the GDB with gdb ruby minimal.rb, it thinks minimal.rb is actually a core dump, which sometimes happens, and sometimes doesn't. The core file, allows Programmers to use in conjunction with gdb, to trace through a program that crashed, without having to go through the trial and error to get to the point where the program crashed. Often useful for users to send to programmers. However, in this case, again, not something we want. Try the first command, if you want to re-install the gem (Which should now be publicly available through the normal sudo gem install wxruby. > Alternatively, it might be easier just to compile your own wxruby. If > > you have your own distro's libwx-gtk and libwx-gtk-dev packages > > installed, download the .tar.gz file, unpack it, then do > > > > rake gem WXRUBY_VERSION=1.9.10 > > sudo gem install wxruby > > OK. I uninstalled the gem using > $ sudo gem uninstall wxruby > > I checked my distro's package manager and the following are shown to be > installed: > wxGTK-2.8.9-1.fc10 (x86_64) > wxGTK-devel-2.8.9-1.fc10 (x86_64) > > I then downloaded and unpacked the relevant .tar.gz file, navigated to > the wxruby-1.9.10 folder and took a deep breath. > I believe this error comes from the fact that the GNU C++ Compiler is not installed. Also, it may be different on Fedora, but on Ubuntu, you also need to ensure that you have wxbase, and wxbase-dev installed alongside the wxgtk libraries. Each distro has their own way of distributing packages, as well as how to split packages up. ;-) I would go into Yum, or Fedora's Package Manager, and install any Compilers you can find that is associated with C/C++, to ensure that there aren't any problems. Whaaaaaat!?!? As usual, any assistance would be gratefully appreciated. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sat Feb 7 06:29:23 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 07 Feb 2009 11:29:23 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <638e966dc5d1963b449dba9f63016704@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> Message-ID: <498D7093.5030209@pressure.to> Rooby Nooby wrote: > Hi Alex > > Many thanks for your prompt and excellent guidance, however, I'm afraid > I don't seem to have made a great deal of progress yet. >> It should then start, enter 'c' to run the programme. Then when it >> crashes, at the gdb prompt, type 'where' and you should get a load of >> feedback. Post this back to the list. >> > > > (gdb) c > The program is not being run. My mistake, that should have been 'r' (for "run") not 'c' (for "continue"). Try with that command > g++ -c -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 > -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ > -DwxABI_VERSION=20808 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 > -mtune=generic -Wall -fPIC -Wno-unused-function -I. -I > /usr/lib64/ruby/1.8/x86_64-linux -o obj/AboutDialogInfo.o > src/AboutDialogInfo.cpp > rake aborted! > Command failed with status (127): [g++ -c > -I/usr/lib64/wx/include/gtk2-unic...] We need to see the compiler error here. Rake seems to manage to provide every bit of information except the one useful one... Try copying and pasting the line that begins "g++ -c -I/usr/lib64..." and ends "...src/AboutDialogInfo.cpp" onto the command line and see what error g++ is returning. thanks for your patience alex From lists at ruby-forum.com Sat Feb 7 07:01:17 2009 From: lists at ruby-forum.com (jazzez ravi) Date: Sat, 7 Feb 2009 13:01:17 +0100 Subject: [wxruby-users] Form submission in WXRUBY In-Reply-To: References: Message-ID: Hi All, What a beauty.... ? I tried and got it... What a easy way without browsers .. Solution Code --> http://raveendran.wordpress.com/2009/02/07/modal-dialog-ruby-sample-program/ Thanks for all.. Regards, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Feb 7 09:49:08 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sat, 7 Feb 2009 15:49:08 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> Message-ID: <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> > Alright, Alex mis-typed the line to run the GDB Debugger, you actually > need to do this: > gdb --args ruby -rubygems minimal.rb Hold on tight... $ gdb --args ruby -rubygems minimal.rb GNU gdb Fedora (6.8-29.fc10) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... (no debugging symbols found) Missing separate debuginfos, use: debuginfo-install ruby-1.8.6.287-2.fc10.x86_64 (gdb) r Starting program: /usr/bin/ruby -rubygems minimal.rb (no debugging symbols found) [Thread debugging using libthread_db enabled] (no debugging symbols found) [New Thread 0x7ffff7fe26f0 (LWP 31973)] (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. 0x000000315ba92530 in wxFontMapperBase::Get () from /usr/lib64/libwx_baseu-2.8.so.0 (gdb) c Continuing. /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [x86_64-linux] Program received signal SIGABRT, Aborted. 0x0000003151c32f05 in raise () from /lib64/libc.so.6 > ensure that you have wxbase, and wxbase-dev installed alongside > the wxgtk libraries. I only have wxBase-2.8.9-1.fc10 (x86_64), there's no corresponding 'dev' in the Package Manager and I had a quick Google around for one but didn't find anything. > I believe this error comes from the fact that the GNU C++ Compiler is > not installed. > I would go into Yum, or Fedora's Package Manager, and install any > Compilers you can find that is associated with C/C++, to ensure that there > aren't any problems. I installed GCC (and the C++ Support for GCC package) and entered: rake gem WXRUBY_VERSION=1.9.10 which seemed to work - it produced many many lines of text while compiling with a few warnings along the way but finished up with: :0:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009. WARNING: RDoc will not be generated (has_rdoc == false) Successfully built RubyGem Name: wxruby Version: 1.9.10 File: wxruby-1.9.10-x86_64-linux.gem I then entered: $ sudo gem install wxruby Successfully installed wxruby-1.9.10-x86_64-linux 1 gem installed Crunch time... fingers crossed... $ ruby minimal.rb ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so: undefined symbol: Init_wxAboutDialogInfo Doh!! > Try copying and pasting the line that begins "g++ -c -I/usr/lib64..." > and ends "...src/AboutDialogInfo.cpp" onto the command line and see what > error g++ is returning. Alex - I did that and it produced nothing at all to report - I guess the GCC compiler took care of that issue. Is it a coincidence though that the AboutDialogInfo is also mentioned in the above error message perhaps? > thanks for your patience No, thank YOU (Alex, Mario, Mark) for your help thus far. I just hope we're getting closer to a solution. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Feb 7 12:06:25 2009 From: lists at ruby-forum.com (Ross Goodell) Date: Sat, 7 Feb 2009 18:06:25 +0100 Subject: [wxruby-users] getting DC for a TxtCtrl Message-ID: <6b70ce38e2dbe2b5b69cd9a30da57d7a@ruby-forum.com> I need to find where the mouse has been clicked in a TextCtrl. To do this I've been using "@lastPixelPt = evt.get_position" in my evt_left_down method but have discovered that this gives me a physical position in the visible window. It looks like I could probably use get_logical_position(dc) to get a position relative to the text in the control, that is adjusted for scrolling, but I haven't found how to set up dc (device context). I would greatly appreciate an example of how to set up dc so that "@lastPixelPt = evt.get_logical_position(dc)" will work or any advice I can get about getting a position relative to the text in the control. Thank you, Ross Goodell -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sat Feb 7 12:15:22 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 07 Feb 2009 17:15:22 +0000 Subject: [wxruby-users] Copy/Paste problems in dragdrop.rb In-Reply-To: <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> References: <99d42665179137bf72b4f213cc583cc8@ruby-forum.com> <4979B155.6030904@pressure.to> <120543fa46b5595a0a57ac53145ee491@ruby-forum.com> Message-ID: <498DC1AA.1030402@pressure.to> Ridge Mcghee wrote: > Just a note -- > I repeated the above tests on 1.9.10. > The good news is that Problem #1 has disappeared. > Thanks for the update on these problems. > The bad news is that Problems #2 and #3 still seg fault. > I can reproduce this on Linux. Fortunately I can see what the bug is, and it's not hard to fix. If this is causing a problem in your own program, you can work round it for now by retaining a reference to the data object being set in an instance variable. For example, in the clipboard sample, tweak the on_copy_text method to something like @data_obj = Wx::TextDataObject.new(@text.value) clipboard.data = @data_obj For reference, what's happening is that the ruby data object is getting swept up by garbage collection, because it was only referenced by a local variable which is out of scope. When the time comes to retrieve the data to paste it, wxRuby tries to call 'get_text' on that object - but it's now disappeared so there's a crash. > I didn't know whether "next release" meant 1.9.10 or 2.0. > The only real issues outstanding for 2.0 are these ones relating to clipboard. We decided to release 1.9.10 / RC1 as there were many other fixes and improvements which were worth getting into circulation. cheers alex From lists at ruby-forum.com Sat Feb 7 12:28:03 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sat, 7 Feb 2009 18:28:03 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> Message-ID: <98963ffd9bfcea7dcd88eff49fe76ff7@ruby-forum.com> Further to my previous message, I've just tried to run it with the debug option. Perhaps this might offer any clues. $ ruby -d minimal.rb Exception `LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems.rb:871 - no such file to load -- rubygems/defaults/operating_system Exception `LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:35 - no such file to load -- Win32API Exception `LoadError' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- wx ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so: undefined symbol: Init_wxAboutDialogInfo -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sat Feb 7 12:46:46 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 07 Feb 2009 17:46:46 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> Message-ID: <498DC906.7030406@pressure.to> Rooby Nooby wrote: > (no debugging symbols found) > Program received signal SIGSEGV, Segmentation fault. > 0x000000315ba92530 in wxFontMapperBase::Get () from > /usr/lib64/libwx_baseu-2.8.so.0 > (gdb) c > Continuing. > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16: > [BUG] Segmentation fault > ruby 1.8.6 (2008-08-11) [x86_64-linux] This is where you now type 'where' at the (gdb) prompt to get a backtrace of the fault. However since it says there are "no debugging symbols found" it may not actually help us. > :0:Warning: Gem::manage_gems is deprecated and will be removed on or > after March 2009. > WARNING: RDoc will not be generated (has_rdoc == false) > Successfully built RubyGem > Name: wxruby > Version: 1.9.10 > File: wxruby-1.9.10-x86_64-linux.gem > This looks good. > I then entered: > > $ sudo gem install wxruby > Successfully installed wxruby-1.9.10-x86_64-linux > 1 gem installed > > Crunch time... fingers crossed... > > $ ruby minimal.rb > ruby: symbol lookup error: > /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so: > undefined symbol: Init_wxAboutDialogInfo > Not so good. Since you earlier had problems on this file before you installed gcc, you could try doing 'rake clean' before building the gem again. If this still isn't helping, try deleting lib/wxruby2.so, then running "rake -v", and post the long line at the end of the output, which will start something like g++ -shared -fPIC -o [then a long list of Wx class names, like obj/AboutDialogInfo.o] and ending in lib/wxruby2.so a From alex at pressure.to Sat Feb 7 13:21:04 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 07 Feb 2009 18:21:04 +0000 Subject: [wxruby-users] getting DC for a TxtCtrl In-Reply-To: <6b70ce38e2dbe2b5b69cd9a30da57d7a@ruby-forum.com> References: <6b70ce38e2dbe2b5b69cd9a30da57d7a@ruby-forum.com> Message-ID: <498DD110.3080407@pressure.to> Ross Goodell wrote: > I need to find where the mouse has been clicked in a TextCtrl. Do you want the character position, or the unscrolled pixel position? If it's just the character position, use TextCtrl#hit_test plus possibly #xy_to_position. For some reason, wxWidgets doesn't provide TextCtrl#hit_test on Mac, but it's not hard to do your own implementation. I have one kicking around somewhere if that's what you need. > To do > this I've been using "@lastPixelPt = evt.get_position" in my > evt_left_down method but have discovered that this gives me a physical > position in the visible window. It looks like I could probably use > get_logical_position(dc) to get a position relative to the text in the > control, that is adjusted for scrolling, If you want the pixel position taking into account scrolling, then TextCtrl may not work for you. There isn't a way to get the scroll position in pixels - get_scroll_pos doesn't work for TextCtrl in wxWidgets. As I understand it, this is down to limitations of the underlying OSes - the native controls don't all support getting the scroll position in pixels. You might try using RichTextCtrl, which has a get_view_start method to return the x, y scrolling offset. alex From mario at ruby-im.net Sat Feb 7 17:16:19 2009 From: mario at ruby-im.net (Mario Steele) Date: Sat, 7 Feb 2009 16:16:19 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498DC906.7030406@pressure.to> References: <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> <498DC906.7030406@pressure.to> Message-ID: On Sat, Feb 7, 2009 at 11:46 AM, Alex Fenton wrote: > Rooby Nooby wrote: > >> (no debugging symbols found) >> Program received signal SIGSEGV, Segmentation fault. >> 0x000000315ba92530 in wxFontMapperBase::Get () from >> /usr/lib64/libwx_baseu-2.8.so.0 >> (gdb) c >> Continuing. >> /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16: >> [BUG] Segmentation fault >> ruby 1.8.6 (2008-08-11) [x86_64-linux] >> > > This is where you now type 'where' at the (gdb) prompt to get a backtrace > of the fault. However since it says there are "no debugging symbols found" > it may not actually help us. > > :0:Warning: Gem::manage_gems is deprecated and will be removed on or after >> March 2009. >> WARNING: RDoc will not be generated (has_rdoc == false) >> Successfully built RubyGem >> Name: wxruby >> Version: 1.9.10 >> File: wxruby-1.9.10-x86_64-linux.gem >> >> > > This looks good. > > I then entered: >> >> $ sudo gem install wxruby >> Successfully installed wxruby-1.9.10-x86_64-linux >> 1 gem installed >> >> Crunch time... fingers crossed... >> >> $ ruby minimal.rb >> ruby: symbol lookup error: >> /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so: >> undefined symbol: Init_wxAboutDialogInfo >> > > Actually, this isn't working, cause your still installing the gem from the RubyGems repository, but I would also suggest you do as Alex says, and run rake clean, and rake clean_src, then run the previous rake command to build the gem, and to ensure that your installing the local built gem, do sudo gem install wxruby-1.9.10-x86_64-linux.gem -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sat Feb 7 21:57:50 2009 From: lists at ruby-forum.com (Ross Goodell) Date: Sun, 8 Feb 2009 03:57:50 +0100 Subject: [wxruby-users] getting DC for a TxtCtrl In-Reply-To: <498DD110.3080407@pressure.to> References: <6b70ce38e2dbe2b5b69cd9a30da57d7a@ruby-forum.com> <498DD110.3080407@pressure.to> Message-ID: <901553c633dea22cdeeadd5409e06f87@ruby-forum.com> Alex Fenton wrote: > Do you want the character position, or the unscrolled pixel position? If > it's just the character position, use TextCtrl#hit_test plus possibly > #xy_to_position. Yes, I think the character position is all that I really need, and hit_test does the job for me > For some reason, wxWidgets doesn't provide TextCtrl#hit_test on Mac, but > it's not hard to do your own implementation. I have one kicking around > somewhere if that's what you need. Thanks. That's good to know. For now I'm concentrating on getting my program working on MS Windows. > If you want the pixel position taking into account scrolling, then > TextCtrl may not work for you. There isn't a way to get the scroll > position in pixels - get_scroll_pos doesn't work for TextCtrl in > wxWidgets. As I understand it, this is down to limitations of the > underlying OSes - the native controls don't all support getting the > scroll position in pixels. > > You might try using RichTextCtrl, which has a get_view_start method to > return the x, y scrolling offset. > > alex You've gotten me out of a jam again. Thank you very much. And thanks for the tip on RichTextCtrl, which I might want to use in a later version. Ross -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sun Feb 8 07:43:06 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sun, 8 Feb 2009 13:43:06 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498DC906.7030406@pressure.to> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> <498DC906.7030406@pressure.to> Message-ID: <4dc313d0b556e7cb2808f4141846e1e8@ruby-forum.com> > This is where you now type 'where' at the (gdb) prompt to get a > backtrace of the fault. However since it says there are "no debugging > symbols found" it may not actually help us. I'll try that again, although I don't know how relevant this test is after all the to-ing and fro-ing, but for what it's worth.... $ gdb --args ruby -rubygems minimal.rb GNU gdb Fedora (6.8-29.fc10) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... (gdb) r Starting program: /usr/bin/ruby -rubygems minimal.rb [Thread debugging using libthread_db enabled] [New Thread 0x7ffff7fe26f0 (LWP 3132)] Program received signal SIGSEGV, Segmentation fault. 0x000000315ba92530 in wxFontMapperBase::Get () from /usr/lib64/libwx_baseu-2.8.so.0 Missing separate debuginfos, use: debuginfo-install GConf2-2.24.0-1.fc10.x86_64 ORBit2-2.14.16-1.fc10.x86_64 SDL-1.2.13-6.fc10.x86_64 atk-1.24.0-1.fc10.x86_64 bug-buddy-2.24.2-1.fc10.x86_64 cairo-1.8.0-1.fc10.x86_64 dbus-glib-0.76-3.fc10.x86_64 dbus-libs-1.2.4-2.fc10.x86_64 e2fsprogs-libs-1.41.3-2.fc10.x86_64 elfutils-libelf-0.137-3.fc10.x86_64 expat-2.0.1-5.x86_64 fontconfig-2.6.0-3.fc10.x86_64 freetype-2.3.7-2.fc10.x86_64 glib2-2.18.4-1.fc10.x86_64 gstreamer-0.10.21-2.fc10.x86_64 gstreamer-plugins-base-0.10.21-2.fc10.x86_64 gtk-nodoka-engine-0.7.2-1.fc10.x86_64 gtk2-2.14.7-1.fc10.x86_64 libICE-1.0.4-4.fc10.x86_64 libSM-1.1.0-2.fc10.x86_64 libX11-1.1.4-6.fc10.x86_64 libXau-1.0.4-1.fc10.x86_64 libXcomposite-0.4.0-5.fc10.x86_64 libXcursor-1.1.9-3.fc10.x86_64 libXdamage-1.1.1-4.fc9.x86_64 libXdmcp-1.0.2-6.fc10.x86_64 libXext-1.0.4-1.fc9.x86_64 libXfixes-4.0.3-4.fc10.x86_64 libXft-2.1.13-1.fc10.x86_64 libXi-1.1.3-4.fc9.x86_64 libXinerama-1.0.3-2.fc10.x86_64 libXrandr-1.2.3-1.fc10.x86_64 libXrender-0.9.4-3.fc9.x86_64 libcanberra-0.10-3.fc10.x86_64 libcanberra-gtk2-0.10-3.fc10.x86_64 libcap-2.10-2.fc10.x86_64 libgcc-4.3.2-7.x86_64 libjpeg-6b-43.fc10.x86_64 libogg-1.1.3-9.fc9.x86_64 libpng-1.2.34-1.fc10.x86_64 libselinux-2.0.73-1.fc10.x86_64 libstdc++-4.3.2-7.x86_64 libtdb-1.1.1-26.fc10.x86_64 libtiff-3.8.2-11.fc10.x86_64 libtool-ltdl-1.5.26-4.fc10.x86_64 libvorbis-1.2.0-5.fc10.x86_64 libxcb-1.1.91-5.fc10.x86_64 libxml2-2.7.3-1.fc10.x86_64 mesa-libGLU-7.2-0.15.fc10.x86_64 pango-1.22.3-1.fc10.x86_64 pixman-0.12.0-2.fc10.x86_64 wxBase-2.8.9-1.fc10.x86_64 wxGTK-2.8.9-1.fc10.x86_64 wxGTK-gl-2.8.9-1.fc10.x86_64 zlib-1.2.3-18.fc9.x86_64 (gdb) where #0 0x000000315ba92530 in wxFontMapperBase::Get () from /usr/lib64/libwx_baseu-2.8.so.0 #1 0x000000315ba933f9 in wxFontMapperModule::OnInit () from /usr/lib64/libwx_baseu-2.8.so.0 #2 0x000000315baabcde in wxModule::DoInitializeModule () from /usr/lib64/libwx_baseu-2.8.so.0 #3 0x000000315baabebc in wxModule::InitializeModules () from /usr/lib64/libwx_baseu-2.8.so.0 #4 0x000000315ba99a1a in wxEntryStart () from /usr/lib64/libwx_baseu-2.8.so.0 #5 0x000000315ba99b4b in wxEntry () from /usr/lib64/libwx_baseu-2.8.so.0 #6 0x00007ffff6b9d5d6 in wxRubyApp::main_loop () from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so #7 0x00007ffff6b9aa17 in ?? () from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wxruby2.so #8 0x0000003152c3a3e0 in rb_call0 (klass=140737348220440, recv=140737296067360, id=25337, oid=25337, argc=0, argv=0x0, body=0x7ffff7a58738, flags=) at eval.c:5870 #9 0x0000003152c3a59a in rb_call (klass=140737348220440, recv=140737296067360, mid=25337, argc=0, argv=0x0, scope=0, self=140737348220440) at eval.c:6117 #10 0x0000003152c345f0 in rb_eval (self=140737348220440, n=) at eval.c:3490 #11 0x0000003152c3a2e3 in rb_call0 (klass=140737348220360, recv=140737348220440, id=5129, oid=5129, argc=0, argv=0x0, body=0x7ffff490ed58, flags=) at eval.c:6021 #12 0x0000003152c3a59a in rb_call (klass=140737348220360, recv=140737348220440, mid=5129, argc=0, argv=0x0, scope=0, self=140737354003280) at eval.c:6117 #13 0x0000003152c345f0 in rb_eval (self=140737354003280, n=) at eval.c:3490 #14 0x0000003152c37d70 in rb_eval (self=140737354003280, n=) at eval.c:3220 #15 0x0000003152c472db in ruby_exec_internal () at eval.c:1642 #16 0x0000003152c47325 in ruby_exec () at eval.c:1662 #17 0x0000003152c47352 in ruby_run () at eval.c:1672 #18 0x0000000000400833 in main (argc=3, argv=0x7fffffffe368, envp=) at main.c:48 (gdb) > (Alex) Not so good. Since you earlier had problems on this file before you > installed gcc, you could try doing 'rake clean' before building the gem > again. > (Mario) run rake clean, and rake clean_src, then run the previous rake > command to build the gem, and to ensure that your installing the local > built gem, do sudo gem install wxruby-1.9.10-x86_64-linux.gem I followed this invaluable advice... $ ruby minimal.rb Guess what - IT WORKED!!! Many thanks for your help throughout all this. I was starting to feel very much out of my depth and confess to being close to trying a different 64-bit distro or even reverting to a 32-bit one to get it to work. Great support, you guys, well done. I hope that, in some way, my experiences may have contributed something to your own efforts in development. With any luck I'm now on my way to experimenting and developing in this exciting environment. I hope you don't mind if I fire the odd question at you in this forum. I would be interested to know why compiling my own wxruby gem worked successfully (eventually, with your help) and the downloadable one didn't? -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sun Feb 8 11:21:16 2009 From: alex at pressure.to (Alex Fenton) Date: Sun, 08 Feb 2009 16:21:16 +0000 Subject: [wxruby-users] Problem running Samples In-Reply-To: <4dc313d0b556e7cb2808f4141846e1e8@ruby-forum.com> References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> <498DC906.7030406@pressure.to> <4dc313d0b556e7cb2808f4141846e1e8@ruby-forum.com> Message-ID: <498F067C.9020802@pressure.to> Rooby Nooby wrote: >> This is where you now type 'where' at the (gdb) prompt to get a >> backtrace of the fault. However since it says there are "no debugging >> symbols found" it may not actually help us. >> > > I'll try that again, although I don't know how relevant this test is > after all the to-ing and fro-ing, but for what it's worth.... ... > GConf2-2.24.0-1.fc10.x86_64 ORBit2-2.14.16-1.fc10.x86_64 > SDL-1.2.13-6.fc10.x86_64 atk-1.24.0-1.fc10.x86_64 > bug-buddy-2.24.2-1.fc10.x86_64 cairo-1.8.0-1.fc10.x86_64 > dbus-glib-0.76-3.fc10.x86_64 dbus-libs-1.2.4-2.fc10.x86_64 > e2fsprogs-libs-1.41.3-2.fc10.x86_64 elfutils-libelf-0.137-3.fc10.x86_64 > expat-2.0.1-5.x86_64 fontconfig-2.6.0-3.fc10.x86_64 > freetype-2.3.7-2.fc10.x86_64 glib2-2.18.4-1.fc10.x86_64 > gstreamer-0.10.21-2.fc10.x86_64 etc etc ... this list of libraries gives you an idea of the number of dependencies for wxRuby > $ ruby minimal.rb > > Guess what - IT WORKED!!! > That's great news; I hope you enjoy working with wxRuby. > I would be interested to know why compiling my own wxruby gem worked > successfully (eventually, with your help) and the downloadable one > didn't? > So would we. The basic problem is that Linux systems (esp for desktops) are made up of lots of different components, each produced by unrelated projects. Then different distros - separate teams again - assemble these in various combinations and versions. wxWidgets alone has dozens of configuration options. There's no way of being sure that the configuration where we build the gems is going to be compatible with where they get installed, so we just plump for the most common (Ubuntu) and hope for the best. When you compile your own wxRuby, it reads and adapts to the configuration of wxWidgets etc on your system. On OS X and Windows, the native GUI features that wxRuby hooks into are supplied by a single vendor in a much more controlled way, with a very limited range of versions (we basically support 2 on each: XP, Vista, 10.4, 10.5). On the other hand, setting up and using Windows compiler infrastructure with open source products is much less convenient than on Linux, so it makes sense for almost all Windows users to use the binary gems. Not a specific explanation, but hopefully some background a From mario at ruby-im.net Sun Feb 8 13:03:50 2009 From: mario at ruby-im.net (Mario Steele) Date: Sun, 8 Feb 2009 12:03:50 -0600 Subject: [wxruby-users] Problem running Samples In-Reply-To: <498F067C.9020802@pressure.to> References: <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> <498DC906.7030406@pressure.to> <4dc313d0b556e7cb2808f4141846e1e8@ruby-forum.com> <498F067C.9020802@pressure.to> Message-ID: Hello Rooby, $ ruby minimal.rb >> >> Guess what - IT WORKED!!! >> > > That's great news; I hope you enjoy working with wxRuby. > Yes, that is great news that you got it to work. > I would be interested to know why compiling my own wxruby gem worked >> successfully (eventually, with your help) and the downloadable one didn't? >> >> > > So would we. The basic problem is that Linux systems (esp for desktops) are > made up of lots of different components, each produced by unrelated > projects. Then different distros - separate teams again - assemble these in > various combinations and versions. > wxWidgets alone has dozens of configuration options. There's no way of > being sure that the configuration where we build the gems is going to be > compatible with where they get installed, so we just plump for the most > common (Ubuntu) and hope for the best. When you compile your own wxRuby, it > reads and adapts to the configuration of wxWidgets etc on your system. > > On OS X and Windows, the native GUI features that wxRuby hooks into are > supplied by a single vendor in a much more controlled way, with a very > limited range of versions (we basically support 2 on each: XP, Vista, 10.4, > 10.5). On the other hand, setting up and using Windows compiler > infrastructure with open source products is much less convenient than on > Linux, so it makes sense for almost all Windows users to use the binary > gems. > > Not a specific explanation, but hopefully some background To expand about this a bit more, Linux distros have different sets of libraries, installed in a different way, per Linux distro. Ubuntu is the most common Linux distro out there, but with the problems that are on Linux, it's kinda hard to tailor to every single possible combination. Some people don't have OpenGL Libraries installed, and if we compile the Linux Gem with OpenGL Infrastructure being present, then every place that it is installed to, needs the OpenGL Libraries. There's even standard libraries, like the C Standard Library, that differs in versions between platforms, and code compiled with newer versions of C Standard Library, won't work with an older version. It is our hope, and plan, that once we have a full 2.0 stable release, that we are going to see about getting some standard linux distro packages out there for the major linux distros, such as Fedora, Debian/Ubuntu, Mandrivia, etc, etc. But we need people who are experienced in making packages to help us get this setup, so we'll hopefully be able to get soemthing done, to where you won't have to use gem to install, but your own Package Manager. Often times, then not, it's just more simple to compile the package yourself, then to use the gem repositories, when using an Distro other then Ubuntu. Unfortunate as that may be. Just the way it is. -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Feb 9 13:15:54 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Mon, 9 Feb 2009 19:15:54 +0100 Subject: [wxruby-users] Problem running Samples In-Reply-To: References: <39189fde706acd3b0b6454ad8ddec33c@ruby-forum.com> <13b86838a5c781f237aa765637dc933d@ruby-forum.com> <4ddfce59f0fbb4b95846bc0b7155fe24@ruby-forum.com> <8089fc5436dac059760c6766bb57cc81@ruby-forum.com> <498CCD9E.6060701@pressure.to> <638e966dc5d1963b449dba9f63016704@ruby-forum.com> <0ec72c03d1248e3b7dbf722f17b6d985@ruby-forum.com> <498DC906.7030406@pressure.to> <4dc313d0b556e7cb2808f4141846e1e8@ruby-forum.com> <498F067C.9020802@pressure.to> Message-ID: Alex and Mario, many many thanks for taking the time to explain the issues regarding compiling, Linux distro's etc, and also for getting me up and running. -- Posted via http://www.ruby-forum.com/. From schmickcl at gmail.com Mon Feb 9 20:51:52 2009 From: schmickcl at gmail.com (Carlos Troncoso Phillips) Date: Mon, 09 Feb 2009 22:51:52 -0300 Subject: [wxruby-users] How to make a Dialog as a function? Message-ID: <1234230712.384.18.camel@alpha.thinkmint> Hi there! Let me state my dilema. I'm most sure that there must be working codes that does what I want. Usually, a function is just a "black box" that you feed "something", then it "does something to it", and it throws out "something else". i.e. hometown = find_hometown(employee) Well, I'd like to have a dialog where you can choose from a list, click ok and the dialog would return an answer i.e. hometown = mydlg.find_hometown(employee_array) My logics dilema is that, find_hometown must do the following: - Instance the dialog - Fill a Wx::Choice with employee_array - show modal - Let the user choose and click OK - Do some SQL magic to retrieve the hometown of the selected item - Return the value - Destroy the dialog. Everything is ok with this procedure, except that: As in ruby, the last eval is what is returned, how can I self.distroy the dialog if the return value must be the LAST line of code in the function? I've noticed that MessageDialog displays such effect, but, I'd really like to know the logic behind it. Thx everyone! -- Carlos Troncoso Phillips From lists at ruby-forum.com Mon Feb 9 22:03:18 2009 From: lists at ruby-forum.com (Bryan Ash) Date: Tue, 10 Feb 2009 04:03:18 +0100 Subject: [wxruby-users] wxRuby and Test::Unit (or Rspec or whatever) In-Reply-To: <49850E54.2080305@pressure.to> References: <85122839-E147-4E3F-A9EB-86111C297E7E@gmail.com> <34e651c8166b83f794d9e58861c6d9aa@ruby-forum.com> <49850E54.2080305@pressure.to> Message-ID: <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> Turns Nobbie works just fine with current wxRuby, the problem was with the Gem's dependence on an old wxSugar. When I just updated wxSugar most of the issues disappeared. I've uploaded it to GitHub with a gemspec, so it can be installed: gem sources -a http://gems.github.com gem install bryan-ash-wx-nobbie All the tests pass, but they do give a number of warnings like: listen is deprecated, use evt_xxx directly (C:/ruby/lib/ruby/gems/1.8/gems/bryan-ash-wx-nobbie-0.0.3.2/test/suite/app.rb:19:in `initialize') Bryan -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Feb 9 22:05:40 2009 From: lists at ruby-forum.com (Bryan Ash) Date: Tue, 10 Feb 2009 04:05:40 +0100 Subject: [wxruby-users] wxRuby and Test::Unit (or Rspec or whatever) In-Reply-To: <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> References: <85122839-E147-4E3F-A9EB-86111C297E7E@gmail.com> <34e651c8166b83f794d9e58861c6d9aa@ruby-forum.com> <49850E54.2080305@pressure.to> <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> Message-ID: <553ae9585e544d7801d1a3d073736096@ruby-forum.com> Bryan Ash wrote: > I've uploaded it to href="http://github.com/bryan-ash/wx-nobbie/tree">GitHub with a I guess posting links is easier than I thought, all I needed was: http://github.com/bryan-ash/wx-nobbie/tree Bryan -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 11 01:05:23 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 11 Feb 2009 06:05:23 +0000 Subject: [wxruby-users] How to make a Dialog as a function? In-Reply-To: <1234230712.384.18.camel@alpha.thinkmint> References: <1234230712.384.18.camel@alpha.thinkmint> Message-ID: <49926AA3.6040507@pressure.to> Hi Carlos Troncoso Phillips wrote: > Well, I'd like to have a dialog where you can choose from a list, click > ok and the dialog would return an answer > i.e. hometown = mydlg.find_hometown(employee_array) > The class to start with is Wx::SingleChoiceDialog. Your message made me look at this class for the first time and it needs a little developer attention, but it should work fine for your purposes. With dialogs the primary return value is whether or not the user chose to proceed - ie did they click 'OK' or 'Cancel' (or shut the dialog, or press )? In deciding what to do next, an application should test this before it thinks about acting upon what value was chosen. Conventionally, wxRuby dialogs signal this by returning an integer constant from show_modal. Your code should test this value, then proceed accordingly. > As in ruby, the last eval is what is returned, how can I self.distroy > the dialog if the return value must be the LAST line of code in the > function? > See the example code below as a starting point. It shows how, if you want, you can provide a class method as a quick way to select something from a list, or return 'nil' if the user cancelled the action. If you create a dialog with a parent window, then show it temporarily, you don't need to call #destroy on it. User code rarely need to call #destroy (see the docs); in most normal cases wxRuby handles window deletion and clean up automatically. alex __ require 'wx' class EmployeeDialog < Wx::SingleChoiceDialog EMPLOYEES = { 'Fred' => 'London', 'Brenda' => 'Manchester', 'Billy' => 'Glasgow' } def self.find_hometown(parent) dlg = new(parent, 'Select employee', 'Choose one', EMPLOYEES.keys) if dlg.show_modal == Wx::ID_OK return dlg.hometown else return nil end end def hometown EMPLOYEES[string_selection] end end Wx::App.run do frame = Wx::Frame.new nil, :title => 'Employeees' button = Wx::Button.new frame, :label => 'Select employee' evt_button(button) { puts EmployeeDialog.find_hometown(frame) } frame.show end From alex at pressure.to Wed Feb 11 11:25:35 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 11 Feb 2009 16:25:35 +0000 Subject: [wxruby-users] wxRuby and Test::Unit (or Rspec or whatever) In-Reply-To: <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> References: <85122839-E147-4E3F-A9EB-86111C297E7E@gmail.com> <34e651c8166b83f794d9e58861c6d9aa@ruby-forum.com> <49850E54.2080305@pressure.to> <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> Message-ID: <4992FBFF.8040109@pressure.to> Bryan Ash wrote: > Turns Nobbie works just fine with current wxRuby, the problem was with > the Gem's dependence on an old wxSugar. When I just updated wxSugar > most of the issues disappeared. > > I've uploaded it to http://github.com/bryan-ash/wx-nobbie/tree with a > gemspec, so it can be installed: > > Thanks for doing this. It looks good. I never got it working before. > All the tests pass, The test runs well for a while for me, but then segfaults after a while. This is with Ruby 1.8.6 on OS X, using the latest wxRuby. Strangely, the backtrace of the segfault is not in wxRuby code anywhere. > but they do give a number of warnings like: > > listen is deprecated, use evt_xxx directly 'listen' was in wxSugar for a while as an experiment in better event handling syntax. In the end most of what 'listen' did was rolled into core wxRuby, but there didn't seem to be any advantage to writing listen :text rather than just evt_text So I deprecated it. alex From lists at ruby-forum.com Wed Feb 11 13:07:49 2009 From: lists at ruby-forum.com (Bryan Ash) Date: Wed, 11 Feb 2009 19:07:49 +0100 Subject: [wxruby-users] wxRuby and Test::Unit (or Rspec or whatever) In-Reply-To: <4992FBFF.8040109@pressure.to> References: <85122839-E147-4E3F-A9EB-86111C297E7E@gmail.com> <34e651c8166b83f794d9e58861c6d9aa@ruby-forum.com> <49850E54.2080305@pressure.to> <566e59a1eeea3e0cb452ef709498dc43@ruby-forum.com> <4992FBFF.8040109@pressure.to> Message-ID: <2767498996863339118002cca94bb10f@ruby-forum.com> Alex Fenton wrote: > The test runs well for a while for me, but then segfaults after a while. > This is with Ruby 1.8.6 on OS X, using the latest wxRuby. Strangely, the > backtrace of the segfault is not in wxRuby code anywhere. The original author, Paul, had mentioned that in the KNOWN_ISSUES. I'm still waiting for someone to donate a MacBook Pro to me so I can investigate these ;-) Bryan -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Feb 11 18:47:53 2009 From: lists at ruby-forum.com (Zhimin Zhan) Date: Thu, 12 Feb 2009 00:47:53 +0100 Subject: [wxruby-users] How to hide horizontal scrollbar in StyledTextCtrl? Message-ID: <0a0988e80636a6baaed2104bbf8fd21c@ruby-forum.com> Hi, The StyledTextCtrl sample (samples\scintilla.rb) shows the horizontal scrollbar by default, even there is no text in the editor. How to turn off that option? PS. The doc for StyledTextEvent is missing, http://wxruby.rubyforge.org/doc/styledtextevent Thanks, Zhimin -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Thu Feb 12 03:46:59 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 12 Feb 2009 08:46:59 +0000 Subject: [wxruby-users] How to hide horizontal scrollbar in StyledTextCtrl? In-Reply-To: <0a0988e80636a6baaed2104bbf8fd21c@ruby-forum.com> References: <0a0988e80636a6baaed2104bbf8fd21c@ruby-forum.com> Message-ID: <4993E203.6040808@pressure.to> Zhimin Zhan wrote: > The StyledTextCtrl sample (samples\scintilla.rb) shows the horizontal > scrollbar by default, even there is no text in the editor. How to turn > off that option? > stc.use_horizontal_scroll_bar = false > PS. The doc for StyledTextEvent is missing, > http://wxruby.rubyforge.org/doc/styledtextevent > Thanks for pointing out the broken link, it should be to: http://wxruby.rubyforge.org/doc/styledtextevent.html alex From lists at ruby-forum.com Thu Feb 12 17:37:38 2009 From: lists at ruby-forum.com (Zhimin Zhan) Date: Thu, 12 Feb 2009 23:37:38 +0100 Subject: [wxruby-users] How to hide horizontal scrollbar in StyledTextCtrl? In-Reply-To: <4993E203.6040808@pressure.to> References: <0a0988e80636a6baaed2104bbf8fd21c@ruby-forum.com> <4993E203.6040808@pressure.to> Message-ID: Alex Fenton wrote: > stc.use_horizontal_scroll_bar = false Thanks, Alex. What I really wanted was to show horizontal scroll bar as needed, following your reply, I added set_scroll_width(100) That seemed solved my problem. The default scroll width (calling get_scroll_width) was set 2000. Regards, Zhimin -- Posted via http://www.ruby-forum.com/. From bureaux.sebastien at neuf.fr Fri Feb 13 01:08:05 2009 From: bureaux.sebastien at neuf.fr (sebastien) Date: Fri, 13 Feb 2009 07:08:05 +0100 Subject: [wxruby-users] =?iso-8859-1?q?t=E9l=E9chargement_et_affichage_d?= =?iso-8859-1?q?=27image_avec_HtmlWindow?= Message-ID: Bonjour ? tous. Je ne trouve pas la m?thode qui pourrait me permettre de t?l?charger des images sur le web sans avoir ce genre de message d'erreur quand je les affiches avec "HtmlWindow": Corrupt JPEG data: 1 extraneous bytes before marker 0xdb Quelles m?thodes peut-on utilis?? Je vous remercie. S?bastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From alex at pressure.to Fri Feb 13 02:02:44 2009 From: alex at pressure.to (Alex Fenton) Date: Fri, 13 Feb 2009 07:02:44 +0000 Subject: [wxruby-users] =?iso-8859-1?q?t=E9l=E9chargement_et_affichage_d?= =?iso-8859-1?q?=27image_avec_HtmlWindow?= In-Reply-To: References: Message-ID: <49951B14.8010107@pressure.to> Hi sebastien wrote: > Je ne trouve pas la m?thode qui pourrait me permettre de t?l?charger > des images sur le web sans avoir ce genre de message d'erreur quand je > les affiches avec "HtmlWindow": > Corrupt JPEG data: 1 extraneous bytes before marker 0xdb > Quelles m?thodes peut-on utilis?? [Sebastien asked: I haven't found a way of downloading an image from the web without having this sort of message when I display it with HtmlWindow: "Corrupt JPEG data: 1 extraneous byte before marker 0xdb". What method should I use.] C'est difficile de t'aider sans avoir vu le code que t'utilise pour t?l?charger et afficher l'image. Un conjecture: quand tu t?l?charges le fichier, tu l'enregistres avec File.open: File.open("image.jpg", "w") { | file | file.write(http_body) } Sur Windows, si on ?crit un fichier binaire, on doit mettre 'b' dans le deuxi?me argument ? File.open: File.open("image.jpg", "wb") { | file | file.write(http_body) } [It's difficult to help without having seen the code which you're using to download and display the image. At a guess, when you download the file, because it's a binary, you need to add 'b' to the second argument to File.open when you write it to the disk]. alex From bureaux.sebastien at neuf.fr Fri Feb 13 12:08:32 2009 From: bureaux.sebastien at neuf.fr (sebastien) Date: Fri, 13 Feb 2009 18:08:32 +0100 Subject: [wxruby-users] (sans objet) In-Reply-To: <49951B14.8010107@pressure.to> Message-ID: <0D893CB2A57E4D8EA2BA22CA0525E5A5@sebastien> Bonsoir Alex, voici la m?thode que j'utilisait en attente de trouv? la solution: lecture = open(mon_url).read open("img.jpg", "w") {|f| f << lecture} je ne savais pas qu'il fallait mettre le 'b' dans le deuxi?me argument pour ?crire un fichier binaire: File.open("image.jpg", "wb") { | file | file.write(http_body) } j'ai essayer le code ci-dessus et ?a marche. Je te remercie. S?bastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From ruby.student at gmail.com Fri Feb 13 15:15:23 2009 From: ruby.student at gmail.com (Ruby Student) Date: Fri, 13 Feb 2009 15:15:23 -0500 Subject: [wxruby-users] Is there a good book? Message-ID: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> Hi wxruby community, Can anyone recommend a good (beginner) book for wxruby? RDOC is fine once you it, but I find wx very complex and I can't find any documentation. Even the "bigdemo" is kind when one do not know the product. The tutorial is good for very, very simple things. The wxruby community is great, but I feel like a symbiotic parasite coming back and back with questions. I would prefer a good book or documentation. Thanks -- Ruby Student -------------- next part -------------- An HTML attachment was scrubbed... URL: From chauk.mean at gmail.com Fri Feb 13 16:32:08 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Fri, 13 Feb 2009 22:32:08 +0100 Subject: [wxruby-users] Is there a good book? In-Reply-To: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> References: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> Message-ID: Hi, 2009/2/13 Ruby Student : > Hi wxruby community, > > Can anyone recommend a good (beginner) book for wxruby? There is not yet a wxRuby book. > RDOC is fine once you it, but I find wx very complex and I can't find any > documentation. There is an HTML documentation that can be downloaded (see the download section from wxRuby wiki) or browsed online at http://wxruby.rubyforge.org/doc. This documentation is updated regularly (e.g. there have already been some fixes since wxRuby 2.0 RC1). > I would prefer a good book or documentation. If you're familiar with C++, you can also read the wxWidgets C++ book which is freely downloadable. http://www.phptr.com/content/images/0131473816/downloads/0131473816_book.pdf Cheers. Chauk-Mean. From alex at pressure.to Sat Feb 14 06:19:58 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 14 Feb 2009 11:19:58 +0000 Subject: [wxruby-users] Is there a good book? In-Reply-To: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> References: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> Message-ID: <4996A8DE.9050209@pressure.to> Ruby Student wrote: > Can anyone recommend a good (beginner) book for wxruby? As Chauk-Mean says there is a good book about wxWidgets which can be had free. You can read the text of this to understand the classes, then come back to wxRuby docs and samples to try them out. There's also a wxPython book. I haven't seen it, but with Python being more similar than C++ to Ruby, the code can be easier to understand. For example, I was reading the "wxPython style guide" yesterday and nearly everything in it I would recommend for Ruby too. http://wiki.wxpython.org/wxPython%20Style%20Guide > The wxruby community is great, but I feel like a symbiotic parasite > coming back and back with questions. Don't feel like that. So long as you've made a reasonable effort to find the answer using the material available to you (docs, samples, web search), no-one minds. Other people benefit through the mailing list and then the archives being available. wxRuby is a big library (~300 classes) and I often still find out new things fielding questions. A useful search tactic is to try converting the search terms back to C++ / Python naming. For example, I was trying to figure something out about the set_focus method of Wx::Window. Searching for "wxWindow SetFocus" turned up the answer I was looking for on the wxPython and wxWidgets mailing lists. hth alex From lists at ruby-forum.com Sat Feb 14 07:15:55 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sat, 14 Feb 2009 13:15:55 +0100 Subject: [wxruby-users] Is there a good book? In-Reply-To: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> References: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> Message-ID: <8373520daa2895efbb7d8fb05631f3a7@ruby-forum.com> Hi Ruby Student I'm in exactly the same position as yourself. I'm struggling to learn wxRuby/wxWidgets and Ruby, all at the same time, and progress is very slow but I'm determined to crack it! There's certainly a market for such a book and I'd just like to add my support for your cause. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Sat Feb 14 10:06:20 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sat, 14 Feb 2009 16:06:20 +0100 Subject: [wxruby-users] Undefined method (XRC problem) Message-ID: I'm trying to get my first small test wxRuby app up and running. I have created an XRC file using DialogBlocks and then used xrcise to produce the ruby code which loads it. I then did a bit of cutting and pasting to produce my own ruby code to add functionality. However I keep running into the same problem of 'undefined method'. I've tried lots of different alternatives to get_selection (ie, value, get_value, get_item_data etc but with no luck). I'm sure I'm doing something wrong that someone will find to be a basic error (hopefully!). Happy to post XRC file if necessary. Any help gratefully appreciated. ___ The error message:__________________________________________________ $ ruby xrctest.rb xrctest.rb:10:in `generatetext': undefined method `get_selection' for nil:NilClass (NoMethodError) from xrctest.rb:18:in `initialize' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16:in `call' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16:in `process_event' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16:in `on_run' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16:in `main_loop' from /usr/lib/ruby/gems/1.8/gems/wxruby-1.9.10-x86_64-linux/lib/wx/classes/app.rb:16:in `run' from xrctest.rb:23 ___Xrcise produced this (myframe.rb):__________________________________ class FrameBaseClass < Wx::Frame attr_reader :id_choice_select, :id_datectrl, :id_button_test, :id_textctrl_test, :id_button_close def initialize(parent = nil) super() xml = Wx::XmlResource.get xml.flags = 2 # Wx::XRC_NO_SUBCLASSING xml.init_all_handlers xml.load("testwindow.xrc") xml.load_frame_subclass(self, parent, "ID_WXFRAME") finder = lambda do | x | int_id = Wx::xrcid(x) begin Wx::Window.find_window_by_id(int_id, self) || int_id # Temporary hack to work around regression in 1.9.2; remove # begin/rescue clause in later versions rescue RuntimeError int_id end end @id_choice_select = finder.call("id_choice_select") @id_datectrl = finder.call("id_datectrl") @id_button_test = finder.call("id_button_test") @id_textctrl_test = finder.call("id_textctrl_test") @id_textctrl_test.extend(ClassTextCtrl) @id_button_close = finder.call("id_button_close") if self.class.method_defined? "on_init" self.on_init() end end end ___And my own code (xrctest.rb):__________________________________ require 'rubygems' require 'wx' # load in the generated code require 'myframe' # Mix-in module ClassTextCtrl def generatetext self.value = @id_choice_select.get_selection end end # Inherit from the generated base class and set up event handlers class FrameBase < FrameBaseClass def initialize super() evt_button(id_button_test) { id_textctrl_test.generatetext } end end # Run the class Wx::App.run do FrameBase.new.show end -- Posted via http://www.ruby-forum.com/. From fabio.petrucci at gmail.com Sat Feb 14 14:07:08 2009 From: fabio.petrucci at gmail.com (Fabio Petrucci) Date: Sat, 14 Feb 2009 20:07:08 +0100 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: References: Message-ID: Hi Rooby Nooby, @id_choice_select = finder.call("id_choice_select") > It look like your xrc file lack or mispelled the name "id_choice_select". bio. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruby.student at gmail.com Sat Feb 14 16:55:40 2009 From: ruby.student at gmail.com (Ruby Student) Date: Sat, 14 Feb 2009 16:55:40 -0500 Subject: [wxruby-users] Is there a good book? In-Reply-To: <8373520daa2895efbb7d8fb05631f3a7@ruby-forum.com> References: <345817580902131215i2429a59y186f337b712d8be4@mail.gmail.com> <8373520daa2895efbb7d8fb05631f3a7@ruby-forum.com> Message-ID: <345817580902141355k3ab9975dkc49ea2cddfef58ce@mail.gmail.com> On Sat, Feb 14, 2009 at 7:15 AM, Rooby Nooby wrote: > Hi Ruby Student > > I'm in exactly the same position as yourself. I'm struggling to learn > wxRuby/wxWidgets and Ruby, all at the same time, and progress is very > slow but I'm determined to crack it! There's certainly a market for such > a book and I'd just like to add my support for your cause. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > Thanks to everyone for their comments. It is truly appreciated! -- Ruby Student -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Feb 15 00:17:52 2009 From: lists at ruby-forum.com (Peter Wu) Date: Sun, 15 Feb 2009 06:17:52 +0100 Subject: [wxruby-users] Compatibility Issues? Message-ID: I'm running Ruby 1.9.1 (Win32) and I installed the wxruby-1.9.10-x86-mswin32-60 gem. But when I try to run a script with it, I get an error, "This application has failed to start because msvcrt-ruby18.dll was not found." I also get this output: C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wx.rb:12:in `require': 126: The specified module could not be found. - C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wxruby2.so (LoadError) from C:/Program Files/Ruby/lib/ruby/gems/1.9.1/gems/wxruby-1.9.10-x86-mswin32-60/lib/wx.rb:12:in `' from HelloWorld.rb:2:in `require' from HelloWorld.rb:2:in `
' I assume that it's looking for a legacy library from 1.8.x, how can I fix this? -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sun Feb 15 07:24:35 2009 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 Feb 2009 12:24:35 +0000 Subject: [wxruby-users] Compatibility Issues? (Ruby 1.9) In-Reply-To: References: Message-ID: <49980983.4030101@pressure.to> Hi Peter Wu wrote: > I'm running Ruby 1.9.1 (Win32) and I installed the > wxruby-1.9.10-x86-mswin32-60 gem. > Any binary gem compiled for Ruby 1.8 won't work with Ruby 1.9. There's various ways you can get started using wxRuby with Ruby 1.9 on Windows; see the comments on this tracker item: http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group_id=35&atid=218 alex From lists at ruby-forum.com Sun Feb 15 12:27:48 2009 From: lists at ruby-forum.com (Peter Wu) Date: Sun, 15 Feb 2009 18:27:48 +0100 Subject: [wxruby-users] Compatibility Issues? (Ruby 1.9) In-Reply-To: <49980983.4030101@pressure.to> References: <49980983.4030101@pressure.to> Message-ID: Alex Fenton wrote: > Any binary gem compiled for Ruby 1.8 won't work with Ruby 1.9. > > There's various ways you can get started using wxRuby with Ruby 1.9 on > Windows; see the comments on this tracker item: > > http://rubyforge.org/tracker/index.php?func=detail&aid=23860&group_id=35&atid=218 So pretty much if I want wxRuby with my currently installed binaries I'm going to have to compile my own from source, is that right? I suspected as much, though I was hoping that I wouldn't have to. -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sun Feb 15 12:48:02 2009 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 Feb 2009 17:48:02 +0000 Subject: [wxruby-users] Compatibility Issues? (Ruby 1.9) In-Reply-To: References: <49980983.4030101@pressure.to> Message-ID: <49985552.8070307@pressure.to> Peter Wu wrote: > So pretty much if I want wxRuby with my currently installed binaries I'm > going to have to compile my own from source, is that right? > No; as it says, you could first try installing the mingw-ruby19 gem onto the mswin build. Download the gem manually then do gem install --force I haven't tried this with 1.9, but it works with 1.8. It's probably not recommended for production use. > I suspected as much, though I was hoping that I wouldn't have to. > You may find this thread useful: http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html I don't know if these problems were ever resolved. Since the main ruby distribution for Windows is moving over to MingW, fixing support for MSVC builds with Ruby 1.9 hasn't been a high priority. We'll happily integrate any needed fixes though. a From lists at ruby-forum.com Sun Feb 15 13:53:33 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Sun, 15 Feb 2009 19:53:33 +0100 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: References: Message-ID: >> @id_choice_select = finder.call("id_choice_select") > It look like your xrc file lack or mispelled the name > "id_choice_select". Fabio - thanks for your suggestion but I'm not sure that's the case or indeed the problem here. Still no luck with this - any other ideas gratefully appreciated. -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Sun Feb 15 14:06:53 2009 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 Feb 2009 19:06:53 +0000 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: References: Message-ID: <499867CD.4010504@pressure.to> Rooby Nooby wrote: > Fabio - thanks for your suggestion but I'm not sure that's the case or > indeed the problem here. Still no luck with this - any other ideas > gratefully appreciated. > It's because @id_choice_select is an instance variable of the FrameBaseClass instance. When you are in the method generatetext, "self" is the TextCtrl, not the Frame. If you were to rewrite the event handler as: evt_button(...) { id_textctrl_text.value = id_choice_select.selection } it should work a From mario at ruby-im.net Sun Feb 15 15:16:21 2009 From: mario at ruby-im.net (Mario Steele) Date: Sun, 15 Feb 2009 14:16:21 -0600 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: References: Message-ID: The problem is, two things that I can see. First, I don't see where your actually mixing in the module ClassTextCtrl into the instance of id_textctrl_test. You need to do something like this in your initialization function: class << @id_textctrl_test extend ClassTextCtrl end Second, your trying to access an instance variable that is defined in the FrameBase class, from the TextCtrl class. Which is where your nil is coming from. My suggestion would be to do this in your module function: def generatetext self.value = self.parent.id_choice_select.get_selection end This should solve your problem, and make it work properly. On Sun, Feb 15, 2009 at 12:53 PM, Rooby Nooby wrote: > >> @id_choice_select = finder.call("id_choice_select") > > > It look like your xrc file lack or mispelled the name > > "id_choice_select". > > Fabio - thanks for your suggestion but I'm not sure that's the case or > indeed the problem here. Still no luck with this - any other ideas > gratefully appreciated. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > wxruby-users mailing list > wxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sun Feb 15 16:38:25 2009 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 Feb 2009 21:38:25 +0000 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: References: Message-ID: <49988B51.5030708@pressure.to> Mario Steele wrote: > The problem is, two things that I can see. First, I don't see where > your actually mixing in the module ClassTextCtrl into the instance of > id_textctrl_test. Mario - the code that xrcise generates does this for you. If you define a "subclass" for a widget in the XRC editor, xrcise will generate code that does @widget.extend SubClass which is all you need; this is too much, I think: > class << @id_textctrl_test > extend ClassTextCtrl > end cheers alex From lists at ruby-forum.com Mon Feb 16 13:57:01 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Mon, 16 Feb 2009 19:57:01 +0100 Subject: [wxruby-users] Undefined method (XRC problem) In-Reply-To: <49988B51.5030708@pressure.to> References: <49988B51.5030708@pressure.to> Message-ID: <9a38477719c65fdb2059f1e40eff1026@ruby-forum.com> Some great suggestions here guys, many thanks again for taking the time to come to the rescue. I've had a number of successes based on your suggestions and I'm now starting to pick up some speed in developing in wxRuby (and finally starting to have some fun in the process). -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Feb 16 14:07:10 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Mon, 16 Feb 2009 20:07:10 +0100 Subject: [wxruby-users] wxDatePickerCtrl In-Reply-To: References: <4939A477.1040507@pressure.to> Message-ID: May I ask if the wxDatePickerCtrl is now supported in the latest wxRuby? If so how would you obtain a value from it? Many thanks :) -- Posted via http://www.ruby-forum.com/. From chauk.mean at gmail.com Mon Feb 16 15:10:19 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Mon, 16 Feb 2009 21:10:19 +0100 Subject: [wxruby-users] Compatibility Issues? (Ruby 1.9) In-Reply-To: <49985552.8070307@pressure.to> References: <49980983.4030101@pressure.to> <49985552.8070307@pressure.to> Message-ID: Hi, 2009/2/15 Alex Fenton : > Peter Wu wrote: >> >> So pretty much if I want wxRuby with my currently installed binaries I'm >> going to have to compile my own from source, is that right? >> > > No; as it says, you could first try installing the mingw-ruby19 gem onto the > mswin build. Download the gem manually then do gem install --force > > > I haven't tried this with 1.9, but it works with 1.8. It's probably not > recommended for production use. I've been able to install the mingw-ruby19 gem onto the ruby-1.9.1-p0 mswin build (from ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.9.1-p0-i386-mswin32.zip). But running a wxruby sample causes a crash. >> I suspected as much, though I was hoping that I wouldn't have to. > > You may find this thread useful: > > http://rubyforge.org/pipermail/wxruby-development/2009-January/001490.html > > I don't know if these problems were ever resolved. wxRuby still does not build yet with MSVC for ruby-1.9.1. Chauk-Mean. From chauk.mean at gmail.com Tue Feb 17 03:39:51 2009 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Tue, 17 Feb 2009 09:39:51 +0100 Subject: [wxruby-users] wxDatePickerCtrl In-Reply-To: References: <4939A477.1040507@pressure.to> Message-ID: Hi, 2009/2/16 Rooby Nooby : > May I ask if the wxDatePickerCtrl is now supported in the latest wxRuby? Yes it is supported. > If so how would you obtain a value from it? Many thanks :) This is documented at http://wxruby.rubyforge.org/doc/datepickerctrl.html Chauk-Mean. From lists at ruby-forum.com Tue Feb 17 06:56:44 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Tue, 17 Feb 2009 12:56:44 +0100 Subject: [wxruby-users] wxDatePickerCtrl In-Reply-To: References: <4939A477.1040507@pressure.to> Message-ID: > Yes it is supported. Thank you for that, great news. > This is documented at > http://wxruby.rubyforge.org/doc/datepickerctrl.html Sorry I should have mentioned that I have already looked at this page and have tried some of the methods but without success, hence my asking about the widget being supported. Currently, id_datectrl_from.get_value produces the following: # Is this what you would expect, and if so, how would you obtain a date value from it? One thing mentioned on this page is "It is only available if USE_DATEPICKCTRL is set to $1$" - how would I go about checking or implementing this? -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Tue Feb 17 07:36:18 2009 From: alex at pressure.to (Alex Fenton) Date: Tue, 17 Feb 2009 12:36:18 +0000 Subject: [wxruby-users] wxDatePickerCtrl In-Reply-To: References: <4939A477.1040507@pressure.to> Message-ID: <499AAF42.7020507@pressure.to> Rooby Nooby wrote: > Sorry I should have mentioned that I have already looked at this page > and have tried some of the methods but without success, hence my asking > about the widget being supported. Currently, id_datectrl_from.get_value > produces the following: > > # > > Is this what you would expect, and if so, how would you obtain a date > value from it? > No, it's a bug. Thanks for the report. It should return a ruby Time object (as other classes eg CalendarCtrl do). Ufnortunately you won't be able to do anything useful with the current return value. It should be easy to fix - the SWIG typemap for wxDateTime that's applied to wxDateTime& needs to be applied to wxDateTime. For some reason wxWidgets has one class return an C++ object and the other a C++ reference. > One thing mentioned on this page is "It is only available if > USE_DATEPICKCTRL is set to $1$" - how would I go about checking or > implementing this? Ignore this. From lists at ruby-forum.com Tue Feb 17 08:45:09 2009 From: lists at ruby-forum.com (Rooby Nooby) Date: Tue, 17 Feb 2009 14:45:09 +0100 Subject: [wxruby-users] wxDatePickerCtrl In-Reply-To: <499AAF42.7020507@pressure.to> References: <4939A477.1040507@pressure.to> <499AAF42.7020507@pressure.to> Message-ID: > No, it's a bug. Thanks for the report. Glad to be of help! > It should be easy to fix - the SWIG typemap for wxDateTime that's > applied to wxDateTime& needs to be applied to wxDateTime. For some > reason wxWidgets has one class return an C++ object and the other a C++ > reference. Er, yes, that's just what I thought! Anyway I hope it's easy to fix and I look forward to being able to use the datepicker shortly. -- Posted via http://www.ruby-forum.com/. From davidp at touringcyclist.com Wed Feb 18 18:29:09 2009 From: davidp at touringcyclist.com (David Peoples) Date: Wed, 18 Feb 2009 17:29:09 -0600 Subject: [wxruby-users] Validation and ComboBox Message-ID: <1234999749.536.14.camel@guppy> I'm trying to make a ComboBox that can be typed into but only accepts entries that are already in the drop-down list. I hoped a combination of the CB_DROPDOWN style and a TextValidator with the FILTER_INCLUDE_LIST would make that happen, but the validator seems to be ignored. Is that combination supposed to do what I want? If so, please review the code below and let me know where my mistake is. Relevant libraries/platform: Ubuntu 8.04, Ruby 1.8.6, wxWidgets 2.8.9 (deb from the apt.wxwidgets.org repository), wxruby 1.9.10 gem. David Peoples ----- #!/usr/bin/env ruby require 'wx' class MyFrame < Wx::Frame def initialize(title) super(nil, :title => title, :size => [ 400, 300 ]) panel = Wx::Panel.new(self, -1) @combo_choices = ["Apple", "Aardvark", "Banana", "Berry", "Canada", "Cantaloupe", "Cauliflower", "Dummy"] validator = Wx::TextValidator.new(Wx::FILTER_INCLUDE_LIST) validator.includes = @combo_choices combobox = Wx::ComboBox.new(panel, -1, "", Wx::Point.new(15,15), Wx::Size.new(-1,-1), @combo_choices, Wx::CB_DROPDOWN, validator, "my_combobox") end end Wx::App.run do self.app_name = "Test validated combobox" frame = MyFrame.new("ComboBox test") frame.show end From alex at pressure.to Wed Feb 18 20:06:00 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 19 Feb 2009 01:06:00 +0000 Subject: [wxruby-users] Validation and ComboBox In-Reply-To: <1234999749.536.14.camel@guppy> References: <1234999749.536.14.camel@guppy> Message-ID: <499CB078.7060809@pressure.to> David Peoples wrote: > I'm trying to make a ComboBox that can be typed into but only accepts > entries that are already in the drop-down list. I'm presumably missing something, but why not just use a Wx::Choice if you want a fixed list? > I hoped a combination of > the CB_DROPDOWN style and a TextValidator with the FILTER_INCLUDE_LIST > would make that happen, but the validator seems to be ignored. Is that > combination supposed to do what I want? Thanks for mentioning this, as I hadn't really looked into this use of Validators before. Firstly, from an assertion failure I get with the debug build, it seems TextValidator is only for use with TextCtrl, not anything else like ComboBox. With INCLUDE_LIST and EXCLUDE_LIST, the Validator clearly can't validate on each keystroke as it does with the other types, where it blocks incorrect characters (eg limiting it to numerics only). wxWidgets expects the control to be part of a Dialog, and validates it only when the Dialog is dismissed. Since the automatic message one gets on a validation failure is not very helpful anyway (it's hardcoded to "XXXX is not valid"), I'd suggest it'd be easier to roll your own. Trap the event when the contents should be checked (eg evt_kill_focus, or clicking "OK" on a dialog button) and act accordingly, eg combobox.evt_kill_focus do unless @combo_choices.include?(combobox.value) # do some warning end end alex From davidp at touringcyclist.com Wed Feb 18 23:39:45 2009 From: davidp at touringcyclist.com (David Peoples) Date: Wed, 18 Feb 2009 22:39:45 -0600 Subject: [wxruby-users] Validation and ComboBox In-Reply-To: <499CB078.7060809@pressure.to> References: <1234999749.536.14.camel@guppy> <499CB078.7060809@pressure.to> Message-ID: <1235018385.8313.27.camel@guppy> On Thu, 2009-02-19 at 01:06 +0000, Alex Fenton wrote: > David Peoples wrote: > > I'm trying to make a ComboBox that can be typed into but only accepts > > entries that are already in the drop-down list. > > I'm presumably missing something, but why not just use a Wx::Choice if > you want a fixed list? > My application needs to allow fairly high speed heads-down text entry with as close to zero mouse use as possible. The Wx::Choice control has a very clumsy keyboard interface. The app I'm converting was written in Delphi on Windows, and the custom combobox controls there had an excellent keyboard driven autocomplete operation I'm trying to emulate here. After looking closer at the docs I realized that I can get fairly close to what I want with an evt_text() handler and manipulating the text with ComboBox#set_value. ComboBox#set_text_selection_range isn't doing at all what I expected, so I'll probably work around *that* by displaying the list of potential matches somewhere below the combobox control while text entry is going on. Kludgy and a lot of work, but at least probably *will* work. I've never stopped being shocked at how crude some of the controls are in Gtk and KDE, compared to what I was used to. At least wxWidgets gives fairly easy access to the edit control in the combobox, which none of the other ruby GUIs do, as far as I could work out. Thanks for your help! David From alex at pressure.to Thu Feb 19 01:33:44 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 19 Feb 2009 06:33:44 +0000 Subject: [wxruby-users] Validation and ComboBox In-Reply-To: <1235018385.8313.27.camel@guppy> References: <1234999749.536.14.camel@guppy> <499CB078.7060809@pressure.to> <1235018385.8313.27.camel@guppy> Message-ID: <499CFD48.3070403@pressure.to> David Peoples wrote: > My application needs to allow fairly high speed heads-down text entry > with as close to zero mouse use as possible. The Wx::Choice control has > a very clumsy keyboard interface. The app I'm converting was written in > Delphi on Windows, and the custom combobox controls there had an > excellent keyboard driven autocomplete operation I'm trying to emulate > here. > Makes sense. I implemented a control similar to this, can't find the code now but it went roughly like: evt_text(combobox) do val = combobox.value if @last_val == val # deletion val = val[0..-2] end matches = @combo_choices.grep(/^#{val}/) combobox.clear combobox.append matches if not matches.empty? combobox.value = matches.first combobox.set_text_selection_range( val.length, matches.first.length) end @last_val = val end Obviously you'd probably want to refine this and turn it into a self-contained class. But it should be usable completely keyboard-driven. a From amichelins at gmail.com Fri Feb 20 09:14:35 2009 From: amichelins at gmail.com ((gmail) Alejandro Michelin Salomon) Date: Fri, 20 Feb 2009 11:14:35 -0300 Subject: [wxruby-users] Problem with special characters Message-ID: <00aa01c99365$90e61eb0$b2b25c10$@com> Hi: I am makeing a basic program with wxruby. Is a frame with a Wx::Notebook inside. The notebook has two tabs. The first tab has a grid with 3 columns. I am using dbi to load data from database, to fill the rows. But the column 3 that is a description, is not fill when the description has special characters like ??, ?, ??; But dbi returns the special characters, i create a file to write the returned data for test. And when i edit the file the text are ok. My program is : require 'wx'; require "dbi"; class BasicGridApp < Wx::App def on_init begin @frame = Wx::Frame.new( nil , -1 , "Basic Grid Application", Wx::Point.new(10,10), Wx::Size.new(760,550) ); @note = Wx::Notebook.new( @frame, -1, Wx::Point.new(0,0), Wx::Size.new(400,400), 0, "NoteBook" ); @TabWindow = Wx::Window.new( @note, -1, Wx::Point.new(0,0), Wx::Size.new(100,100), 0, "Tab1"); @TabWindow1 = Wx::Window.new( @note, -1, Wx::Point.new(0,0), Wx::Size.new(100,100), 0, "Tab2"); @grid = Wx::Grid.new( @TabWindow , -1, Wx::Point.new(0,0), Wx::Size.new(400,400), 0, "Grid"); @grid.create_grid( 40 , 4 ); @grid.set_col_label_value( 0, "ID" ); @grid.set_col_label_value( 1, "Avrevia??o" ); @grid.set_col_label_value( 2, "Descri??o" ); @grid.set_col_label_size( 24 ); @grid.set_row_label_size( 24 ); # connect to the MySQL server dbh = DBI.connect("DBI:Mysql:test:localhost", "test", "er5aa5h"); sth = dbh.execute("SELECT iduf, ufdesc, descricao COLLATE latin1_bin AS descricao FROM uf "); contador = 0; sth.each do |row| @grid.set_col_format_number( 0 ); @grid.set_cell_value( contador, 0, row[0].to_s ); # ID @grid.set_cell_value( contador, 1, row[1] ); # short description @grid.set_cell_value( contador, 2, row[2] ); # description contador += 1; end sth.finish; rescue DBI::DatabaseError => e puts "An error occurred"; puts "Error code: #{e.err}"; puts "Error message: #{e.errstr}"; ensure # disconnect from server dbh.disconnect if dbh; end @note.add_page( @TabWindow, "Titulo1", true, -1); @note.add_page( @TabWindow1, "Titulo2", false, -1); @frame.show(); end end b = BasicGridApp.new(); b.main_loop(); Can you give my some ligth? Thanks in advance _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 090219-0, 19/02/2009 Tested on: 20/02/2009 11:14:33 avast! - copyright (c) 1988-2009 ALWIL Software. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Fri Feb 20 14:05:30 2009 From: alex at pressure.to (Alex Fenton) Date: Fri, 20 Feb 2009 19:05:30 +0000 Subject: [wxruby-users] Problem with special characters In-Reply-To: <00aa01c99365$90e61eb0$b2b25c10$@com> References: <00aa01c99365$90e61eb0$b2b25c10$@com> Message-ID: <499EFEFA.3090501@pressure.to> > > I am using dbi to load data from database, to fill the rows. > > But the column 3 that is a description, is not fill when the > description has special characters like ??, ?, ??; > A wxRuby application can display any character of any script - but any string that's passed into wxRuby must be UTF-8. I would guess that your database is using some 8-bit encoding like iso-8859-1. You should either: 1) convert your database to use utf-8 internally. This is the best solution if you're able to design it from the start. 2) convert strings coming from the database to utf-8, using Ruby's standard 'Iconv' library, or, if you're using Ruby 1.9, new string methods like "encode!". hth alex From amichelins at gmail.com Fri Feb 20 15:27:14 2009 From: amichelins at gmail.com ((gmail) Alejandro Michelin Salomon) Date: Fri, 20 Feb 2009 17:27:14 -0300 Subject: [wxruby-users] RES: Problem with special characters In-Reply-To: <499EFEFA.3090501@pressure.to> References: <00aa01c99365$90e61eb0$b2b25c10$@com> <499EFEFA.3090501@pressure.to> Message-ID: <00bf01c99399$9ff9d700$dfed8500$@com> Alex : Thanks is working. I have a question descricao = Iconv.iconv( 'utf-8', 'cp1252', row[2] ); @grid.set_cell_value( contador, 2, descricao.to_s ); What i need make to_s to the result of Iconv.iconv? If i put descricao wihtout to_s the set_cell_value give error ?set_cell_value: can't convert Array into String (TypeError)? Iconv.iconv returns array type? Thanks in advance De: wxruby-users-bounces at rubyforge.org [mailto:wxruby-users-bounces at rubyforge.org] Em nome de Alex Fenton Enviada em: sexta-feira, 20 de fevereiro de 2009 16:06 Para: General discussion of wxRuby Assunto: Re: [wxruby-users] Problem with special characters > > I am using dbi to load data from database, to fill the rows. > > But the column 3 that is a description, is not fill when the > description has special characters like ??, ?, ??; > A wxRuby application can display any character of any script - but any string that's passed into wxRuby must be UTF-8. I would guess that your database is using some 8-bit encoding like iso-8859-1. You should either: 1) convert your database to use utf-8 internally. This is the best solution if you're able to design it from the start. 2) convert strings coming from the database to utf-8, using Ruby's standard 'Iconv' library, or, if you're using Ruby 1.9, new string methods like "encode!". hth alex _______________________________________________ wxruby-users mailing list wxruby-users at rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users _____ avast! Antivirus : Inbound message clean. Virus Database (VPS): 090219-0, 19/02/2009 Tested on: 20/02/2009 16:45:44 avast! - copyright (c) 1988-2009 ALWIL Software. _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 090219-0, 19/02/2009 Tested on: 20/02/2009 17:27:11 avast! - copyright (c) 1988-2009 ALWIL Software. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at ruby-im.net Fri Feb 20 21:29:00 2009 From: mario at ruby-im.net (Mario Steele) Date: Fri, 20 Feb 2009 20:29:00 -0600 Subject: [wxruby-users] RES: Problem with special characters In-Reply-To: <00bf01c99399$9ff9d700$dfed8500$@com> References: <00aa01c99365$90e61eb0$b2b25c10$@com> <499EFEFA.3090501@pressure.to> <00bf01c99399$9ff9d700$dfed8500$@com> Message-ID: On Fri, Feb 20, 2009 at 2:27 PM, (gmail) Alejandro Michelin Salomon < amichelins at gmail.com> wrote: > Alex : > > > > Thanks is working. > > > > I have a question > > > > descricao = Iconv.iconv( 'utf-8', 'cp1252', row[2] ); > > > > @grid.set_cell_value( contador, 2, descricao.to_s ); > The thing about Iconv.iconv() is that it always returns an array of strings, even if you just pass 1 string, so if your just passing 1 string, then you need to use @grid.set_cell_value( contador, 2, descricao[0]). hth, Mario -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From amichelins at gmail.com Sat Feb 21 07:15:27 2009 From: amichelins at gmail.com ((gmail) Alejandro Michelin Salomon) Date: Sat, 21 Feb 2009 09:15:27 -0300 Subject: [wxruby-users] RES: RES: Problem with special characters In-Reply-To: References: <00aa01c99365$90e61eb0$b2b25c10$@com> <499EFEFA.3090501@pressure.to> <00bf01c99399$9ff9d700$dfed8500$@com> Message-ID: <000a01c9941e$17522940$45f67bc0$@com> Mario : Works fine. Thanks a lot. De: wxruby-users-bounces at rubyforge.org [mailto:wxruby-users-bounces at rubyforge.org] Em nome de Mario Steele Enviada em: sexta-feira, 20 de fevereiro de 2009 23:29 Para: General discussion of wxRuby Assunto: Re: [wxruby-users] RES: Problem with special characters On Fri, Feb 20, 2009 at 2:27 PM, (gmail) Alejandro Michelin Salomon wrote: Alex : Thanks is working. I have a question descricao = Iconv.iconv( 'utf-8', 'cp1252', row[2] ); @grid.set_cell_value( contador, 2, descricao.to_s ); The thing about Iconv.iconv() is that it always returns an array of strings, even if you just pass 1 string, so if your just passing 1 string, then you need to use @grid.set_cell_value( contador, 2, descricao[0]). hth, Mario -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ _____ avast! Antivirus : Inbound message clean. Virus Database (VPS): 090220-0, 20/02/2009 Tested on: 21/02/2009 09:02:31 avast! - copyright (c) 1988-2009 ALWIL Software. _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 090220-0, 20/02/2009 Tested on: 21/02/2009 09:15:26 avast! - copyright (c) 1988-2009 ALWIL Software. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bureaux.sebastien at neuf.fr Sat Feb 21 16:27:03 2009 From: bureaux.sebastien at neuf.fr (sebastien) Date: Sat, 21 Feb 2009 22:27:03 +0100 Subject: [wxruby-users] =?iso-8859-1?q?Htmlwindow_et_le_programme_de_messa?= =?iso-8859-1?q?gerie_par_d=E9faut?= Message-ID: <8A438A63C02A49A58BE4735AC54A421A@sebastien> Bonjour, j'ai une application qui contient une fen?tre "htmlwindow" avec laquelle j'affiche un fichier html. Sur ma fen?tre "htmlwindow" appara?t: des liens sur lesquels je peut cliquer, pour afficher une page internet en utilisant: IO.popen => mon navigateur, donc le navigateur s'ouvre et affiche la page internet d?sir?e. des liens sur lesquels je peut cliquer, pour envoyer des mails, mais le probl?me, c'est que j'utilise la m?me commande que celle pr?c?dente, donc j'ai le navigateur qui s'ouvre et ensuite mon programme de messagerie s'ouvre pour que je puisse faire mon mail. Ce que j'aimerai pouvoir faire, c'est savoir quel programme de messagerie, l'utilisateur de mon application utilise par d?faut(sur windows), pour pouvoir ouvrir le programme de messagerie directement sans que cel? ouvre le navigateur. Y ? t-il un moyen pour pouvoir r?aliser ce que je veut faire? Si quelqu'un peut me donner quelques conseils, Je vous en remercie. S?bastien http://beusse.liveror.com/ -------------- section suivante -------------- Une pi?ce jointe HTML a ?t? nettoy?e... URL: From lists at ruby-forum.com Mon Feb 23 07:09:06 2009 From: lists at ruby-forum.com (Hoor Net) Date: Mon, 23 Feb 2009 13:09:06 +0100 Subject: [wxruby-users] Which editor In-Reply-To: <47078C44.4010602@ruby-im.net> References: <20071006130039.197560@gmx.net> <47078C44.4010602@ruby-im.net> Message-ID: What happened with these editors? Is there any that I can use for control messeges, so that I could draw controls? Not just some Python version,with some convertors etc... Mario Steele wrote: > Hey all again, > > Slight modification to my previous post, you can find it at > http://www.trilake.net/wxRIDE/ Screenshots are on the page itself. > Enjoy! > > Mario Steele -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Wed Feb 25 10:49:41 2009 From: alex at pressure.to (Alex Fenton) Date: Wed, 25 Feb 2009 15:49:41 +0000 Subject: [wxruby-users] =?iso-8859-1?q?Htmlwindow_et_le_programme_de_messa?= =?iso-8859-1?q?gerie_par_d=E9faut?= In-Reply-To: <8A438A63C02A49A58BE4735AC54A421A@sebastien> References: <8A438A63C02A49A58BE4735AC54A421A@sebastien> Message-ID: <49A56895.8030801@pressure.to> sebastien wrote: > j'ai une application qui contient une fen?tre "htmlwindow" avec > laquelle j'affiche un fichier html. ... > Ce que j'aimerai pouvoir faire, c'est savoir quel programme de > messagerie, l'utilisateur de mon application utilise par d?faut(sur > windows), pour pouvoir ouvrir le programme de messagerie directement > sans que cel? ouvre le navigateur. [Sebastien asked: I have an HtmlWindow; how can I open the default email client to send a message] wxRuby et wxWidgets n'offrent pas un moyen de faire exactement ce que tu veux, mais tu pourrais cr?er une m?thode qui va ouvrir le programme de messagerie avec une addresse pour une nouvel ?mail. ("address" au-dessus doit ?tre l'addresse du recipient) [wxRuby and wxWidgets don't provide a way of doing exactlywhat you want, but you could create a method which will open the default email client with an address for a new email] # opens system default email client and tries to create a new message to +address+ def open_email_client_with_address(address) open_cmd = case Wx::PLATFORM when 'WXMSW' then 'start' when 'WXMAC' then 'open' when 'WXGTK' then 'xdg-open' end system("#{open_cmd} mailto:#{address}") end alex From fabio.petrucci at gmail.com Thu Feb 26 03:58:38 2009 From: fabio.petrucci at gmail.com (Fabio Petrucci) Date: Thu, 26 Feb 2009 09:58:38 +0100 Subject: [wxruby-users] HtmlEasyPrinting footer Message-ID: Hi all, i'm using HtmlEasyPrinting class to easy printing effort: into my multiple pages document i need a footer or something located on the bottom of the document only once, the last page. There are three constant to use Wx::PAGE_ODD, Wx::PAGE_EVEN or Wx::PAGE_ALLbut none is suitable for what i' d like to achieve. is there any way to this? thank you all, bio. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Thu Feb 26 09:36:12 2009 From: alex at pressure.to (Alex Fenton) Date: Thu, 26 Feb 2009 14:36:12 +0000 Subject: [wxruby-users] HtmlEasyPrinting footer In-Reply-To: References: Message-ID: <49A6A8DC.1020007@pressure.to> Fabio Petrucci wrote: > i'm using HtmlEasyPrinting class to easy printing effort: > > into my multiple pages document i need a footer or something located > on the bottom of the document only once, the last page. > > There are three constant to use |Wx::PAGE_ODD|, |Wx::PAGE_EVEN| or > |Wx::PAGE_ALL| but none is suitable for what i' d like to achieve. I don't think so using HtmlEasyPrinting. I had a look at the C++ classes that implement this stuff and it appears all intended for use as-is - there aren't any hooks into customising bits of the rendering including the footers. So it looks like you will have to use the more low-level Printing classes directly, or present the "footer" at the end of the HTML body. alex From fabio.petrucci at gmail.com Thu Feb 26 15:13:48 2009 From: fabio.petrucci at gmail.com (Fabio Petrucci) Date: Thu, 26 Feb 2009 21:13:48 +0100 Subject: [wxruby-users] HtmlEasyPrinting footer In-Reply-To: <49A6A8DC.1020007@pressure.to> References: <49A6A8DC.1020007@pressure.to> Message-ID: > > So it looks like you will have to use the more low-level Printing classes > directly, or present the "footer" at the end of the HTML body. thank you alex, i will try inside the HTML body. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Sat Feb 28 08:46:29 2009 From: alex at pressure.to (Alex Fenton) Date: Sat, 28 Feb 2009 13:46:29 +0000 Subject: [wxruby-users] wxRuby 2.0.0 released Message-ID: <49A94035.9040005@pressure.to> Hi all I'm pleased to announce that wxRuby 2.0.0's now available for Ruby 1.8 and 1.9. It's a happy moment for the project, this being the first official stable release, the fruit of several years development. INSTALLATION For now, we recommend you go to the download page, download a binary gem for your platform from there, and install it locally with gem install http://rubyforge.org/frs/?group_id=35 (RubyGems seems to be offering outdated downloads when used remotely) WHAT'S NEW The majority of changes in this release are improvements and additions to the documentation and samples in RC1. A small number of bugfixes were also applied. See the ChangeLog for details. CREDITS A very big thank you to all those who've contributed to the project over the past few years to get it to this point. We plan to keep moving wxRuby forward, so stay involved and let us know what you'd like to see... all the best alex