Shop OBEX P1 Docs P2 Docs Learn Events
GUIs?????? — Parallax Forums

GUIs??????

ValeTValeT Posts: 308
edited 2014-07-26 16:49 in General Discussion
Hello,

I was wondering if GUIs could be implemented in the BASIC editor and SimpleIDE. I would like to see if something like the GUIs in Java could be implemented. Does anyone know if this is already supported or is currently in development?

@jazzed, the GUI windows would be used to display information in a better fashion. For example, if I wanted to get input from a user, to decide which LEDs to turn on in a Christmas light display, it would be easier if I could get input through a text field in a separate window compared to getting input through the terminal. Does that clear things up a little bit?

Thanks for the help

Comments

  • Heater.Heater. Posts: 21,230
    edited 2014-07-26 16:08
    ValeT,

    Perfectly possible.

    SimpleIDE is written in C++ and uses the Qt GUI toolkit.

    One could extend SimpleIDE with whatever GUI interface you would like. Qt makes it quite easy to include all the usual widgets, edit boxes, check boxes, sliders, lots off stuff.

    Of course rather than add all that to SimpleIDE it would be better to create your own GUI app. Qt is nice because the resulting code can be compiled for Windows, Mac, Linux and other platforms. There is a nice IDE for Qt called Qtcreator. Qt is very well documented.

    You can get the Qt libraries and tools from here: http://qt-project.org/downloads and there is a ton of documentation on that site.

    We look forward to seeing what you come up with.
  • ValeTValeT Posts: 308
    edited 2014-07-26 16:40
    Thanks Heater! That makes life easy.

    But does the BASIC editor support GUIs? My brother is taking over my school's robotics club, and would like to do a project that is simple - in PBasic - that uses GUIs.

    Sorry if this is a stupid question, but what do you mean by a GUI app?
  • Heater.Heater. Posts: 21,230
    edited 2014-07-26 16:45
    Never used BASIC on the Prop.

    Whatever language you use if your GUI is running on the PC it will need to be in communication with your Propeller. Over that USB-serial programming cable for example.

    You will need to create cone in the GUI and in the Propeller to maintain that communication using whatever protocol you care for.
  • ValeTValeT Posts: 308
    edited 2014-07-26 16:49
    Sorry for the confusion, but I will be using the Basic Stamp when I will be communicating with the BASIC editor.
Sign In or Register to comment.