Questions tagged [wxruby]

wxRuby is Ruby version of wxWidget which is cross-platform GUI framework.

wxRuby is Ruby version of wxWidget which is cross-platform GUI framework.

40 questions
1
vote
0 answers

Changing between panels on FXWizard

I'm trying to set up an installation wizard, which has just 3 steps. However, I'm stuck with moving between panels. I understand that setCurrentPanel can be used to change the present panel, but when I just try to move it from 0 to 1, it raises an…
Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
1
vote
1 answer

Using FXRegistry to store persistent data in FXRuby

I'm using FXRegistry to store the username and password, so that I can authenticate with my web service. When a user logs in, the username and password get written to the FXRegistry, and everything seems great. But when I exit out of the application…
Swaathi Kakarla
  • 2,227
  • 1
  • 19
  • 27
1
vote
2 answers

Embed webserver in desktop app: wxRuby and Sinatra

I would love to give my windows based desktop applications a web interface and vice versa. My desktop application is written in wxRuby and the webserver is Sinatra (using webrick). The simplest idea was just to mash them together, this does not…
jrhicks
  • 14,759
  • 9
  • 42
  • 57
1
vote
1 answer

wxruby and rubymsn

I'm currently playing with wxRuby and RubyMSN to learn to program desktop-programs. I know it is a hard task instead of just crating a notepad etc, but I need a bigger task than a notepad. I now do manage to use them by them self, but I cant get…
ThoKra
  • 2,959
  • 2
  • 27
  • 38
1
vote
1 answer

Which widgets to use for a messenger

I'm currently learning to program Ruby with GUI. And has chosen wxruby. But has never used wxwidgets before. So my question is, which widgets do I use for the users list, the message list (scrolling) and the input area ? Want to be able to choose…
ThoKra
  • 2,959
  • 2
  • 27
  • 38
1
vote
1 answer

f.pos undefined?

simplified version of my problem require 'wx' Wx::App.run do f = Wx::Frame.new nil f.title= 'the potlee' f.size= Wx::Size.new( 200 , 500) f.pos= Wx::point.new(50,50) f.show end i get this error `method_missing': undefined method…
potlee
  • 405
  • 1
  • 5
  • 13
1
vote
2 answers

Ruby not finding rubygems or wx modules

I'm running the default Ruby installation (ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]) on my Intel iMac. I updated RubyGems and installed the wxruby gem. I'm trying to run the following sample program: #!/usr/bin/ruby require…
1
vote
0 answers

wxRuby Segfaults When Trying to Run Main Loop

I'm trying to run wxRuby with Ruby 1.9, but I can't start up the application without getting a segfault. Even the small minimal application suggested on the website (code used is below) won't run. require "wx" include Wx class MinimalApp < App …
vinnydiehl
  • 1,654
  • 1
  • 13
  • 17
0
votes
1 answer

Problem on RadioBoxes with wxRuby

I got a situation on wxRuby using Wx::RadioBox. My radioboxes got some ugly background & borders like that : Unlike the demo which got a better style when I run it : here is my code : #!/usr/bin/env ruby # coding: utf-8 require 'wx' include…
cz3ch
  • 409
  • 2
  • 11
0
votes
2 answers

Getting 'Gtk:ERROR' trying to run WxRuby

I'm using Ubuntu 10.04 and I'm trying to run a WxRuby example which I copy-pasted from this site WxRubyWiki. I've been looking for help over the net but I couldn't find anything similar... I'm getting this…
0
votes
1 answer

How do you copy and paste rich text to and from the wxRichTextCtrl?

I am using wxruby but as far as I can tell its not only a ruby problem. If I try to copy and paste rich text into the wxRichTextCtrl it loses all the formatting. What am I missing? Is there any way to make this work?
GitNick
  • 311
  • 2
  • 14
0
votes
1 answer

How to make a control invisible?

I've made several TextCtrls and Button, but currently users of my application don't want to see them. So I have to hide them temporary (for current build). Here they are: class MainFrame < Wx::Frame def initialize (parent = nil) super…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
0
votes
1 answer

wxRuby - change TextCtrl Style property

I'm brand new to wxRuby, and just trying to figure things out. How do I change the style of the TextCtrl after it has been created. tb = Wx::TextCtrl.new(panel, -1, :style => Wx::TE_PASSWORD) Sets the text input properly, but is it possible to…
Adam Rackis
  • 82,527
  • 56
  • 270
  • 393
0
votes
2 answers

Can't add menu item using wxRuby

I am just starting to play with wxRuby, using the samples which come with it. However, I can't seem to add a menu item. I have tried a bunch of things, but here is what I want to do: class MinimalFrame < Frame def initialize(title) ... …
Paul Hoffer
  • 12,606
  • 6
  • 28
  • 37
0
votes
1 answer

How to write a wxRuby program that will just drawText and setPixel without going into main_loop?

I want to write a program that will constantly compute numbers, and draw on the window canvas, including drawing text and setting pixels. So the program probably cannot go into an event loop (the main_loop), because that will stop the computation…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740