Mmm ok... i will try... but i must compile Qt4.3 for that, since I use Kubuntu i all my desktops... :S<br>Anyway, thanks!! Phil.<br>I will ask in Qt forum as well, just in case.<br><br>Cheers.<br><br><div class="gmail_quote">
2008/6/21 Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Sat, 21 Jun 2008 10:42:20 -0300, "Gustavo A. Díaz"<br>
<<a href="mailto:gustavo.diaz@gmail.com">gustavo.diaz@gmail.com</a>> wrote:<br>
> Hi guys.<br>
><br>
> Since Qt4.4 (i dont know if is cause of Qt or PyQt latest version) i have<br>
> proeblems with this.<br>
> I have a code in my app that embeds a xterm console inside a frame, that<br>
> was<br>
> working perfect always... but since Qt4.4 doesn't anymore.<br>
><br>
> My code:<br>
><br>
> class toolsConsole(QtCore.QObject):<br>
> def __init__(self, gui):<br>
> QtCore.QObject.__init__(self)<br>
><br>
> self.gui = gui<br>
><br>
> # Creamos un contenedor para poder embeber la consola dentro de<br>
un<br>
> frame<br>
> self.container = QX11EmbedContainer(self.gui.consoleFrame)<br>
> self.container.setGeometry(4, 4, 600, 425)<br>
><br>
> # Comenzamos a definir la ventana para poder obtener el wid<br>
> (window<br>
> ID) y colocarlo en el "container"<br>
> wid = self.container.winId()<br>
><br>
> # Asigamos los parámetros de la aplicación y a su vez,<br>
obtenemos<br>
> el<br>
> número de WID.<br>
> self.parametersList = ["-into", repr(wid), "-bg", "black", "-fg",<br>
> "white"]<br>
><br>
> # Definimos la clase para ejecutar el proceso, o sea, la<br>
> aplicación<br>
> de la consola xterm<br>
> self.process = QtCore.QProcess()<br>
><br>
> # Especificamos que el path por defecto, sea el HOME de cada<br>
> usuario.<br>
> self.initDirectory = QString(QDir.homePath())<br>
> self.process.setWorkingDirectory(self.initDirectory)<br>
><br>
> # Ejecutamos el proceso de xterm<br>
> self.process.start("xterm", self.parametersList)<br>
><br>
><br>
> Indeed the process executes, the xterm is executing and with the winId<br>
> number and the parameters i've passed.<br>
><br>
> Any tip?<br>
<br>
</div></div>Try it with the version of Qt that worked before but with the current PyQt<br>
snapshot. If it works then it's a Qt problem. If it doesn't then it's<br>
probably a PyQt problem.<br>
<font color="#888888"><br>
Phil<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a>