Yes, I know what an eventloop is, but I have background stuff going on in addition to making widgets work. Calling Tkx::update() was one way to keep widgets working in my manual MainLoop, and Tkx::i::DoOneEvent was another way. DoOneEvent is way too slow; it seems like it does ONE event each time it's called, and with the background stuff, the GUI is quite unresponsive.

The main problem is that I am not starting the timer. Tkx or Tcl/Tk (since Tkx is supposed to be just a wrapper for this) is starting it when the dropdown opens, and fails to stop it if the dropdown is closed in a way other than by clicking the down arrow or clicking in the entry field directly beside the down arrow.

I guess my question is how to stop that timer automatically. Or how to determine the timer number associated with that dropdown so I can manually cancel it with Tkx::after_cancel().

Tkx::i::DoOneEvent( DONT_WAIT | ALL_EVENTS ); looks like it could do what I need, but unfortunately I have been unable to Google how to get it to recognize ( DONT_WAIT | ALL_EVENTS ), or what their Tkx equivalent is.


In reply to Re^2: Tkx combobox error on quit by Anonymous Monk
in thread Tkx combobox error on quit by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.