Re: closing thw window automatically
- From: Robert Caryl <bob fis-cal com>
- To: SaiKamesh Rathinasabapathy <rsaikamesh gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: closing thw window automatically
- Date: Fri, 16 Feb 2007 07:13:00 -0600
SaiKamesh Rathinasabapathy wrote:
> 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!.
> ------------------------------------------------------------------------
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
Assuming that you are handling the I/O for the barcode scanner in a
separate thread from the GUI, I'd suggest using a Glib::Dispatcher to
deal with this situation.
Check out
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Dispatcher.html
Hope this helps.
Bob Caryl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]