[pygtk] gtk.Window [ popup from TextView ]
middleofdreams at gmail.com
middleofdreams at gmail.com
Wed Feb 3 06:09:22 WST 2010
2010/1/31 M.B. <spooky.ln at tbs-software.com>
> hi all,
> please help me with little problem [ the big one for me right now :(]
> i write little app [ texteditor , who not :) ]
>
> from textview i call window popup with help. [pressing 'a' in test
> prog ] and i have 2 questions.
>
> 1.) how i disable automatic Tab inserted after pasting text from popup ?
> use another key is solution but i want Tab as completer.
>
> 2.) it seems to same prob as in 1.) but how i disable moving cursor in
> textbuffer when popup window is active and i changing rows in
> treeview ? when i change type on WINDOW_TOPLEVEL my treeview has
> focus and i cannot write into buffer.
>
> Ad1 - I don't know if is right solution but you have create simple function
on signal "text-inserted"- if text is tab - buffer.backspace(). I'm doing
something like that with enter key.
Ad2. I'm not sure here either but you can set sensitive to 0 when popup
comes, and set to 1 when you close it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100202/b98f26d3/attachment.htm
More information about the pygtk
mailing list