![]() Registered Member ![]()
|
Hi, I embed a konsolepart in my Python app like this:
(mainwin is my KMainWindow)
This shows a terminal window with just a cursor in the upper left corner. So far so good, but now I want Konsole to open a shell in a directory. In KDE 4.1 and 4.2 this works:
But in KDE 4.3 this has stopped working (results in garbled layout and X Errors on the starting terminal). It seems other terminal embedding apps (like Kate) now use the TerminalInterface with the openShellInDir() method. But how can I use the TerminalInterface on a konsole part from inside PyKDE4? If this isn't possible I think the openUrl() method of the Konsole part needs fixing ![]()
Last edited by wbsoft on Tue Sep 22, 2009 12:40 pm, edited 1 time in total.
|
![]() Registered Member ![]()
|
Solved:
I found the problem: openUrl() on the konsole part does not work well if the widget has not yet been added to a parent widget. So I've got to be sure the part's widget() is added to a parent before calling openUrl(). |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]