Example: a ticket automaton
When a ticket is selected (button press), the user has to insert coins (button press). If no coins are inserted within a certain time, the ticket selection is aborted.
Thus, I need a timeout that starts each time a button is pressed.
I'm struggling with the GtkAda RM and UG - no help. Also testgtk is no real help.
2. A timer queued to the GTK loop.
For the option #2 see GLib.Main, the function Timeout_Add and generic
package Generic_Sources queue a timer. When timer triggers you do your
stuff and then remove the timer.
Dmitry A. Kazakov schrieb am Donnerstag, 16. September 2021 um 15:05:36 UTC+2:
2. A timer queued to the GTK loop.
For the option #2 see GLib.Main, the function Timeout_Add and generic
package Generic_Sources queue a timer. When timer triggers you do your
stuff and then remove the timer.
It's this second option I'm trying. Doing slight progress...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 354 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:50:01 |
Calls: | 7,650 |
Calls today: | 2 |
Files: | 12,811 |
Messages: | 5,699,700 |