From lists at ruby-forum.com Sat Apr 7 23:11:58 2012 From: lists at ruby-forum.com (Kevin McCaughey) Date: Sun, 08 Apr 2012 01:11:58 +0200 Subject: [wxruby-users] getting wxRuby to work on Ubuntu 11.10 In-Reply-To: <20120209115344.99174vf71mfmngoo@host318.hostmonster.com> References: <20120209115344.99174vf71mfmngoo@host318.hostmonster.com> Message-ID: I am coming at this from C/C++ and have fallen in love with Ruby. After much reading of this forum and asking on IRC, I think it would be a real shame to have wxRuby slide into oblivion. I have a lot of time on my hands at the moment (unless my current project takes off quicker than expected). I have never committed anything to Open Source, but I am going to start here if I can. To the guy posting above as guest - if you access this via ruby-forum.com you can set up a username easily and it means we know who the knew committer is! (By persona at any rate - which is helpful) Just how much of this is a SWIG problem and how much is down to wxRuby just not being worked on? Even a ballpark percentage split would be helpful to know from one of the previous developers. If it's really just a SWIG problem then maybe our time is indeed better spent there for the moment? -- Posted via http://www.ruby-forum.com/. From sutniuq at gmx.net Sun Apr 8 07:58:27 2012 From: sutniuq at gmx.net (Quintus) Date: Sun, 08 Apr 2012 09:58:27 +0200 Subject: [wxruby-users] getting wxRuby to work on Ubuntu 11.10 In-Reply-To: References: <20120209115344.99174vf71mfmngoo@host318.hostmonster.com> Message-ID: <4F814523.2030008@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 08.04.2012 01:11, schrieb Kevin McCaughey: > I am coming at this from C/C++ and have fallen in love with Ruby. > After much reading of this forum and asking on IRC, I think it > would be a real shame to have wxRuby slide into oblivion. I agree. So you already had contact with the wxRuby devs in #wxruby on Freenode? > I have a lot of time on my hands at the moment (unless my current > project takes off quicker than expected). I have never committed > anything to Open Source, but I am going to start here if I can. Commiting to OpenSource software is always a good way to develop things. > To the guy posting above as guest - if you access this via > ruby-forum.com you can set up a username easily and it means we > know who the knew committer is! (By persona at any rate - which is > helpful) He uses the mailing list directly and has switched to posting to the wxRuby development ML, which is not listed on ruby-forum.com (see http://wxruby.rubyforge.org/wiki/wiki.pl?MailingLists). However, I?ve not seen any post by him in the last weeks. > Just how much of this is a SWIG problem and how much is down to > wxRuby just not being worked on? Even a ballpark percentage split > would be helpful to know from one of the previous developers. If > it's really just a SWIG problem then maybe our time is indeed > better spent there for the moment? I?ve looked into wxRuby?s sourcecode a while ago, and if I remember correctly it?s made up of SWIG code to about 85%. I?m not sure about the current SVN trunk, but at least for the latest stable release 2.0.1 you?re limited to SWIG version 1.3.38 and there?s no support for wxWidgets 2.9. Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPgUUdAAoJELh1XLHFkqha/NYH/3yaCMXWA8f4O7+ln0vdIFRC 4WChevwkmiRaA2yLANmCF8w7wjHU9if66FmEB5q+jBZhbFykWANeG2/91qUDYcQ1 GS90CxkCmxG9cx5g8J2I5bTBUro7JlzDRK4Hf5YlP+B2kLYQfQ1lE/+HWD3+I4kp htjdyvFEPMgGcr8NGOa/LZKJcix2f8zqO1BN+60KCS3PSehyzFrFF/lcO9IYRD6K hwJMaS2wh+ONDz387iAjU04gsOI/r3t6y5RNYAEEsoE4shKazLSckKmL4c8uWLb6 sjOhTEy/TZ7nY0sNo4ssL4oUvloMgWklS5HqhWQuVe6FnDladFzPm6MpacAKsTk= =fGjD -----END PGP SIGNATURE----- From chauk.mean at gmail.com Mon Apr 9 07:22:06 2012 From: chauk.mean at gmail.com (Chauk-Mean Proum) Date: Mon, 9 Apr 2012 09:22:06 +0200 Subject: [wxruby-users] getting wxRuby to work on Ubuntu 11.10 In-Reply-To: <4F814523.2030008@gmx.net> References: <20120209115344.99174vf71mfmngoo@host318.hostmonster.com> <4F814523.2030008@gmx.net> Message-ID: Hi, >Le 8 avril 2012 09:58, Quintus a ?crit : >I?ve looked into wxRuby?s sourcecode a while ago, and if I remember >correctly it?s made up of SWIG code to about 85%. I?m not sure about >the current SVN trunk, but at least for the latest stable release >2.0.1 you?re limited to SWIG version 1.3.38 and there?s no support for >wxWidgets 2.9. SWIG-2.0.x support has been added in SVN (in the branches/wxruby_2_0_stable). It's not yet delivered as a release but you can get the sources from SVN. Like me, Alex, the lead developer, has been away from the project for a long while. Cheers, Chauk-Mean -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Mon Apr 9 22:07:26 2012 From: lists at ruby-forum.com (Alessandro Barracco) Date: Tue, 10 Apr 2012 00:07:26 +0200 Subject: [wxruby-users] Tooltip (help text) on toobar button not showing In-Reply-To: <1bf2a80ed3c00555bf9bd021177dc387@ruby-forum.com> References: <4c8daacc0900c847483b69d912fe22cb@ruby-forum.com> <1bf2a80ed3c00555bf9bd021177dc387@ruby-forum.com> Message-ID: <9dcfe4891d62dc4294ffe1c40fbb451e@ruby-forum.com> Alessandro Barracco wrote in post #1006073: > Is this a bug? Up!!!! -- Posted via http://www.ruby-forum.com/. From tk at tkinnovations.net Tue Apr 10 15:42:58 2012 From: tk at tkinnovations.net (tk at tkinnovations.net) Date: Tue, 10 Apr 2012 09:42:58 -0600 Subject: [wxruby-users] getting wxRuby to work on Ubuntu 11.10 In-Reply-To: <4F814523.2030008@gmx.net> References: <4F814523.2030008@gmx.net> Message-ID: <20120410094258.129714dj9zst01ky@host318.hostmonster.com> Sorry missed this as Spam Assassin snatched it due to the relay and lack of rDNS. > Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 08.04.2012 > 01:11, schrieb Kevin McCaughey: > I am coming at this from C/C++ and have > fallen in love with Ruby. > After much reading of this forum and asking on > IRC, I think it > would be a real shame to have wxRuby slide into > oblivion. I've been absent as I've been hoping job sites so haven't made much progress in getting the wx 2.8.11 contrib lib for property grid added in my local dev files. My test case is from a working wx C++ project. I have the entire interface sans that plus a custom control working in wxRuby. I hit a wall in my lack of experience with SWIG and getting the events correct. I am very intrigued by the post of someone committing a patch getting SWIG 2.x working. I really want to try and find a commit or *something* I can read a diff where a dev added a control so I can see the process. As an aside, implementing a custom wxRuby class to "roll my own" property grid was easy with the current control support, however that defeated the purpose of learning. Maybe we can sweet talk a dev into posting a diff or short tutorial on adding a lib. Seeing the walk through of adding a small lib (maybe making a custom control with a couple I/O and event functions) will be tremendously helpful. If I can get through the wall, I'll be happy to post the entire app as a tutorial. From alex at pressure.to Fri Apr 13 08:53:17 2012 From: alex at pressure.to (Alex Fenton) Date: Fri, 13 Apr 2012 09:53:17 +0100 Subject: [wxruby-users] getting wxRuby to work on Ubuntu 11.10 In-Reply-To: <20120410094258.129714dj9zst01ky@host318.hostmonster.com> References: <4F814523.2030008@gmx.net> <20120410094258.129714dj9zst01ky@host318.hostmonster.com> Message-ID: <4F87E97D.201@pressure.to> On 10/04/12 16:42, tk at tkinnovations.net wrote: > Sorry missed this as Spam Assassin snatched it due to the relay and > lack of rDNS. > >> Content preview: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am >> 08.04.2012 >> 01:11, schrieb Kevin McCaughey: > I am coming at this from C/C++ >> and have >> fallen in love with Ruby. > After much reading of this forum and >> asking on >> IRC, I think it > would be a real shame to have wxRuby slide into >> oblivion. Thanks - I totally agree. Chauk-mean has done great work to get things working with SWIG 2.x, and that should be maintainable now. There is a bigger job up ahead of porting to wxWidgets 3.0, which will get the library working again properly on OS X. > I hit a wall in my lack of experience with SWIG and getting the events > correct. I am very intrigued by the post of someone committing a patch > getting SWIG 2.x working. I really want to try and find a commit or > *something* I can read a diff where a dev added a control so I can see > the process. What problem did you run into with the event binding? Our Ohloh page has a list of SVN commits: https://www.ohloh.net/p/wxruby/commits You could have a browse through that - some of the older ones will involve adding classes. > As an aside, implementing a custom wxRuby class to "roll my own" > property grid was easy with the current control support, however that > defeated the purpose of learning. Maybe we can sweet talk a dev into > posting a diff or short tutorial on adding a lib. Seeing the walk > through of adding a small lib (maybe making a custom control with a > couple I/O and event functions) will be tremendously helpful. There's some stuff on the wiki already on adding a class - is that what you meant by a 'lib'? Anyway, just posting to say that I'm around, even if I might be a bit slow to reply... cheers a From lists at ruby-forum.com Tue Apr 17 11:33:03 2012 From: lists at ruby-forum.com (Carsten Gehling) Date: Tue, 17 Apr 2012 13:33:03 +0200 Subject: [wxruby-users] Printing (on Windows) without using any print dialogs Message-ID: <2b4b33be2a1dac0bc6f26ab0876f2c6d@ruby-forum.com> I am developing a Windows application that is going to print on envelopes (C5 and C6 envelopes) based on data, that is retrieved from an external order system. The application is going to be running mostly automatic. So I need to bypass the print setup dialog, that is normally used when printing with wxRuby. This presents me with some problems. I create a Wx::PrintData object to control the printer, paper size, orientation, etc. like this (the printer name is just an example, I hold it in a config file): pd = Wx::PrintData.new pd.set_printer_name("Dell 3110cn") pd.set_paper_id(Wx::PAPER_ENV_C6) The last line gives me this error: `set_paper_id': Expected argument 1 of type wxPaperSize, but got Fixnum 31 (TypeError) The type wxPaperSize is not defined (as far as I can see), but it i? something coming from the SWIG interface. I don't really know how to solve this. If outputting the existing paper_id I get: > puts pd.get_paper_id.inspect # Which doesn't really make it any clearer for me. So how should I do this? / Carsten -- Posted via http://www.ruby-forum.com/. From alex at pressure.to Thu Apr 19 20:14:15 2012 From: alex at pressure.to (Alex Fenton) Date: Thu, 19 Apr 2012 21:14:15 +0100 Subject: [wxruby-users] Printing (on Windows) without using any print dialogs In-Reply-To: <2b4b33be2a1dac0bc6f26ab0876f2c6d@ruby-forum.com> References: <2b4b33be2a1dac0bc6f26ab0876f2c6d@ruby-forum.com> Message-ID: <4F907217.2030205@pressure.to> Hi Carsten On 17/04/12 12:33, Carsten Gehling wrote: > I create a Wx::PrintData object to > control the printer, paper size, orientation, etc. like this (the > printer name is just an example, I hold it in a config file): > > > pd = Wx::PrintData.new > pd.set_printer_name("Dell 3110cn") > pd.set_paper_id(Wx::PAPER_ENV_C6) > > The last line gives me this error: > > `set_paper_id': Expected argument 1 of type wxPaperSize, but got Fixnum > 31 (TypeError) > > The type wxPaperSize is not defined (as far as I can see), but it i? > something coming from the SWIG interface. I don't really know how to > solve this. It looks like wxRuby doesn't know at the moment that PaperSize is just a constant and it should treat it as such. It's an oversight in the wrapping, sorry. > # > > Which doesn't really make it any clearer for me. So how should I do > this? It's not something that can be worked round directly in Ruby, I think. The best thing to do would be to post a bug - it isn't a difficult fix to the C wrapper, but I don't have time now I'm afraid. alex