From alex at pressure.to Sun May 1 06:03:32 2011 From: alex at pressure.to (Alex Fenton) Date: Sun, 01 May 2011 11:03:32 +0100 Subject: [wxruby-users] Help with relative address In-Reply-To: References: Message-ID: <4DBD2FF4.8020207@pressure.to> Hi Ann On 30/04/11 17:17, Ann Maybury wrote: > I am using the wiki tutorial to try to learn wxruby. I have > programmed the windows interface many times. The first two samples > ran fine, but now I am on the icon frame and need a little help. I am > aware that I could replace the offending path with a hard coded one, > but do not want to do that. It's looking for the icon file relative to the current Ruby working directory (same as it would if you used standard File.open from Ruby). You mentioned that you're running in RedMine and it looks like it's not setting the working directory to the one in which the script is saved. There are a couple of ways round this: 1) Use Dir.chdir at the start of your script to switch Ruby's working directory. Dir.chdir(File.dirname(__FILE__)) But obviously this affects other things > How do I change the line highlighted in red below so that ruby will > find this file? > ... > Wx::Icon.new("./icons/wxwin.ico", Wx::BITMAP_TYPE_ICO) 2) If you only want to change the one line, you could look up the location relative to the script, something like Wx::Icon.new( File.join( File.dirname(__FILE__), 'icons', 'wxwin.ico') ) In general, File.dirname(__FILE__) is a bit cumbersome, but proposals to introduce __DIR__ into Ruby core don't seem to have been concluded: http://redmine.ruby-lang.org/issues/3346 cheers alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun May 1 17:14:21 2011 From: lists at ruby-forum.com (Michael Hickman) Date: Sun, 01 May 2011 23:14:21 +0200 Subject: [wxruby-users] Image as a frame background Message-ID: I have created a frame, and would like to set an image as it's background. I am using DialogBlocks, and there is some sort of texture property where it appears like you can set an image as a packground. However, while it looks fine in the preview, when I compile everything, the image is not there? Is there any way to get this to work, or a way to put buttons and text over images? I am very new to wxRuby and would really appreciate the help. -- Posted via http://www.ruby-forum.com/. From ann.maybury at gmail.com Thu May 5 17:40:03 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Thu, 5 May 2011 14:40:03 -0700 Subject: [wxruby-users] How do you get a file to the printer using wxRuby? Message-ID: Can someone point me to some documentation on how to use the printer using ruby 1.9.2 or WxRuby? -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Thu May 5 22:23:21 2011 From: penguinroad at gmail.com (hendra kusuma) Date: Fri, 6 May 2011 10:23:21 +0800 Subject: [wxruby-users] How do you get a file to the printer using wxRuby? In-Reply-To: References: Message-ID: On Fri, May 6, 2011 at 5:40 AM, Ann Maybury wrote: > Can someone point me to some documentation on how to use the printer using > ruby 1.9.2 or WxRuby? > > what os do you use? if it's linux, simply system("lpr", filename) or raise "lpr failed" should do the trick -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Fri May 6 01:41:12 2011 From: alex at pressure.to (Alex Fenton) Date: Fri, 06 May 2011 06:41:12 +0100 Subject: [wxruby-users] How do you get a file to the printer using wxRuby? In-Reply-To: References: Message-ID: <4DC389F8.1020502@pressure.to> On 05/05/11 22:40, Ann Maybury wrote: > Can someone point me to some documentation on how to use the printer > using ruby 1.9.2 or WxRuby? > For the content (text, images, geometric figures) that is to be printed, a printer is a DeviceContext (DC) that is drawn to in the same way that wxRuby draws to screen. Have a look at the drawing classes (wxDC). For controlling the printer (choosing which one to use, choosing paper & orientation) there is a set of Printing classes. http://wxruby.rubyforge.org/doc/#printing There is an example in the distribution in samples/printing/printing.rb which shows both these aspects alex From lists at ruby-forum.com Fri May 6 06:44:20 2011 From: lists at ruby-forum.com (Giampiero Zanchi) Date: Fri, 06 May 2011 12:44:20 +0200 Subject: [wxruby-users] Image as a frame background In-Reply-To: References: Message-ID: <63df5a1a3d6955b0c59217df5c84f45d@ruby-forum.com> maybe this helps? http://web.archiveorange.com/archive/v/HCYBSsylNpdeoDJedVBr bye -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri May 6 08:20:14 2011 From: lists at ruby-forum.com (Giampiero Zanchi) Date: Fri, 06 May 2011 14:20:14 +0200 Subject: [wxruby-users] Image as a frame background In-Reply-To: <63df5a1a3d6955b0c59217df5c84f45d@ruby-forum.com> References: <63df5a1a3d6955b0c59217df5c84f45d@ruby-forum.com> Message-ID: <348faea5fe279352557626f6f093216c@ruby-forum.com> sorry, it's a topic from this forum: http://www.ruby-forum.com/topic/175627 -- Posted via http://www.ruby-forum.com/. From ann.maybury at gmail.com Sat May 7 00:44:17 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Fri, 6 May 2011 21:44:17 -0700 Subject: [wxruby-users] Why the & in the middle of a string? Message-ID: In the samples directory of WxRuby-ruby 192 there is a file called dialogs.rb. Within this file there is a series of menu appends . A subset of is shown below. ---------------------------------- file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour") file_menu.append_separator() file_menu.append(DIALOGS_CHOOSE_FONT, "Choose &font") ----------------------------------------------- What is the & trying to tell me? Why not just "Choose colour" or "Choose font" -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Sat May 7 01:28:11 2011 From: penguinroad at gmail.com (hendra kusuma) Date: Sat, 7 May 2011 13:28:11 +0800 Subject: [wxruby-users] Why the & in the middle of a string? In-Reply-To: References: Message-ID: On Sat, May 7, 2011 at 12:44 PM, Ann Maybury wrote: > In the samples directory of WxRuby-ruby 192 there is a file called > dialogs.rb. > > Within this file there is a series of menu appends . A subset of is shown > below. > > ---------------------------------- > file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour") > file_menu.append_separator() > file_menu.append(DIALOGS_CHOOSE_FONT, "Choose &font") > > ----------------------------------------------- > What is the & trying to tell me? Why not just "Choose colour" or "Choose > font" > -- > That give you shortcut alt+key on the label something like : *C*hoose colour and Choose *f*ont if you try running it, press alt and you will see it -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From philkez at gmail.com Sat May 7 01:46:49 2011 From: philkez at gmail.com (Phillip & Kerrie Shelton) Date: Sat, 7 May 2011 15:46:49 +1000 Subject: [wxruby-users] Why the & in the middle of a string? In-Reply-To: References: Message-ID: It has to do with keyboard short cuts. That & puts a line under the next char and when the dialog is open you can use that key to do that action instead of the mouse. So with the sample dialog in your email, if you type 'c' you will open the colour chooser and 'f' gets you the font dialog On 07/05/2011 3:14 PM, "Ann Maybury" wrote: In the samples directory of WxRuby-ruby 192 there is a file called dialogs.rb. Within this file there is a series of menu appends . A subset of is shown below. ---------------------------------- file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour") file_menu.append_separator() file_menu.append(DIALOGS_CHOOSE_FONT, "Choose &font") ----------------------------------------------- What is the & trying to tell me? Why not just "Choose colour" or "Choose font" -- Ann Maybury ann.maybury at gmail.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 ann.maybury at gmail.com Sat May 7 19:32:20 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Sat, 7 May 2011 23:32:20 +0000 (UTC) Subject: [wxruby-users] Why the & in the middle of a string? References: Message-ID: Phillip & Kerrie Shelton gmail.com> writes: > > > It has to do with keyboard short cuts. That & puts a line under the next char and when the dialog is open you can use that key to do that action instead of the mouse. So with the sample dialog in your email, if you type 'c' you will open the colour chooser and 'f' gets you the font dialog > > > On 07/05/2011 3:14 PM, "Ann Maybury" gmail.com> wrote:In the samples directory of WxRuby-ruby 192 there is a file called dialogs.rb.Within this file there is a series of menu appends .?? A subset of is shown below.----------------------------------? ? file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour") > ??? file_menu.append_separator()??? file_menu.append(DIALOGS_CHOOSE_FONT, "Choose &font")-----------------------------------------------What is the & trying to tell me?? Why not just "Choose colour" or "Choose font" THANKS FOR YOUR RESPONSE. When I run the samples/dialogs/dialogs.rb from which my question arose, there are no underlines following the &. Is there some configuration option that I may be missing? aNN From ann.maybury at gmail.com Sun May 8 01:35:44 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Sat, 7 May 2011 22:35:44 -0700 Subject: [wxruby-users] Small correction in sample code. Message-ID: After some of our members, helped me understand the ampersand problem, I realized that there is a small error in the menu list. I fixed it in the attached file. The change is at line 769. There were two instances of &c being inside of strings. After I changed the second occurance to &d the code worked as described by rabbit. I marked the line with #--&d change. I do not know where to send any upgrades that I may find. If this is not the place, please tell me. -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dialogs.rb Type: application/octet-stream Size: 23507 bytes Desc: not available URL: From ann.maybury at gmail.com Sun May 8 19:59:33 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Sun, 8 May 2011 16:59:33 -0700 Subject: [wxruby-users] Device context (get_dc) Question from printing.rb in wxRuby samples Message-ID: I am using Windows XP SP 3 but want to stay general. Below is a method within printing.rb. I have added comments marked by #--. My question is about get_dc. The device context is obviously created and the code works as presented. It also works as documented below. Why does just get_dc satisfy the linkage? When does one use the Wx:: or the Wx::PrintOut format? How does one decide to use just the short form? Where could I have found this answer? def on_print_page(page) dc = get_dc #-- don;'t understand where get_dc comes from #--Wx::get_dc works #-- Wx::PrintOut.get_dc also works #--PrintOut.get_dc also works #-- looks like just get_dc is ok, why and when #-- the variable dc is probably a class or module but #-- where do I find its definition? if dc if page == 1 draw_page_one(dc) ##-- dc = device context passed in elsif (page == 2) draw_page_two(dc) ##-- dc = device context passed in end dc.set_device_origin(0, 0) dc.set_user_scale(1.0, 1.0) buf = "PAGE #{page}" dc.draw_text(buf, 10, 10) return true else return false end end #--end of on_print_page -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From penguinroad at gmail.com Mon May 9 00:04:30 2011 From: penguinroad at gmail.com (hendra kusuma) Date: Mon, 9 May 2011 12:04:30 +0800 Subject: [wxruby-users] Why the & in the middle of a string? In-Reply-To: References: Message-ID: On Sun, May 8, 2011 at 7:32 AM, Ann Maybury wrote: > Phillip & Kerrie Shelton gmail.com> writes: > > > > > > > It has to do with keyboard short cuts. That & puts a line under the next > char > and when the dialog is open you can use that key to do that action instead > of > the mouse. So with the sample dialog in your email, if you type 'c' you > will > open the colour chooser and 'f' gets you the font dialog > > > > > > On 07/05/2011 3:14 PM, "Ann Maybury" gmail.com> > wrote:In the > samples directory of WxRuby-ruby 192 there is a file called > dialogs.rb.Within > this file there is a series of menu appends . A subset of is shown > below.---------------------------------- > file_menu.append(DIALOGS_CHOOSE_COLOUR, "&Choose colour") > > file_menu.append_separator() file_menu.append(DIALOGS_CHOOSE_FONT, > "Choose &font")-----------------------------------------------What is the & > trying to tell me? Why not just "Choose colour" or "Choose font" > > THANKS FOR YOUR RESPONSE. > > When I run the samples/dialogs/dialogs.rb from which my question arose, > there > are no underlines following the &. Is there some configuration option > that I > may be missing? > > Press and hold Alt key you should see it -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sutniuq at gmx.net Mon May 9 12:36:05 2011 From: sutniuq at gmx.net (Quintus) Date: Mon, 09 May 2011 18:36:05 +0200 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> Message-ID: <4DC817F5.4050405@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 12.04.2011 14:33, schrieb David Beswick: > Thanks for your help Marvin, I've done that > > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: > >> Am 10.04.2011 04:00, schrieb David Beswick: >>> I thought I'd start at Ubuntu and reported a bug here: >>> >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 >>> >> >> Thanks, lets see where we get... >> >> In your bug report you suggest to install the wxRuby gem for 1.8 rather >> than that one for 1.9, maybe you can correct this? I posted a comment >> about it, but I think I can't update the original bug report. >> >> Vale, >> Marvin Some progress seems to have been made, but wxRuby still doesn't run on any Ubuntu > Lucid. The bug at https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has finally been fixed (for Oneiric), just to reveal another one (see my last comment on that bug) that still prevents the main bug at https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get flagged for Natty. Semms fate is against wxRuby at the moment :-| Valete, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNyBfiAAoJELh1XLHFkqhas2IIAJDxyG7GRxxNPokfuVlqB214 Ocmkt6fod9Q89i+FDtNSUN/+FmoF9O0aNXAf+SURtot0PO8/PF2swnyiL1QiUd2C sByJGK4U3mjJC0GkvIR1OqKulm7nsxU8LGuMpdZDbEco0MU42R6FmguLMMeBU8uG Y1rOWhKC2rkf8znOMoiwU8j6Z4A2UbxMPoK4u7BZu2otDFcUSu1A7UBO/HvisBxE 2y1BKclxV/uFiVoYeiGTKZQBRt58zxuJOdtnqVQtEbw0XjM6KzvoRXgtbTcUU1zc Gd4LoXtET6etDQ/q0vrc3arCyLLdW4z3bUJno1YLmnQmpK3ck2gV6NqR8xmRg5A= =98fJ -----END PGP SIGNATURE----- From alex at pressure.to Mon May 9 16:01:16 2011 From: alex at pressure.to (Alex Fenton) Date: Mon, 09 May 2011 21:01:16 +0100 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: <4DC817F5.4050405@gmx.net> References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: <4DC8480C.4090200@pressure.to> On 09/05/11 17:36, Quintus wrote: > Some progress seems to have been made, but wxRuby still doesn't run on > any Ubuntu> Lucid. The bug at > https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has > finally been fixed (for Oneiric), just to reveal another one (see my > last comment on that bug) that still prevents the main bug at > https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get > flagged for Natty. thanks for the update - and thanks also for reporting on and documenting the issues on the Ubuntu bugtracker. I was half-thinking of switching to Fedora anyway before the next Ubuntu came out - maybe this will tip me over. best alex From dwilde1 at gmail.com Mon May 9 21:47:53 2011 From: dwilde1 at gmail.com (Don Wilde) Date: Mon, 9 May 2011 18:47:53 -0700 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: <4DC817F5.4050405@gmx.net> References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: On Mon, May 9, 2011 at 9:36 AM, Quintus wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 12.04.2011 14:33, schrieb David Beswick: > > Thanks for your help Marvin, I've done that > > > > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: > > > >> Am 10.04.2011 04:00, schrieb David Beswick: > >>> I thought I'd start at Ubuntu and reported a bug here: > >>> > >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 > >>> > >> > >> Thanks, lets see where we get... > >> > >> In your bug report you suggest to install the wxRuby gem for 1.8 rather > >> than that one for 1.9, maybe you can correct this? I posted a comment > >> about it, but I think I can't update the original bug report. > >> > >> Vale, > >> Marvin > > Some progress seems to have been made, but wxRuby still doesn't run on > any Ubuntu > Lucid. The bug at > https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has > finally been fixed (for Oneiric), just to reveal another one (see my > last comment on that bug) that still prevents the main bug at > https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get > flagged for Natty. > > Semms fate is against wxRuby at the moment :-| > > Martin, I have been quite successful at deploying both 32 bit and 64-bit 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for 64, but it seems to work quite fine with our rather elaborate application. -- -- Don Wilde ph: 512-394-8896 skype: donwilde1 e: dwilde1 at gmail.com "If you are creative and add value to the world, sleep well. You've earned it." -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlbeswick at gmail.com Tue May 10 01:42:19 2011 From: dlbeswick at gmail.com (David Beswick) Date: Tue, 10 May 2011 15:42:19 +1000 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: Hi Don, on which distributions and versions of those distributions were you deploying your apps on? We've found this bug is triggered by the version of pixman that the distribution is using. I found a discussion that I think is the same issue here, I'll add it to the bug: http://lists.debian.org/debian-x/2011/02/msg01021.html On Tue, May 10, 2011 at 11:47 AM, Don Wilde wrote: > > > On Mon, May 9, 2011 at 9:36 AM, Quintus wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Am 12.04.2011 14:33, schrieb David Beswick: >> > Thanks for your help Marvin, I've done that >> > >> > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: >> > >> >> Am 10.04.2011 04:00, schrieb David Beswick: >> >>> I thought I'd start at Ubuntu and reported a bug here: >> >>> >> >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 >> >>> >> >> >> >> Thanks, lets see where we get... >> >> >> >> In your bug report you suggest to install the wxRuby gem for 1.8 rather >> >> than that one for 1.9, maybe you can correct this? I posted a comment >> >> about it, but I think I can't update the original bug report. >> >> >> >> Vale, >> >> Marvin >> >> Some progress seems to have been made, but wxRuby still doesn't run on >> any Ubuntu > Lucid. The bug at >> https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has >> finally been fixed (for Oneiric), just to reveal another one (see my >> last comment on that bug) that still prevents the main bug at >> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get >> flagged for Natty. >> >> Semms fate is against wxRuby at the moment :-| >> >> Martin, I have been quite successful at deploying both 32 bit and 64-bit > 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for 64, but > it seems to work quite fine with our rather elaborate application. > -- > -- Don Wilde > ph: 512-394-8896 skype: donwilde1 > e: dwilde1 at gmail.com > "If you are creative and add value to the world, sleep well. You've earned > it." > > > _______________________________________________ > 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 dlbeswick at gmail.com Tue May 10 01:45:21 2011 From: dlbeswick at gmail.com (David Beswick) Date: Tue, 10 May 2011 15:45:21 +1000 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: Here's the bug that discussion references, in Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613221 On Tue, May 10, 2011 at 3:42 PM, David Beswick wrote: > Hi Don, on which distributions and versions of those distributions were you > deploying your apps on? We've found this bug is triggered by the version of > pixman that the distribution is using. > > I found a discussion that I think is the same issue here, I'll add it to > the bug: > > http://lists.debian.org/debian-x/2011/02/msg01021.html > > > On Tue, May 10, 2011 at 11:47 AM, Don Wilde wrote: > >> >> >> On Mon, May 9, 2011 at 9:36 AM, Quintus wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> Am 12.04.2011 14:33, schrieb David Beswick: >>> > Thanks for your help Marvin, I've done that >>> > >>> > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: >>> > >>> >> Am 10.04.2011 04:00, schrieb David Beswick: >>> >>> I thought I'd start at Ubuntu and reported a bug here: >>> >>> >>> >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 >>> >>> >>> >> >>> >> Thanks, lets see where we get... >>> >> >>> >> In your bug report you suggest to install the wxRuby gem for 1.8 >>> rather >>> >> than that one for 1.9, maybe you can correct this? I posted a comment >>> >> about it, but I think I can't update the original bug report. >>> >> >>> >> Vale, >>> >> Marvin >>> >>> Some progress seems to have been made, but wxRuby still doesn't run on >>> any Ubuntu > Lucid. The bug at >>> https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has >>> finally been fixed (for Oneiric), just to reveal another one (see my >>> last comment on that bug) that still prevents the main bug at >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get >>> flagged for Natty. >>> >>> Semms fate is against wxRuby at the moment :-| >>> >>> Martin, I have been quite successful at deploying both 32 bit and 64-bit >> 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for 64, but >> it seems to work quite fine with our rather elaborate application. >> -- >> -- Don Wilde >> ph: 512-394-8896 skype: donwilde1 >> e: dwilde1 at gmail.com >> "If you are creative and add value to the world, sleep well. You've earned >> it." >> >> >> _______________________________________________ >> 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 dwilde1 at gmail.com Tue May 10 02:18:49 2011 From: dwilde1 at gmail.com (Don Wilde) Date: Mon, 9 May 2011 23:18:49 -0700 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: Ubuntu 10.04, with ruby 1.8.7p330, IIRC. All updated to -stableAny more details will have to wait until. I get back to Arizona next week. I can check the pixman tarball, though I know I never deliberately messed with it on either 32 or 64, On Mon, May 9, 2011 at 10:45 PM, David Beswick wrote: > Here's the bug that discussion references, in Debian: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613221 > > > > On Tue, May 10, 2011 at 3:42 PM, David Beswick wrote: > >> Hi Don, on which distributions and versions of those distributions were >> you deploying your apps on? We've found this bug is triggered by the version >> of pixman that the distribution is using. >> >> I found a discussion that I think is the same issue here, I'll add it to >> the bug: >> >> http://lists.debian.org/debian-x/2011/02/msg01021.html >> >> >> On Tue, May 10, 2011 at 11:47 AM, Don Wilde wrote: >> >>> >>> >>> On Mon, May 9, 2011 at 9:36 AM, Quintus wrote: >>> >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> Am 12.04.2011 14:33, schrieb David Beswick: >>>> > Thanks for your help Marvin, I've done that >>>> > >>>> > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: >>>> > >>>> >> Am 10.04.2011 04:00, schrieb David Beswick: >>>> >>> I thought I'd start at Ubuntu and reported a bug here: >>>> >>> >>>> >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 >>>> >>> >>>> >> >>>> >> Thanks, lets see where we get... >>>> >> >>>> >> In your bug report you suggest to install the wxRuby gem for 1.8 >>>> rather >>>> >> than that one for 1.9, maybe you can correct this? I posted a comment >>>> >> about it, but I think I can't update the original bug report. >>>> >> >>>> >> Vale, >>>> >> Marvin >>>> >>>> Some progress seems to have been made, but wxRuby still doesn't run on >>>> any Ubuntu > Lucid. The bug at >>>> https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has >>>> finally been fixed (for Oneiric), just to reveal another one (see my >>>> last comment on that bug) that still prevents the main bug at >>>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get >>>> flagged for Natty. >>>> >>>> Semms fate is against wxRuby at the moment :-| >>>> >>>> Martin, I have been quite successful at deploying both 32 bit and 64-bit >>> 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for 64, but >>> it seems to work quite fine with our rather elaborate application. >>> -- >>> -- Don Wilde >>> ph: 512-394-8896 skype: donwilde1 >>> e: dwilde1 at gmail.com >>> "If you are creative and add value to the world, sleep well. You've >>> earned it." >>> >>> >>> _______________________________________________ >>> wxruby-users mailing list >>> wxruby-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/wxruby-users >>> >> >> > -- -- Don Wilde ph: 512-394-8896 skype: donwilde1 e: dwilde1 at gmail.com "If you are creative and add value to the world, sleep well. You've earned it." -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlbeswick at gmail.com Tue May 10 02:22:12 2011 From: dlbeswick at gmail.com (David Beswick) Date: Tue, 10 May 2011 16:22:12 +1000 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> Message-ID: No worries, thanks heaps for your input Don. No rush either, this is a pretty longstanding bug by now. On Tue, May 10, 2011 at 4:18 PM, Don Wilde wrote: > Ubuntu 10.04, with ruby 1.8.7p330, IIRC. All updated to -stableAny more > details will have to wait until. I get back to Arizona next week. I can > check the pixman tarball, though I know I never deliberately messed with it > on either 32 or 64, > > > On Mon, May 9, 2011 at 10:45 PM, David Beswick wrote: > >> Here's the bug that discussion references, in Debian: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613221 >> >> >> >> On Tue, May 10, 2011 at 3:42 PM, David Beswick wrote: >> >>> Hi Don, on which distributions and versions of those distributions were >>> you deploying your apps on? We've found this bug is triggered by the version >>> of pixman that the distribution is using. >>> >>> I found a discussion that I think is the same issue here, I'll add it to >>> the bug: >>> >>> http://lists.debian.org/debian-x/2011/02/msg01021.html >>> >>> >>> On Tue, May 10, 2011 at 11:47 AM, Don Wilde wrote: >>> >>>> >>>> >>>> On Mon, May 9, 2011 at 9:36 AM, Quintus wrote: >>>> >>>>> -----BEGIN PGP SIGNED MESSAGE----- >>>>> Hash: SHA1 >>>>> >>>>> Am 12.04.2011 14:33, schrieb David Beswick: >>>>> > Thanks for your help Marvin, I've done that >>>>> > >>>>> > On Sun, Apr 10, 2011 at 5:48 PM, Quintus wrote: >>>>> > >>>>> >> Am 10.04.2011 04:00, schrieb David Beswick: >>>>> >>> I thought I'd start at Ubuntu and reported a bug here: >>>>> >>> >>>>> >>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 >>>>> >>> >>>>> >> >>>>> >> Thanks, lets see where we get... >>>>> >> >>>>> >> In your bug report you suggest to install the wxRuby gem for 1.8 >>>>> rather >>>>> >> than that one for 1.9, maybe you can correct this? I posted a >>>>> comment >>>>> >> about it, but I think I can't update the original bug report. >>>>> >> >>>>> >> Vale, >>>>> >> Marvin >>>>> >>>>> Some progress seems to have been made, but wxRuby still doesn't run on >>>>> any Ubuntu > Lucid. The bug at >>>>> https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has >>>>> finally been fixed (for Oneiric), just to reveal another one (see my >>>>> last comment on that bug) that still prevents the main bug at >>>>> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get >>>>> flagged for Natty. >>>>> >>>>> Semms fate is against wxRuby at the moment :-| >>>>> >>>>> Martin, I have been quite successful at deploying both 32 bit and >>>> 64-bit 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for >>>> 64, but it seems to work quite fine with our rather elaborate application. >>>> -- >>>> -- Don Wilde >>>> ph: 512-394-8896 skype: donwilde1 >>>> e: dwilde1 at gmail.com >>>> "If you are creative and add value to the world, sleep well. You've >>>> earned it." >>>> >>>> >>>> _______________________________________________ >>>> wxruby-users mailing list >>>> wxruby-users at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/wxruby-users >>>> >>> >>> >> > > > -- > -- Don Wilde > ph: 512-394-8896 skype: donwilde1 > e: dwilde1 at gmail.com > "If you are creative and add value to the world, sleep well. You've earned > it." > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sutniuq at gmx.net Tue May 10 13:19:05 2011 From: sutniuq at gmx.net (Quintus) Date: Tue, 10 May 2011 19:19:05 +0200 Subject: [wxruby-users] Packaging wxRuby fails In-Reply-To: <4DC8480C.4090200@pressure.to> References: <4D779EDD.4090806@gmx.net> <103535ecce64256f7c8307c1fc5ccf1b@ruby-forum.com> <4DA160CE.30101@gmx.net> <4DC817F5.4050405@gmx.net> <4DC8480C.4090200@pressure.to> Message-ID: <4DC97389.4080709@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 09.05.2011 22:01, schrieb Alex Fenton: > On 09/05/11 17:36, Quintus wrote: >> Some progress seems to have been made, but wxRuby still doesn't run on >> any Ubuntu> Lucid. The bug at >> https://bugs.launchpad.net/ubuntu/+source/wxwidgets2.8/+bug/632984 has >> finally been fixed (for Oneiric), just to reveal another one (see my >> last comment on that bug) that still prevents the main bug at >> https://bugs.launchpad.net/ubuntu/+source/pixman/+bug/756237 to get >> flagged for Natty. > > thanks for the update - and thanks also for reporting on and documenting > the issues on the Ubuntu bugtracker. I was half-thinking of switching to > Fedora anyway before the next Ubuntu came out - maybe this will tip me > over. I think I already mentioned it, but it was exaktly wxRuby that was the final reason for me to switch from Ubuntu to Arch Linux. I really enjoy the rolling release model now--no way back. :-) However, Ubuntu is the most-widespread Linux distribution out there. It's not wise to drop support for it I think, because it would significantly state a contrast to the platform-indepentness wxRuby aims to provide. > Martin, I have been quite successful at deploying both 32 bit and > 64-bit > 10.04 installations of wxRuby. I had to go back to the 2.0.0 gem for > 64, but > it seems to work quite fine with our rather elaborate application. Ubuntu Lucid 64bit worked without a problem for me, even though I had to compile wxRuby 2.0.1 myself. It's just that wxRuby doesn't work on each and every Ubuntu *after* Lucid. And btw. my name is Marvin, note the v. :-) > Hi Don, on which distributions and versions of those distributions > were you > deploying your apps on? I can confirm wxRuby not working for Ubuntu Maverick 64bit, Ubuntu Maverick 32bit, Ubuntu Natty 32bit (the last to being virtual machines) and Arch Linux 64bit (completely updated last Friday)*. But I suppose it doesn't work for different reasons on each machine... :-( > Here's the bug that discussion references, in Debian: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613221 Thanks! It really looks like a bug in pixman then. ########################### So, what can we do now? wxRuby's obviously not at fault, it's a) pixman that is broken and b) Debian/Ubuntu that ships broken wxWidgets packages b) is marked as fixed for Oneiric, but I doubt wheather wxRuby will run then, because of a) and a symbol lookup error I already described on Launchpad (this would be c) then I think). The pixman bug breaks wxRuby on nearly every recent Linux distribution, and Debian/Ubuntu breaks it a second time due to their package management, which is especially problementic because of their popularity. To conclude: I'm worried about wxRuby's future, although it seems that wxRuby can't do much about the mentioned problems. > best > alex Valete, Marvin * The distros I were using "normally", i.e. not as virtual machines, were like this: Ubuntu Lucid 64bit -> Ubuntu Maverick 64bit [broke wxRuby] -> Arch Linux 64bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNyXOBAAoJELh1XLHFkqhajpYIAK0/ZBrho5fd9fGaEkGGQbal +uwRxdavIldM38I8wolfIomPEZxTzupim+NPLigB1NHToUrSjhhCGkg482YuJR9u HMncfRInw5eK/rXo1xHwF213sY3bZtxy9EOG+lJ/qLCm6qrke5tAGBKLzsY62QtG v4KOXGNOyC+NEtdHFyPhancvwqrjfnyL/OjgUMku03saLq58vDZMiv1rAz++m69c RO5h6sIZ+ZHp4tVIKSMKjLYoyQrVfuNK/A0RJMdpnLlsz+oAiP36sS65wKEL1wB4 +F62p7Ow/yjgItqAeG2HgKRcJyKwRT9tXSK8M83dsxWk9hyJVubILa2dWpvsD70= =12Su -----END PGP SIGNATURE----- From ann.maybury at gmail.com Tue May 10 16:45:37 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Tue, 10 May 2011 13:45:37 -0700 Subject: [wxruby-users] linkage confusion Message-ID: In the printinglrb sample a code line says dc= get_dc; I have searched my ruby installation for a get_dc method and found it nowhere except in printing.rb. I do find a getdc in Petazold. After the dc =get_dc line in ruby there are a lot of dc references. like dc.set_background(Wx::WHITE_BRUSH) dc.clear() dc.set_font(Wx::get_app.test_font) dc.set_background_mode(Wx::TRANSPARENT) If I understood the ruby definition of the dc object I might understand the rest of this code. For your information, I have coded thousands of lines using the Microsoft interface. I have created many windows and many text and graphic files which I sent to the printer. My confusion is with the ruby implementation, not with the process itself. Since I cannot find a ruby or wxruby reference, is there some magic linkage to some windowd dlls or some ther mechanism that I do not understand? >From what I get from reading the code, ruby is presenting me with a cleaner way to process printing, windows, and dialogs. I just need to be able to sync into it better. I had expected this routine to be defined in Wx::DC.I downloaded the wxruby source and looked in dc.rb. I did not find get_dc or the dc.xxx refernced above. I I also did not find it in any on-line documentation that I looked at. Help. I don't understand something. -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From philkez at gmail.com Tue May 10 19:31:11 2011 From: philkez at gmail.com (Phillip & Kerrie Shelton) Date: Wed, 11 May 2011 09:31:11 +1000 Subject: [wxruby-users] Device context (get_dc) Question from printing.rb in wxRuby samples In-Reply-To: References: Message-ID: It has a lot to do with scope. On 09/05/2011 10:38 AM, "Ann Maybury" wrote: I am using Windows XP SP 3 but want to stay general. Below is a method within printing.rb. I have added comments marked by #--. My question is about get_dc. The device context is obviously created and the code works as presented. It also works as documented below. Why does just get_dc satisfy the linkage? When does one use the Wx:: or the Wx::PrintOut format? How does one decide to use just the short form? Where could I have found this answer? def on_print_page(page) dc = get_dc #-- don;'t understand where get_dc comes from #--Wx::get_dc works #-- Wx::PrintOut.get_dc also works #--PrintOut.get_dc also works #-- looks like just get_dc is ok, why and when #-- the variable dc is probably a class or module but #-- where do I find its definition? if dc if page == 1 draw_page_one(dc) ##-- dc = device context passed in elsif (page == 2) draw_page_two(dc) ##-- dc = device context passed in end dc.set_device_origin(0, 0) dc.set_user_scale(1.0, 1.0) buf = "PAGE #{page}" dc.draw_text(buf, 10, 10) return true else return false end end #--end of on_print_page -- Ann Maybury ann.maybury at gmail.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 lists at ruby-forum.com Thu May 12 15:39:10 2011 From: lists at ruby-forum.com (Rubist Rohit) Date: Thu, 12 May 2011 21:39:10 +0200 Subject: [wxruby-users] Which is more rich and easy, wxRuby or fxRuby? Message-ID: Which one is more feature rich and easy to use, wxRuby or fxRuby? Can I develop a full-fledged client-server Windows based app. with wxRuby? -- Posted via http://www.ruby-forum.com/. From penguinroad at gmail.com Thu May 12 23:10:33 2011 From: penguinroad at gmail.com (hendra kusuma) Date: Fri, 13 May 2011 11:10:33 +0800 Subject: [wxruby-users] Which is more rich and easy, wxRuby or fxRuby? In-Reply-To: References: Message-ID: On Fri, May 13, 2011 at 3:39 AM, Rubist Rohit wrote: > Which one is more feature rich and easy to use, wxRuby or fxRuby? Can I > develop a full-fledged client-server Windows based app. with wxRuby? > > Never use fxRuby But yes, you can develop a full-fledged client server window based app with wxRuby -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu May 12 23:24:59 2011 From: lists at ruby-forum.com (Fengfeng Li) Date: Fri, 13 May 2011 05:24:59 +0200 Subject: [wxruby-users] How to balance between GUI and Speed? Message-ID: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> Hi everyone, I'm using WxRuby to develop a GUI app, and it needs to transfer files through ftp. If I use ftp.put_binary method, the GUI can response, but the ftp is very slow. And if I use Process.create and Process.waitpid to call windows ftp, it's much faster, but the GUI doesn't respond at all until the ftp is finished. Please tell me if there's other way to do ftp in a GUI app, with a high ftp speed and responsable GUI. Thanks. -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Fri May 13 10:10:54 2011 From: alex at pressure.to (Alex Fenton) Date: Fri, 13 May 2011 15:10:54 +0100 Subject: [wxruby-users] Which is more rich and easy, wxRuby or fxRuby? In-Reply-To: References: Message-ID: <4DCD3BEE.3090805@pressure.to> On 12/05/11 20:39, Rubist Rohit wrote: > Which one is more feature rich and easy to use, wxRuby or fxRuby? Easiness: just about the same. Featureness: Wx is a more capable toolkit than Fox. It also looks better, in most people's opinions. > Can I > develop a full-fledged client-server Windows based app. with wxRuby? Yes - there is a sample included in the distribution which gives an example of client/server programming over TCP/IP. a From alex at pressure.to Sun May 15 10:36:32 2011 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 May 2011 15:36:32 +0100 Subject: [wxruby-users] How to balance between GUI and Speed? In-Reply-To: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> References: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> Message-ID: <4DCFE4F0.4080908@pressure.to> hi On 13/05/11 04:24, Fengfeng Li wrote: > I'm using WxRuby to develop a GUI app, and it needs to transfer files > through ftp. > If I use ftp.put_binary method, the GUI can response, but the ftp is > very slow. > And if I use Process.create and Process.waitpid to call windows ftp, > it's much faster, but the GUI doesn't respond at all until the ftp is > finished. > > Please tell me if there's other way to do ftp in a GUI app, with a high > ftp speed and responsable GUI. Can't help with the speed of Ruby's FTP library, but in general if you want to keep the GUI responsive whilst doing some long-running task, there are a few ways: evt_idle (straightforward, useful if the task can be broken down into bits) threads (more complex, but more flexible) You will probably need to use the latter. There are a lot of wxruby discussions on using threads - have a search through the archives for further info and examples, and also have a look in the samples directory included with wxruby. alex From alex at pressure.to Sun May 15 17:01:48 2011 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 May 2011 22:01:48 +0100 Subject: [wxruby-users] Small correction in sample code. In-Reply-To: References: Message-ID: <4DD03F3C.2060904@pressure.to> Ann On 08/05/11 06:35, Ann Maybury wrote: > After some of our members, helped me understand the ampersand problem, > I realized that there is a small error > in the menu list. I fixed it in the attached file. The change is at > line 769. There were two instances of &c being > inside of strings. After I changed the second occurance to &d the > code worked as described by rabbit. > I marked the line with #--&d change. Thank you for spotting this and sending in the change. I have committed it to Subversion repository (SVN:2123) cheers alex From alex at pressure.to Sun May 15 17:09:23 2011 From: alex at pressure.to (Alex Fenton) Date: Sun, 15 May 2011 22:09:23 +0100 Subject: [wxruby-users] Device context (get_dc) Question from printing.rb in wxRuby samples In-Reply-To: References: Message-ID: <4DD04103.3040604@pressure.to> On 09/05/11 00:59, Ann Maybury wrote: > Below is a method within printing.rb. I have added comments marked > by #--. > My question is about get_dc. The device context is obviously created > and the code works as presented. > It also works as documented below. Why does just get_dc satisfy the > linkage? > When does one use the Wx:: or the Wx::PrintOut format? How does one > decide to use just the short form? get_dc is an instance method of Wx::Printout, and in the sample, it's called from within a class that inherits from that. > Where could I have found this answer? http://wxruby.rubyforge.org/doc/printout.html#Printout_getdc > > def on_print_page(page) > dc = get_dc #-- don;'t understand where get_dc comes from > #--Wx::get_dc works > #-- Wx::PrintOut.get_dc also works > #--PrintOut.get_dc also works > #-- looks like just get_dc is ok, > why and when > #-- the variable dc is probably a > class or module but > #-- where do I find its definition? I don't think PrintOut.get_dc or Wx::get_dc will work? There are no such class/module methods in either Wx::Printout or the global Wx:: module. alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From idan.miller at gmail.com Tue May 17 09:01:51 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 16:01:51 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 Message-ID: Hi everyone, I've installed wxruby-2.0.1-x86-mswin32-60 on windows 2008 via gem install. When I try to use it I get a "Specified module could not be found: wxruby2.so" Needless to say I have the file where it's suppose to be. Any idea what's wrong? wxruby supports windows 2008? Thanks, Idan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Tue May 17 09:05:06 2011 From: alex at pressure.to (Alex Fenton) Date: Tue, 17 May 2011 14:05:06 +0100 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: Message-ID: <4DD27282.7060204@pressure.to> On 17/05/2011 14:01, Idan Miller wrote: > I've installed wxruby-2.0.1-x86-mswin32-60 on windows 2008 via gem install. > > When I try to use it I get a "Specified module could not be found: > wxruby2.so" > Needless to say I have the file where it's suppose to be. > > Any idea what's wrong? > wxruby supports windows 2008? I don't know, since I don't have Windows 2008. One thing to check is which version of ruby you're using (the latest installers are mingw, I think). What does ruby -v say? alex From idan.miller at gmail.com Tue May 17 09:07:44 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 16:07:44 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: <4DD27282.7060204@pressure.to> References: <4DD27282.7060204@pressure.to> Message-ID: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] On Tue, May 17, 2011 at 4:05 PM, Alex Fenton wrote: > On 17/05/2011 14:01, Idan Miller wrote: > > I've installed wxruby-2.0.1-x86-mswin32-60 on windows 2008 via gem >> install. >> >> When I try to use it I get a "Specified module could not be found: >> wxruby2.so" >> Needless to say I have the file where it's suppose to be. >> >> Any idea what's wrong? >> wxruby supports windows 2008? >> > > I don't know, since I don't have Windows 2008. One thing to check is which > version of ruby you're using (the latest installers are mingw, I think). > What does ruby -v say? > > alex > _______________________________________________ > 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 Tue May 17 09:22:54 2011 From: alex at pressure.to (Alex Fenton) Date: Tue, 17 May 2011 14:22:54 +0100 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: <4DD27282.7060204@pressure.to> Message-ID: <4DD276AE.2040301@pressure.to> On 17/05/2011 14:07, Idan Miller wrote: > 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] In that case, I'm not sure. Do other user-installed libraries with compiled extensions work correctly with that Ruby on Win2008? Could you try a newer mingw Ruby? From idan.miller at gmail.com Tue May 17 09:27:00 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 16:27:00 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: <4DD276AE.2040301@pressure.to> References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> Message-ID: Not sure about other extensions... You mean try the mingw gem? On Tue, May 17, 2011 at 4:22 PM, Alex Fenton wrote: > On 17/05/2011 14:07, Idan Miller wrote: > >> 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] >> > > In that case, I'm not sure. Do other user-installed libraries with compiled > extensions work correctly with that Ruby on Win2008? Could you try a newer > mingw Ruby? > > > _______________________________________________ > 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 Tue May 17 09:40:17 2011 From: alex at pressure.to (Alex Fenton) Date: Tue, 17 May 2011 14:40:17 +0100 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> Message-ID: <4DD27AC1.9090106@pressure.to> On 17/05/2011 14:27, Idan Miller wrote: > Not sure about other extensions... > You mean try the mingw gem? I mean try one of the latest Ruby for Windows installers from here: http://rubyinstaller.org/ These are built from more recent Ruby codebases, and use the MingW rather than Microsoft (mswin32) compiler. It says that it supports Windows 7 https://github.com/oneclick/rubyinstaller/wiki/faq#win_ver I think it's unlikely that we can continue to support wxRuby on Ruby built with the MS compiler any longer - I don't have the build environment any longer, and I don't think anyone else ever did. alex From idan.miller at gmail.com Tue May 17 09:57:17 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 16:57:17 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: <4DD27AC1.9090106@pressure.to> References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> <4DD27AC1.9090106@pressure.to> Message-ID: My biggest problem is that I'm using watir, which requires ruby 1.8.6 and is not yet stable on ruby 1.9. So I have to use 1.8.6... and that causes wxRuby not to work on windows 2008... Any other idea? Thanks, Idan. On Tue, May 17, 2011 at 4:40 PM, Alex Fenton wrote: > On 17/05/2011 14:27, Idan Miller wrote: > >> Not sure about other extensions... >> You mean try the mingw gem? >> > > I mean try one of the latest Ruby for Windows installers from here: > http://rubyinstaller.org/ > > These are built from more recent Ruby codebases, and use the MingW rather > than Microsoft (mswin32) compiler. > > It says that it supports Windows 7 > https://github.com/oneclick/rubyinstaller/wiki/faq#win_ver > > I think it's unlikely that we can continue to support wxRuby on Ruby built > with the MS compiler any longer - I don't have the build environment any > longer, and I don't think anyone else ever did. > > alex > > _______________________________________________ > 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 idan.miller at gmail.com Tue May 17 09:59:23 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 16:59:23 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> <4DD27AC1.9090106@pressure.to> Message-ID: btw, on windows 7 it works, still makes sense? Idan. On Tue, May 17, 2011 at 4:57 PM, Idan Miller wrote: > My biggest problem is that I'm using watir, which requires ruby 1.8.6 and > is not yet stable on ruby 1.9. > So I have to use 1.8.6... and that causes wxRuby not to work on windows > 2008... > > Any other idea? > > Thanks, > Idan. > > > On Tue, May 17, 2011 at 4:40 PM, Alex Fenton wrote: > >> On 17/05/2011 14:27, Idan Miller wrote: >> >>> Not sure about other extensions... >>> You mean try the mingw gem? >>> >> >> I mean try one of the latest Ruby for Windows installers from here: >> http://rubyinstaller.org/ >> >> These are built from more recent Ruby codebases, and use the MingW rather >> than Microsoft (mswin32) compiler. >> >> It says that it supports Windows 7 >> https://github.com/oneclick/rubyinstaller/wiki/faq#win_ver >> >> I think it's unlikely that we can continue to support wxRuby on Ruby built >> with the MS compiler any longer - I don't have the build environment any >> longer, and I don't think anyone else ever did. >> >> alex >> >> _______________________________________________ >> 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 sutniuq at gmx.net Tue May 17 11:51:05 2011 From: sutniuq at gmx.net (Quintus) Date: Tue, 17 May 2011 17:51:05 +0200 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> <4DD27AC1.9090106@pressure.to> Message-ID: <4DD29969.9030409@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 17.05.2011 15:57, schrieb Idan Miller: > My biggest problem is that I'm using watir, which requires ruby 1.8.6 and is > not yet stable on ruby 1.9. > So I have to use 1.8.6... and that causes wxRuby not to work on windows > 2008... > > Any other idea? > > Thanks, > Idan. If Watir doesn't support Ruby 1.9 (a shame!), then why don't you use 1.8.7, which is the latest Ruby from the 1.8 branch? Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJN0plfAAoJELh1XLHFkqhaR2QIAII4J6hVRbbNhHKMQtW+3qtc 5rHIjVS2k90F0HF2YhqRDUep9RewQuULNCYj1cyawnXKM/afpmiwLpfK0ZX996Vu ae5mOIQ2GkyDqhvu846IuOPn2EX/YmT6rv51WdviRgkBhCkr9lZJ4o7OHzgJRfpI Se4iqBiz9sDmRVuY4Ai7Fc1bR2nB14j1WIeV5JKgf0azoWwUSDOWrXy8vabqvjIt Ozh88G0GGyjfTkmPIK24N3lbeRWp4P/QVf8M/9wSOxJdEEy+kcOcBS7ycF4ubEs3 QBrY0XRgIANRj83PpuMP8gKwSY3CXfjJ8a8VzkdazIFauC4q9EBWB1Xb8eyFkPM= =DsMO -----END PGP SIGNATURE----- From idan.miller at gmail.com Tue May 17 12:02:42 2011 From: idan.miller at gmail.com (Idan Miller) Date: Tue, 17 May 2011 19:02:42 +0300 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: <4DD29969.9030409@gmx.net> References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> <4DD27AC1.9090106@pressure.to> <4DD29969.9030409@gmx.net> Message-ID: Will 1.8.7 do better? 1.8.7 is supported. Idan. On Tue, May 17, 2011 at 6:51 PM, Quintus wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 17.05.2011 15:57, schrieb Idan Miller: > > My biggest problem is that I'm using watir, which requires ruby 1.8.6 and > is > > not yet stable on ruby 1.9. > > So I have to use 1.8.6... and that causes wxRuby not to work on windows > > 2008... > > > > Any other idea? > > > > Thanks, > > Idan. > > If Watir doesn't support Ruby 1.9 (a shame!), then why don't you use > 1.8.7, which is the latest Ruby from the 1.8 branch? > > Vale, > Marvin > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJN0plfAAoJELh1XLHFkqhaR2QIAII4J6hVRbbNhHKMQtW+3qtc > 5rHIjVS2k90F0HF2YhqRDUep9RewQuULNCYj1cyawnXKM/afpmiwLpfK0ZX996Vu > ae5mOIQ2GkyDqhvu846IuOPn2EX/YmT6rv51WdviRgkBhCkr9lZJ4o7OHzgJRfpI > Se4iqBiz9sDmRVuY4Ai7Fc1bR2nB14j1WIeV5JKgf0azoWwUSDOWrXy8vabqvjIt > Ozh88G0GGyjfTkmPIK24N3lbeRWp4P/QVf8M/9wSOxJdEEy+kcOcBS7ycF4ubEs3 > QBrY0XRgIANRj83PpuMP8gKwSY3CXfjJ8a8VzkdazIFauC4q9EBWB1Xb8eyFkPM= > =DsMO > -----END PGP SIGNATURE----- > _______________________________________________ > 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 Tue May 17 12:22:29 2011 From: alex at pressure.to (Alex Fenton) Date: Tue, 17 May 2011 17:22:29 +0100 Subject: [wxruby-users] wxruby2-0-1 not working on windows 2008 In-Reply-To: References: <4DD27282.7060204@pressure.to> <4DD276AE.2040301@pressure.to> <4DD27AC1.9090106@pressure.to> <4DD29969.9030409@gmx.net> Message-ID: <4DD2A0C5.6090603@pressure.to> On 17/05/11 17:02, Idan Miller wrote: > Will 1.8.7 do better? 1.8.7 is supported. > > > If Watir doesn't support Ruby 1.9 (a shame!), then why don't you use > 1.8.7, which is the latest Ruby from the 1.8 branch? > I can't say whether it will work with Windows 2008, but I would certainly try the rubyinstaller built with mingw, as per earlier link, and then try the mingw 1.8.7 gem for wxRuby: http://rubyforge.org/frs/download.php/63472/wxruby-2.0.1-x86-mingw32.gem (Please don't top-post). alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Thu May 19 14:43:30 2011 From: alex at pressure.to (Alex Fenton) Date: Thu, 19 May 2011 19:43:30 +0100 Subject: [wxruby-users] wxRuby 2.0.x on OS X Message-ID: <4DD564D2.1040403@pressure.to> Hi I'm currently working through some of the bugs on the wxRuby tracker with a view to releasing an updated stable version of wxRuby 2.0. As Mac users will know, Apple's move to 10.6 has created problems for wxRuby (as for other wx bindings). I've resolved some issues, but not others, and we will likely have to change the versions/platforms supported on OS X. I'd like any views on how undesirable the following would be: - dropping support for OS X 10.4 - dropping support for OS X 10.5 - dropping support for PPC (wxRuby 2.0 will become i386 only - 64-bit cannot be made to work) My preference is to support 10.5+ on i386, but would like to hear (either on-list or privately) if that is likely to bother a lot of people... alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Thu May 19 16:57:55 2011 From: lists at ruby-forum.com (=?UTF-8?B?w4XCgXVrYXN6?= Korecki) Date: Thu, 19 May 2011 22:57:55 +0200 Subject: [wxruby-users] wxRuby 2.0.x on OS X In-Reply-To: <4DD564D2.1040403@pressure.to> References: <4DD564D2.1040403@pressure.to> Message-ID: Hi Given how Apple treats 10.5 (no Apple Store, last OSX to support PPC) I'd vote for not supporting it - Lion is coming and it will make 10.5 even more irrelevant. Just my 2 cents. ?ukasz -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri May 20 00:10:53 2011 From: lists at ruby-forum.com (Fengfeng Li) Date: Fri, 20 May 2011 06:10:53 +0200 Subject: [wxruby-users] How to balance between GUI and Speed? In-Reply-To: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> References: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> Message-ID: Hi, Thanks for you reply. My problem is: For example, I created 4 threads, one of them is for wxruby GUI, and the other three will do similar things as below. Then I found that, When call_external in one thread is processing, the GUI thread(wonn't response) and the other two threads(wonn't do step2) will wait(because I use Process.waitpid?) But I hope only the caller thread wait for call_external to end, the other threads just continue there own behavior. #--------------------------------------- for i in 1..3 do Thread.new{ call_external(xxx to use system ftp) ...do step2 } end #--------------------------------------- def call_external(cmd) pid = Process.create( :app_name => cmd, :startup_info => {:sw_flags => Process::SW_HIDE , :startf_flags => Process::STARTF_USESHOWWINDOW} ).process_id Process.waitpid(pid) end #--------------------------------------- I've looked into the win32-process lib, and found there's no method to check if a process is finished, so I must use waitpid. But the waitpid stop all the other threads, which're unacceptable for me. Is there any other way? Thanks. -- Posted via http://www.ruby-forum.com/. From mario at ruby-im.net Fri May 20 02:11:33 2011 From: mario at ruby-im.net (Mario Steele) Date: Fri, 20 May 2011 02:11:33 -0400 Subject: [wxruby-users] How to balance between GUI and Speed? In-Reply-To: References: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> Message-ID: Hello Fengfeng, I actually ran into similar issues that your running into. Which prompted me to create this library: http://repos.ruby-im.net/xprocess/ It will allow you to execute processes, as well as capture output, and send input to the sub-process, without blocking any of the Ruby Threads. The interface to the library is pretty simple. I don't have any docs for the library, but in simplistic terms of an example: my_proc = XProcess.new(cmd) my_proc.execute(my_args) while my_proc.exists? do Thread.pass() # Allow other threads to do their work while this process is working. end # Process has ended, we can parse output of my_proc through my_proc.out.read_lines(), or various other IO methods. hth, Mario On Fri, May 20, 2011 at 12:10 AM, Fengfeng Li wrote: > Hi, > > Thanks for you reply. My problem is: > > For example, I created 4 threads, one of them is for wxruby GUI, and the > other three will do similar things as below. Then I found that, When > call_external in one thread is processing, the GUI thread(wonn't > response) and the other two threads(wonn't do step2) will wait(because I > use Process.waitpid?) > > But I hope only the caller thread wait for call_external to end, the > other threads just continue there own behavior. > > #--------------------------------------- > for i in 1..3 do > Thread.new{ > call_external(xxx to use system ftp) > ...do step2 > } > end > #--------------------------------------- > def call_external(cmd) > pid = Process.create( :app_name => cmd, > :startup_info => > {:sw_flags => Process::SW_HIDE , > :startf_flags => > Process::STARTF_USESHOWWINDOW} > ).process_id > Process.waitpid(pid) > end > #--------------------------------------- > > I've looked into the win32-process lib, and found there's no method to > check if a process is finished, so I must use waitpid. But the waitpid > stop all the other threads, which're unacceptable for me. > > Is there any other way? > > > Thanks. > > -- > 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 Lieutenant Commander 3 XO - Geo 99 XO - STO IFT Fleet http://www.trekfederation.com http://geo99.ruby-im.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex at pressure.to Fri May 20 04:07:34 2011 From: alex at pressure.to (Alex Fenton) Date: Fri, 20 May 2011 09:07:34 +0100 Subject: [wxruby-users] How to balance between GUI and Speed? In-Reply-To: References: <0fc5b6d0129c2fe9bc2df81b55897bee@ruby-forum.com> Message-ID: <4DD62146.3060203@pressure.to> On 20/05/2011 05:10, Fengfeng Li wrote: > For example, I created 4 threads, one of them is for wxruby GUI, and the > other three will do similar things as below. Then I found that, When > call_external in one thread is processing, the GUI thread(wonn't > response) and the other two threads(wonn't do step2) will wait(because I > use Process.waitpid?) Mario's response is more general, but also I wonder if something like curb (http://curb.rubyforge.org/), ruby bindings for libcurl, might help in your case? It has call-backs for progress of downloads. alex From ann.maybury at gmail.com Tue May 24 11:31:03 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Tue, 24 May 2011 08:31:03 -0700 Subject: [wxruby-users] Documentation morass Message-ID: I am having a horrible time finding data that I need to learn ruby and wxruby. I even downloaded the source in order to try to use the Windows Search tools on it. For Instance, the printing.rb sample starts with WXPRINT_QUIT = WX::ID_EXIT Using Windows to search the supposed source I do not find any string ID_EXIT in any file. Later in the printing.rb sample one finds the following code snippet -------------------------------- # GetTextExtent demo: words = ["This ", "is ", "GetTextExtent ", "testing ", "string. ", "Enjoy ", "it!"] w, h = 0,0 x = 200 y= 250 fnt = Wx::Font.new(15, Wx::SWISS, Wx::NORMAL, Wx::NORMAL) ------------------------------------------------------------ Once again a constant Wx::SWISS is not found by the windows search engine. I may have the wrong source. Where do I get the right source? Looking at the documentation on line is very frustrating. Can this documentation by downloaded and read with some tool? Later -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sutniuq at gmx.net Wed May 25 04:24:48 2011 From: sutniuq at gmx.net (Quintus) Date: Wed, 25 May 2011 10:24:48 +0200 Subject: [wxruby-users] Documentation morass In-Reply-To: References: Message-ID: <4DDCBCD0.2040704@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 24.05.2011 17:31, schrieb Ann Maybury: > I am having a horrible time finding data that I need to learn ruby and > wxruby. I even downloaded the source in order to try to use the Windows > Search tools on it. > > For Instance, the printing.rb sample starts with > WXPRINT_QUIT = WX::ID_EXIT > Using Windows to search the supposed source I do not find any string ID_EXIT > in any file. > > Later in the printing.rb sample one finds the following code snippet > > -------------------------------- > # GetTextExtent demo: > words = ["This ", "is ", "GetTextExtent ", "testing ", "string. ", > "Enjoy ", "it!"] > w, h = 0,0 > x = 200 > y= 250 > fnt = Wx::Font.new(15, Wx::SWISS, Wx::NORMAL, Wx::NORMAL) > ------------------------------------------------------------ > Once again a constant Wx::SWISS is not found by the windows search engine. > > I may have the wrong source. Where do I get the right source? > > Looking at the documentation on line is very frustrating. Can this > documentation by downloaded and read with some tool? > > Later > At least the documentation for the Font constants can be found in the online docs: http://wxruby.rubyforge.org/doc/font.html (right at the top). Regarding the various ID_* constants you can do this (assuming Ruby 1.9): ruby -rwx -e 'puts Wx.constants.map(&:to_s).grep(/^ID_/).sort' This will get you a complete and alphabetically ordered list of all ID_* constants defined. Usually their meaning is guessable from the name. Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJN3LzKAAoJELh1XLHFkqhaShoH/2nBo52LBE+aQdqTiaLyMkgB Hmg0dlB0J4qm5fLs8T0+PhNFHWDnMgPBxJ9+EpiT+s6QfDYRA9zldnsCMUmWmAzy QcGGJ3QfXiQk7K8nMMqoaj/gwrholKW4p2HWNBtbbrf6Eixt13rAWDoANxSD9BXb QzKn9Mf3VqO6b2I/xuYvWbIXTflvLw/Zd9R0xSoio+1+X6pjZTtxkstsClzFfF55 usjttGdAk0Kd2axjHrpdtXwf/SEETj8F5diOD9yPSdt/LpOE4bG7pzIolIg8ryBR hQM/e59UXa8Pk6iBFUJAnJY1IG9SAchN9gucBM0y7Cis1zOWuHw8Udh/Ot1fyhs= =LVYY -----END PGP SIGNATURE----- From chauk.mean at gmail.com Wed May 25 15:04:15 2011 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Wed, 25 May 2011 21:04:15 +0200 Subject: [wxruby-users] Documentation morass In-Reply-To: References: Message-ID: Hi, 2011/5/24 Ann Maybury : > I am having a horrible time finding data that I need to learn ruby and > wxruby.?? I even downloaded the source in order to try to use the Windows > Search tools on it. > > For Instance, the printing.rb sample starts with > ?????? WXPRINT_QUIT = WX::ID_EXIT > Using Windows to search the supposed source I do not find any string ID_EXIT > in any file. Most wxRuby definitions (classes, constants) come from wxWidgets C++ source code. So you will not see them as Ruby definitions in .rb files. SWIG is the glue that makes C++ definitions appears as Ruby definitions. So you need to look for C++ header files included in SWIG interface files (.i). > Looking at the documentation on line is very frustrating.?? Can this > documentation by downloaded and read with some tool? The HTML documentation can be downloaded from the rubyforge site : http://rubyforge.org/frs/?group_id=35 Cheers, Chauk-Mean From ann.maybury at gmail.com Thu May 26 18:48:31 2011 From: ann.maybury at gmail.com (Ann Maybury) Date: Thu, 26 May 2011 15:48:31 -0700 Subject: [wxruby-users] Printing.rb run time error. Message-ID: I have attached a copy of printing.rb for reference. When running this program which I got from the samples is that it gets an error under the following scenario. 1.0 Run the program. 2.0 Select the File/PageSet up menu 3.0 Hit ok on the page set up dialog. 4.0 Run your mouse over the window that exists after the dialog closes 5.0 The program dies. a. My best guess is that the dc shown in MyCanvas class (line 196 in the attachment) has been somehow lost during the page set up dialog processing. I am such a Ruby newbie that I don't know if this could be correct. b. It appears that the on_draw(dc) at line 196 is called from Windows. If my hypothesis about the dc being lost is correct, how could I capture, save, and restore it. All my attempts have failed. c. I am digging through the printing.rb sample and putting in comments as I understand it better. My plan is to send the commented version somewhere when I finish it so that it will be easier for other Ruby newbies to understand. * Where would I send it when I finish adding comments?* -- Ann Maybury ann.maybury at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: printing.rb Type: application/octet-stream Size: 14469 bytes Desc: not available URL: From ryan.w.hinton at L-3com.com Fri May 27 14:00:01 2011 From: ryan.w.hinton at L-3com.com (ryan.w.hinton at L-3com.com) Date: Fri, 27 May 2011 12:00:01 -0600 Subject: [wxruby-users] Missing Config* and FileHistory classes Message-ID: [versions:] wxruby (2.0.1 x86-mingw32) ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] I am thoroughly enjoying using WxRuby to design a GUI for my application. It seems to be missing a few pieces of the framework. In particular, I cannot find the Config* classes or the FileHistory class. I see them in the documentation (e.g. http://wxruby.rubyforge.org/doc/configbase.html), but I can't find them in the code. In particular, p Wx.constants.find_all {|const| const[0] == 67} at an IRB prompt doesn't include any of the Config* classes. Are these classes superseded or available some other way? 'grep' shows similar strings in wxruby.so, but I can't seem to get at them. Thanks! --- Ryan Hinton L-3 Communications / Communication Systems West ryan.w.hinton at L-3com.com