Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls demo fails #7

Closed
rhinton opened this issue Feb 4, 2014 · 1 comment
Closed

Controls demo fails #7

rhinton opened this issue Feb 4, 2014 · 1 comment

Comments

@rhinton
Copy link

rhinton commented Feb 4, 2014

I finally figured out that rwx needs Ruby 2.1.0 and installed it. (It would be great if README.rdoc included a list of requirements.) I've compiled and linked against wxWidgets 3.0, and I'm trying to run the examples. Here is the error I get

.../rwx/samples/controls]$ ruby controls.rb
04:37:05 PM: Debug: Failed to connect to session manager: SESSION_MANAGER environment variable not defined
controls.rb:127:in `orientation=': no implicit conversion of true into Integer (TypeError)
        from controls.rb:127:in `block (2 levels) in on_init'
        from controls.rb:126:in `initialize'
        from controls.rb:126:in `new'
        from controls.rb:126:in `block in on_init'
        from controls.rb:25:in `tap'
        from controls.rb:25:in `on_init'
        from controls.rb:139:in `main_loop'
        from controls.rb:139:in `<main>'

I changed line 127 to

        box.orientation = 1

then the demo works fine for me.

@rhinton
Copy link
Author

rhinton commented Feb 4, 2014

I had to make the same change to dialog_sample.rb:190. (I don't use XRC, so I haven't run the other sample.)

@Hanmac Hanmac closed this as completed in b50c2ff Feb 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant