#38 lineedit widget -- unexpected behavior

v1.0 (example)
closed-rejected
nobody
5
2013-11-14
2010-04-16
composer
No

When starting a csd program that uses the lineedit widget, I am not always able to edit or change any text currently displayed. From time to time -- I'm not sure why -- perhaps when I move focus to another window and then return to the widget, I become able to type new text or select and replace displayed text. However, when my csd program reads the widget, it receives text that I have already deleted, and does NOT receive the text that I just typed. It seems that lineedit widget is streaming text to my csd, which makes it impossible to do what its name implies -- edit lines of text. Is this a bug or feature? If a feature, then what mechanism can I use to enter a string, possibly deleting and replacing some its contents, and then send what I see in the edit box to my csd program?

By they way the lineedit example csd was running while I switched to my browser to write this message, and as I was typing, it crashed!

Discussion

  • Andres Cabrera
    Andres Cabrera
    2013-11-14

    • status: open --> closed-rejected
    • Group: --> v1.0 (example)
     
  • Andres Cabrera
    Andres Cabrera
    2013-11-14

    If I understand it correctly, then it is a feature :)
    Lineedit widgets will only send their text when the text is "approved" either by leaving the widget or when pressing enter.
    If you want to keep track of characters, then you might want to look into the sensekey opcode, maybe in combination with a display.