Questions tagged [fxruby]

FXRuby is a well documented graphics library in the scripting language Ruby.

FXRuby is a well documented graphics library in the scripting language Ruby.

34 questions
1
vote
1 answer

Issues using fxruby on OS X Mavericks

I am trying to install the fxruby gem, but when I try to require it, I get this error message: LoadError: cannot load such file -- fox16 from /usr/local/Cellar/ruby/2.0.0 p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' …
0
votes
1 answer

very noob question about ruby inheritance, ruby object inside FXRuby

first sorry for my poor english...I've a doubt..I'm reading the FXRuby for the pragmatic programmer..and I saw this code require 'fox16' include Fox class HelloWindow < FXMainWindow def initialize(app) super(app, "Hello, World!" , :width…
0
votes
0 answers

How to hide the cmd windows when running external executables that are called through an OCRA Ruby executable?

I have a ruby script that runs many external executables (.exe). I run these executables in two different ways. sytem(program) IO.popen(program), in this case I need the PID since later on I monitor this process. My UI is designed with FX ruby.…
MrBogus
  • 26
  • 1
0
votes
1 answer

How to use ocra to pack script using fxruby gem into executable?

I'm new to ruby and I'm trying to use ocra to pack a script that uses the fxruby gem to create a GUI, however, my command creates an executable that doesn't perform any action, this is the command I'm using: ocra --no-enc --no-dep-run --gem-full…
Goemon0992
  • 17
  • 6
0
votes
1 answer

How can I connect to database using FXRuby

I'd like to create an app that accesses db (with 1 table) and outputs its table in a window using FXRuby. Is there any way to make it without using query language like in this example: require 'pg' conn = PG.connect(dbname: 'testdb', user:…
T1v1
  • 37
  • 7
0
votes
2 answers

Library not recognized in Linux environment

I installed "eclipse" and want to run "fxruby" on fedora "linux", but it does not work it. The error says : cannot load such file -- fox16 (LoadError) I installed this file with command gem install fxruby but fxruby not exist in gem list. How…
bt1397
  • 1
  • 4
0
votes
0 answers

cannot load such file -- fox16 (LoadError) error on eclipse of fedora

I installed "eclipse" and want to run "fxruby" on fedora "linux", but it does not work it. The error says : cannot load such file -- fox16 (LoadError) I installed this file with command gem install fxruby but fxruby not exist in gem list. How…
bt1397
  • 1
  • 4
0
votes
1 answer

Ruby require Fox Error on Ubuntu

When I want to run my .rb file on Terminal this comes up the whole time: /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- fox (LoadError) from…
kleif
  • 1
0
votes
1 answer

Error in Building FXRuby from Source on Linux

I encounter an issue in building FXRuby from source. Below are the steps I did. download the source from http://rubyforge.org/frs/?group_id=300&release_id=41247, click on FXRuby-1.6.19.tar.gz. extract the file $ tar xzf FXRuby-1.6.19.tar.gz follow…
Sambath Prum
  • 1,858
  • 9
  • 25
  • 33
0
votes
2 answers

In FXRuby when trying to specify a font I get an error "FXDCWindow::setFont: illegal or NULL font specified.", how to fix this?

In Ruby when trying to specify a font I get an error "FXDCWindow::setFont: illegal or NULL font specified.". I tried doing it like this: @font = FXFont.new(app, 'times') I need to set a font in order to use drawText in my program and I can't figure…
Adam Ashwal
  • 1,472
  • 1
  • 19
  • 36
0
votes
1 answer

How to use drawText on FXCanvas in FXRuby?

I am trying to make text appear on a FXCanvas. when I use this code: def score_box(event) FXDCWindow.new(@canvas) do |dc| dc.drawText(640, 450, @score) end end but it gives me an error saying I need to select a font, how do I do this?…
Adam Ashwal
  • 1,472
  • 1
  • 19
  • 36
0
votes
1 answer

How to integrate FxRuby framework with Aptana Studio 3?

I want to use Aptana Studio 3 Beta for all my Ruby developments. I am planning to write a Windows appl. using FxRuby framework, but how to integrate this framework with Aptana Studio 3?
RKh
  • 13,818
  • 46
  • 152
  • 265
0
votes
2 answers

How do I fetch images of the internet in FXRuby?

so let me preface this with the fact that I am a beginner at ruby and FXruby. I would like to know how I can fetch images by using a URL. This is the code I used when getting them off my desktop: require 'rubygems' require 'fox16' include…
Adam Ashwal
  • 1,472
  • 1
  • 19
  • 36
0
votes
1 answer

Using the FXFont class

how do you use the FXFont class on FXRuby so that you can change the font and color of the text on your application? THANKS!
Eli
  • 81
  • 1
  • 3
0
votes
1 answer

how to reduce amount of time to open ruby executable that contains a GUI?

I've been using ocra to convert my ruby files to a window executable, but I notice that it takes a very long time if I use ruby GUI like fxruby or green_shoes. Is there any way to reduce the amount of time it takes for the program to pop up? My…
Lena
  • 1
  • 1