Skip to Content
When I wrote my first Tasting the mix of Ruby and SAP I was happy with the application, but totally sad about the layout…Having a blackboard like screen is not “pretty”.

That’s why I started to look for some libraries to make my Ruby development a little bit more “shiny”…Lucky me…I found WxRuby (Which stands for Widgets for Ruby).

WxRuby lets you create fancy GUI applications with the ease and power of Ruby.

The bad thing…It’s documentation makes me cry…Actually I learn how to use it yesterday in about 7 hours…And I learn it by developing my brand new SE16 Emulator.

image
This is the Login page, I’m using MiniSap so I don’t care if you see what my password is -:) and actually…I don’t think you can hide your password, which is bad of course…Maybe a little research could help me on this…

image
This is the result, a nice table with all the information organized and clear.

Finally, we can have a look at the source code.

WxRuby_SE16.rb

Now, show me what you can do with this brand new toy -:)

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. Anonymous
    The more I look at desktop GUI toolkits for ruby, more I seem to like Python. 🙂 WxPython, in comparison to WxRuby, is documented better. But I still find myself referring back to the C API documentation. But there is no doubt that Ruby is a much more appealing language than Python. I has a slightly steeper learning curve than that of python.

    I am sure that the UI library bindings would definitely mature. But then, the web is such a promising platform now. It is easier to write a web application than a desktop application, at least for business applications.

    (0) 
    1. Alvaro Tejada Galindo Post author
      Hi Vagmi:

      I’m not into Python right now…But planning to do it -;) So of course I’m going to use WxPython some day -:P
      Also, I’m learning Rails…So soon your going to see some of my new blogs -;)

      Thanx to frameworks, web programming is easier and more powerful…But I still like desktop app’s -:)

      Greetings,

      Blag.

      (0) 
    2. Valery Silaev
      I’ve noticed one thing: when someone shows samples of Domain Model in Ruby, then Ruby simply shines; but when it comes to UI creation all languages looks the same, be it either Ruby, or Python, or Java…

      Though, I don’t know Ruby very well, probably it’s possible to create some DSL in Ruby to make this code more “declarative” (like XUL) rather then “imperative”…

      VS

      (0) 
      1. Alvaro Tejada Galindo Post author
        Hi Valery:

        You’re right -:) UI creation looks the same…But I think that makes it easier to learn (Meaning that you can port easier from Ruby to Python or Python to Perl).

        I wasn’t aware of XUL…Thanx for that -:)

        Greetings,

        Blag.

        (0) 
        1. Valery Silaev
          Alcaro,

          What I actually mean is that there are numerous XML/HTML “builders” for Ruby, so creation of XML looks like just sole declaration. It’s very readable form while you see XML markup through lines of Ruby code 🙂

          Just wondering are there same kind of libraries for UI constructions? They should be… :))

          VS

          (0) 
            1. Alvaro Tejada Galindo Post author
              Don’t worry -:) It’s Ok…Typo mistakes happens very often…So it’s not really a problem -;)

              And thanx for taking the time for post your comments -;)

              Greetings,

              Blag.

              (0) 
          1. Alvaro Tejada Galindo Post author
            Now I get it -:P That’s one of the drawbacks of not being so good at English -:)

            Not sure about the libraries…I’m not very proficient in Ruby myself -;)

            Greetings,

            Blag.

            (0) 

Leave a Reply