<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Agreed... But we are supporting a large body of code that already has
many "import qt" and "from qt import *" statements throughout the
code... Having a more standardized way of handling this (rather than
providing a 'qt.py' file for every project that uses pyqt) would be
much preferrable... <br>
<br>
BTW. I DO like the new namespaces in Qt4.. It makes things much nicer
for programming and using pyqt. However, they also are providing
backwards compatibility header files in most cases..<br>
<br>
On a side note: I'm really pleased with the roadmap for Qtv4
support. This is really good news.<br>
<br>
Joe<br>
<br>
<br>
Truls A. Tangstad wrote:<br>
<blockquote type="cite"
cite="mid20050217161134.GA6185@sakura.chem.ntnu.no">
<pre wrap="">On Thu, Feb 17, 2005 at 08:05:49AM -0800, Longson, Joe wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">The separate Qt v4 libraries will be wrapped as separate Python modules.
The module names will be the same as the corresponding library (eg.
QtCore, QtGui) and be grouped as a single Python package called PyQt4. The
suggested programming style for new applications would then be:
import sys
</pre>
</blockquote>
<pre wrap="">>from PyQt4 import QtGui
</pre>
<blockquote type="cite">
<pre wrap="">app = QtGui.QApplication(sys.argv)
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">Would we be required to use the from PyQt4 import QtGui?
The existing namespace allows us to do "import qt" Could a similar
facility be provided? (for maintaining more code compatibility)
e.g.
In qt.py --------------
from PyQt4 import *
from PyQt4.QtGui import *
</pre>
</blockquote>
<pre wrap=""><!---->
Wouldn't that be best left to individual programmers? If you need such
a namespace, just provide it as part of your application.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Joe Longson
Senior Software Engineer
(818) 460-8384 (work)
<a class="moz-txt-link-abbreviated" href="mailto:Joe.Longson@disney.com">Joe.Longson@disney.com</a>
*o* Walt Disney Feature Animation
</pre>
</body>
</html>