I have shoes raisins (0.r1134) [i686-darwin8.9.1] +video
I'm trying to set up a Shoes.setup block like this:
Shoes.setup do
gem 'mini_exiftool'
gem 'xml-simple > 1.0'
require "mini_exiftool"
require 'xmlrpc/client'
require 'xmlsimple.rb'
require "my_webservice_api_wrapper"
mwa = MyWebserviceApiWrapper.new
mwa.login ...
I try the following on vista x64 (latest shoes version):
Shoes.app {
stack do
download "http://www.gooogle.com", :method => "POST" do |goog|
para goog.response.headers.inspect
end
end
}
The program crashes, and under the event viewer I get the following:
Faulting application shoes.exe,
version 0.0.0.0, time sta...
I'm trying to produce a shoes layout like the following:
the text is giving me a problem. I tried:
stack {
flow {
check
stack {
para 'text 1'
para 'text 2'
}
para 'Free'
}
}
But that doesn't work at all. Any ideas?
...
I looked around the documentation but found nothing - is there a way to make a Shoes app display full screen?
Possibly something like..
Shoes.app :fullscreen => true do
para "test"
end
Looking in the source-code, the following lines mentioning "fullscreen" (among others):
shoes/app.c:58: app->fullscreen = FALSE;
shoes/native/coco...
I have only been using Shoes for a few days now so maybe I am missing something. I wrote my son an little program to help him learn his multiplication tables. When he gets ten correct he's done. I can not seem to get the while loop right using SHOES.
Would some please show me a while statement. When I try; it either wipes out my flow and...
How can I run my Carpet applications directly from Aptana Studio with RadRails? Setting the shoes.exe as VM/Interpreter won't work.
...
I am trying to read in from a few files using something like this
IO.foreach("TeamFields.txt") { |line| fieldNames.push(line.chomp) }
It works fine when running the from the command line, but when I package to an .exe with shoes and run it can't find the file. Is there a way to specify a path relative the the .exe or do I have to prov...
This is a simple test Ruby Shoes program I am talking about: When I try to use the subclass syntax, like class Hello < Shoes and run my program, it complains 'undefined method para' or 'undefined method stack'. Obviously it is not able to subclass Shoes, hence does not know any thing about 'para' or 'stack' methods. However it runs fine,...
Is it possible from within shoooes to spawn a separate thread which will read from a named pipe and then print whatever is written in that name pipe into a text box? Would anyone have an example of how to set that up?
...
The code below has (at least) two problems: the Copy button doesn't update the clipboard, and the edit_box doesn't show a vertical scroll bar when it should.
Shoes.app (:title => "Test", :width => 1000, :height => 600) do
background "#DFA"
stack :margin => 30 do
flow do
button "Paste" do
@sql.text = clipboard
...
In what format is 'button' stored?
if button == 1
doesn't work for testing left mouse button click.
...
I want to setup a rect/slot, that when hovered over, creates a little window hovering off the side of the rect/slot (a little overlapping).
I'd also like to fit some buttons in the little menu. I'd like the little menu to be longer (width-wise) than the original rect/slot, in order to fit many buttons, which means I can't use slot.hover...
The default vertical alignment in a flow slot is apparently to top-align the elements. Here's a sample:
Shoes.app (:title => "Vertical Alignment", :width => 300, :height => 150) do
background "#DFA"
flow :margin => 30 do
title "BIG"
tagline "MEDIUM"
inscription "SMALL"
end
end
How do I get the flow slot to center-al...
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 complet...
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 sa...
I am trying to write a simple tool using Shoes. This will indent code for an obscure scripting language we use. It has one large text box and one button. I have the program working on the command line, but am having no luck wrapping this up in Shoes. If anyone could give a working example of an app that does the following tasks to get me...
The --package option for Shoes appears to be missing on Linux.
./shoes.run --package
Any ideas where it is?
...
I borrowed some code from a site, but I don't know how to get it to display.
class Stopwatch
def start
@accumulated = 0 unless @accumulated
@elapsed = 0
@start = Time.now
@mybutton.configure('text' => 'Stop')
@mybutton.command { stop }
@timer.start
end
def stop
@mybutton.configure('text' => 'Start')
...
Does anyone know of a Debian Package of Shoes?
I am building a live CD and would like to include shoes in it, but I can't seem to find one.
...
Is there a way to run a heavy operation in shoes in a different thread so that the GUI is not freezing until the operation is finished? (smth. similar to download but more generic, like SwingWorker.class in Swing).
I have tried the following:
Thread.start { <heavy operation block is here> }
but that didn't help. looks like Shoes main...