shoes

How can I use the progress bar in Shoes?

拈花ヽ惹草 提交于 2020-01-15 12:15:29
问题 Ok, so I'm not real sure about lots of things in Shoes, but my trial and error approach has failed me so far on this one. I've got a class that does some sort of computation that takes a while, and I want to throw up a progress bar for the user to look at while it finishes. My computationally intensive method yields its percent complete if passed a block: class MathyStuff def initialize() end ## Some expensive, time consuming method which yields it's percent complete def expensiveMethod(

Ruby Shoes packager including Shoes in the app

烂漫一生 提交于 2020-01-13 20:21:26
问题 I can't seem to get the Ruby Shoes packager to correctly create an exe with Shoes included. I'm using the Raisins release (0.r1134), with the pack.rb replaced from github. The exe's the packager makes are all 70-80K files (they obviously don't include shoes or ruby). These exe's will run on my XP machine that already has Shoes on it. but when I copy them to another laptop they start a "Shoes is downloading" dialog that does nothing and then goes away. I need to make standalone Windows exe's,

Ruby Shoes packager including Shoes in the app

橙三吉。 提交于 2020-01-13 20:19:28
问题 I can't seem to get the Ruby Shoes packager to correctly create an exe with Shoes included. I'm using the Raisins release (0.r1134), with the pack.rb replaced from github. The exe's the packager makes are all 70-80K files (they obviously don't include shoes or ruby). These exe's will run on my XP machine that already has Shoes on it. but when I copy them to another laptop they start a "Shoes is downloading" dialog that does nothing and then goes away. I need to make standalone Windows exe's,

Trying to access the “current dir” in a packaged Shoes app

情到浓时终转凉″ 提交于 2020-01-05 12:15:24
问题 I need to build an app which reads a file which is external to the Shoes package I'll be distributing it in. In my app, Dir.pwd points to the temp dir (at least in Windows) where the script is unpacked to be ran. I've been trying to get the directory where the exe is running from, that is, the package I'm distributing. The app needs to read a file which is distributed besides this package and then write another one in the same directory. It seems that the Shoes runtime does not set any env

Where to put ruby .gem files so that Shoes.setup can find them?

六眼飞鱼酱① 提交于 2020-01-02 05:58:08
问题 A lot of questions have been asked about gem support in Shoes, but none have answered where to put them. I've got Shoes Raisins 1134 on Windows XP, and I've downloaded dbi-0.4.1.gem and am trying to get the following to work: Shoes.setup do gem 'dbi' end require 'dbi' Shoes.app ... end When I run this, I get the dialog that says Installing dbi -- Looking for dbi which sits for hours not finding the gem file. I've tried putting it in all of the following places to no avail: The folder that

Where to put ruby .gem files so that Shoes.setup can find them?

穿精又带淫゛_ 提交于 2020-01-02 05:58:06
问题 A lot of questions have been asked about gem support in Shoes, but none have answered where to put them. I've got Shoes Raisins 1134 on Windows XP, and I've downloaded dbi-0.4.1.gem and am trying to get the following to work: Shoes.setup do gem 'dbi' end require 'dbi' Shoes.app ... end When I run this, I get the dialog that says Installing dbi -- Looking for dbi which sits for hours not finding the gem file. I've tried putting it in all of the following places to no avail: The folder that

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again

假装没事ソ 提交于 2019-12-24 10:39:13
问题 I am beginner in shoes app, when I was trying to run a shoes app in the Ubuntu 12.04 terminal using shoes samples/test22.rb I'm getting this error: Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again. So how can I solve this or some one help me to run a simple shoes app in ubuntu and make a desktop app? 回答1: I'm guessing you are running shoes4. It runs fine for me on ubuntu 14.04, so let's figure out the

Make text transparent in Shoes.app

。_饼干妹妹 提交于 2019-12-24 02:13:26
问题 Is there a way in Shoes to have text show up transparent? I have: Shoes.app{ para "Text", :stroke => rgb(1.0,0.0,0.0,0.5), :size => 100 } But it's just showing up 100% red. I know opacity works for fill, does it also work for stroke? (I am developing with Shoes Raisins Revision 1134 on Mac OS X 10.4.11) Thanks in advance 回答1: Alpha works on both stroke and fill, but not for text. For example, this code will draw a 50% transparent blue circle over the text: Shoes.app do para "Text", :stroke =>

Shoes packager problem

不打扰是莪最后的温柔 提交于 2019-12-24 00:52:27
问题 I used packager to make an executable file for the following code: Shoes.app do stack :margin => 10 do @edit = edit_box :width => 1.0 do @para.text = @edit.text end @para = para "" end end then I got error message: Error in C:/Program Files/Common Files/Shoes/0.r1134/lib/shoes.rb line 394utf.rb: 10: compiler error utf.rb: 10: Invalid char '\377' in expression utf.rb: 10: Invalid char '\337' in expression utf.rb: 10: Invalid char '\337' in expression utf.rb: 10: Invalid char '\331' in

Shoes and Gems

耗尽温柔 提交于 2019-12-21 20:44:02
问题 Code: Shoes.setup do gem 'mechanize' end require 'rubygems' require 'mechanize' Running Shoes on it says: no such file to load -- mechanize Thank you. 回答1: I did: sudo gem install mechanize and the following seems to be working: Shoes.setup do gem 'mechanize' end require 'mechanize' It says 'Building native extensions' and is taking forever, but seems to be the norm according to hackety.org. 回答2: rubygems needs to be required before any gems. require 'rubygems' require 'mechanize' Shoes.setup