[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] qApp issues
From:       "Hihn, Jason" <Jason.Hihn () verint ! com>
Date:       2004-11-30 17:08:44
Message-ID: BE7EC6C7A6F0E74AAB1E7E36BF5E9EB72E86C9 () colms1 ! co ! corp ! verintsys
[Download RAW message or body]

--===============0904576367==
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C4D6FF.3F688C3E"

This is a multi-part message in MIME format.


I have python embedded in my app, and I wish to use my application's
window as the parent for some dialogs created (and coded) in python
land. Is there a way to get the main widget in C++ to be the parent of
Python?



I need my python dialogs to:

1) Be modal w.r.t my app window,

2) Not show up in the task bar.



I think setting the parent to my C++ window will fix these. Also if I
can work around it, and disable the task bar entry and make the dialog
always-on-top, that should work too, but won't be as elegant.



As of right now, the from qt import * line makes a qApp of its own, in
addition to my C++ qApp.



Thanks!





__________________________________________________________________________________________
 This electronic message may contain proprietary and confidential information of \
Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended \
to be for the use of the individual(s) or entity(ies) named above.  If you are not \
the intended recipient (or authorized to receive this e-mail for the intended \
recipient), you may not use, copy, disclose or distribute to anyone this message or \
any information contained in this message.  If you have received this electronic \
message in error, please notify us by replying to this e-mail. (1)


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have python embedded in my app, and I wish to use my
application&#8217;s window as the parent for some dialogs created (and coded)
in python land. Is there a way to get the main widget in C++ to be the parent
of Python?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I need my python dialogs to:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>1) Be modal w.r.t my app window,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>2) Not show up in the task bar.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I think setting the parent to my C++ window will fix these.
Also if I can work around it, and disable the task bar entry and make the
dialog always-on-top, that should work too, but won&#8217;t be as \
elegant.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>As of right now, the from qt import * line makes a qApp of
its own, in addition to my C++ qApp.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

<table><tr><td bgcolor=#ffffff><font \
color=#000000>__________________________________________________________________________________________<br>
 This electronic message may contain proprietary and confidential information of \
Verint Systems Inc., its affiliates and/or subsidiaries.<br> The information is \
intended to be for the use of the individual(s) or<br> entity(ies) named above.  If \
you are not the intended recipient (or authorized to receive this e-mail for the \
intended recipient), you may not use, copy, disclose or distribute to anyone this \
message or any information contained in this message.  If you have received this \
electronic message in error, please notify us by replying to this e-mail. (1)<br> \
</font></td></tr></table>



_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

--===============0904576367==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic