Closing a Gtk::Window automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsaikamesh
    New Member
    • Oct 2006
    • 20

    Closing a Gtk::Window automatically

    Hi,
    I am using gtkmm 2.4 to create UI in my c++ application.My operating system is linux(ubuntu).I have barcode scanner which is connected to the serial port(/dev/ttyS0).

    What I have to do in my application is, I should display a window at first, which contains a Label "Read the Barcode using the scanner" on it. Then I have to read the barcode using the scanner. After reading it, the window should automatically be closed then a new window have to be opened. I don't know how to close the first window automatically after reading the barcode. please help me!.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by rsaikamesh
    Hi,
    I am using gtkmm 2.4 to create UI in my c++ application.My operating system is linux(ubuntu).I have barcode scanner which is connected to the serial port(/dev/ttyS0).

    What I have to do in my application is, I should display a window at first, which contains a Label "Read the Barcode using the scanner" on it. Then I have to read the barcode using the scanner. After reading it, the window should automatically be closed then a new window have to be opened. I don't know how to close the first window automatically after reading the barcode. please help me!.
    Are you using terminal windows to display the messages?

    Comment

    • rsaikamesh
      New Member
      • Oct 2006
      • 20

      #3
      Originally posted by sicarie
      Are you using terminal windows to display the messages?
      yes . Im using terminal windows.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by rsaikamesh
        yes . Im using terminal windows.
        Do you need to close the windows, or can you clear it? (In Linux you can run the "clear" command, I believe that combined with the 'system()' command from C will remove anything showing in that window. Unless you are to explicitly close the window.)

        Comment

        Working...