2010/1/31 M.B. <[email protected]> > 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.
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
