GUI Issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • diffuser78@gmail.com

    #1

    GUI Issues

    Hi,

    I want to create a GUI where a user can select drag and drop kind of
    boxes, circles and make connections between them. This is NOT for
    drawing picture like MS paint but I want to model state and transitions
    between them.

    This is basically for depicting states and dependencies. I am writing a
    program where I let the user input states and dependencies in a certain
    domain. Based on input given by user in the GUI (by letting him drag
    and drop), I grab it and run my algorithm to generate the output.

    I am wondering if there is any library like that in C++/Python , or if
    anybody of you has done something similar in past, could you post some
    pointers.

    Every help is greatly appreciate,

    many thanks

  • Victor Bazarov

    #2
    Re: GUI Issues

    diffuser78@gmai l.com wrote:[color=blue]
    > I want to create a GUI [...]
    >
    > I am wondering if there is any library like that in C++/Python , or if
    > anybody of you has done something similar in past, could you post some
    > pointers.[/color]

    Qt is your friend: www.trolltech.com

    Also, look for 'Available C++ Libraries FAQ' post appearing here every
    month or so, posted by Nikki Locke.

    Next time please ask about GUI in a newsgroup for your platform since
    most of GUI stuff is platform-specific. Even though there are libraries
    like Qt that are ported to more than one platform, GUI is still not a C++
    language feature and as such is basically OT here.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask


    Comment

    • Phlip

      #3
      Re: GUI Issues

      diffuser78 wrote:
      [color=blue]
      > I want to create a GUI where a user can select drag and drop kind of
      > boxes, circles and make connections between them. This is NOT for
      > drawing picture like MS paint but I want to model state and transitions
      > between them.[/color]

      That's exactly what the sample I pointed you to works. Did you try them?
      [color=blue]
      > I am wondering if there is any library like that in C++/Python[/color]

      You can do the exact same thing in Python with Tkinter. The point of the
      exercise is a smart canvas that treats graphical primitives as objects, and
      a geometry system like GraphViz that lays out nodes and edges properly.

      --
      Phlip
      http://www.greencheese.org/ZeekLand <-- NOT a blog!!!


      Comment

      Working...