From shs at demosophia.net Wed Nov 9 15:00:43 2011 From: shs at demosophia.net (Svend Haugaard =?UTF-8?B?U8O4cmVuc2Vu?=) Date: Wed, 9 Nov 2011 21:00:43 +0100 Subject: [wxruby-users] gentoo ebuild for latest version? Message-ID: <20111109210043.37e8d8cd@cybert.demosophia.net> DO anybody use wxruby on gentoo. The last update of my gentoo platform broke my wxruby programs. The ebuild I have in my /usr/local/portage is for version 1.9.8 of wxruby and it uses version <1.3.36 of swig, but portage only support swig 1.3.40 now. Anyone with a newer version of a ebuild? From edwinconnell at gmail.com Fri Nov 25 02:14:56 2011 From: edwinconnell at gmail.com (Ed Connell) Date: Fri, 25 Nov 2011 01:14:56 -0600 Subject: [wxruby-users] Thread.new Message-ID: This code runs fine (except you can't mess with the window until the 10 loops are finished). But if the comment mark is moved down to the 10.times do so that it can run in a different thread, nothing below Thread.new do ever happens. Help! please. Thanks. I'm running Ruby 1.9.3 and wxRuby 2.01. def busy_task # start task in a separate thread @text.append_text "In busy_task\n" # Thread.new do 10.times do @text.append_text "In busy_task\n" @tasks += 1 tasks = @tasks 10.times do @text.append_text "running #{tasks} ... #{Time.new}\n" (1...1_00_000).inject :+ end # do @text.append_text "Thread #{tasks} done\n" end # do end # busy_task -- I have a right and a left brain, but there is nothing right in the left one and there is nothing left in the right one! Homepage: edsbog.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sutniuq at gmx.net Sat Nov 26 04:10:29 2011 From: sutniuq at gmx.net (Quintus) Date: Sat, 26 Nov 2011 10:10:29 +0100 Subject: [wxruby-users] Thread.new In-Reply-To: References: Message-ID: <4ED0AD05.5080506@gmx.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Ed, On 25.11.2011 08:14, Ed Connell wrote: > This code runs fine (except you can't mess with the window until > the 10 loops are finished). But if the comment mark is moved down > to the 10.times do so that it can run in a different thread, > nothing below Thread.new do ever happens. Help! please. Thanks. wxRuby doesn?t like threads. Search the mailing list archives and you?ll find plenty of topics related to your problem. If you don?t need shared memory, I recommend you to look into processes. Vale, Marvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJO0K0BAAoJELh1XLHFkqhaMEYH/07g2Qa505om9GNb4Y0ozSEn wByEaHu/C8VD9k9dOwzudoK4uP0FJyKPR39o6TFlD6kcYNy5nrJxiIitoHmuuw+P qXgS6qvcBub1vBHhx1WKiyb5SYaeBKDC/wXR7fdpjoql/f6vY9vOQ9iXFIMqmLMA h4cX6yzVNyfT88Ss4hia4L/ZccL6/6TnzneN/z1h49wdfAEdlR3gZ7vTlmUpuWt0 i/4PnmBjXYL2NGEXnaRRgaXEpQB1q3Mrj4c8wC87WnM5M+1lp7N63swYW7BvZYOt zCu19Vs1zuLftA3iUOen9JAwa9qyKJeEW1WdbFCOLuGWXagSAc2gbcBM/TrSF1k= =x1sV -----END PGP SIGNATURE-----