[PyKDE] Windows IME input

2005-06-10 Thread Petr Šimon
Hello, 
I am posting this again, not sure whether it got to the list.
I have an application running with no problems on linux. On windows, however, 
input fields (QTextInput, QLineInput) don't accept IME input (chinese). I can 
paste the characters, but direct input is disabled. What am I doing wrong?
I am using PyQtGPL10.exe from pythonqt.vanrietpaap.nl.
Thanks a lot
Petr

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Windows IME input

2005-06-10 Thread Gerard Vermeulen
On Thu, 9 Jun 2005 08:06:44 +0200
Petr Šimon [EMAIL PROTECTED] wrote:

 Hello, 
 I am posting this again, not sure whether it got to the list.
 I have an application running with no problems on linux. On windows, however, 
 input fields (QTextInput, QLineInput) don't accept IME input (chinese). I can 
 paste the characters, but direct input is disabled. What am I doing wrong?
 I am using PyQtGPL10.exe from pythonqt.vanrietpaap.nl.
 Thanks a lot
 Petr

Does it work in C++?
You have to keep in mind that this version of PyQt is based on a port of
a GLD'ed Qt-library to Windows and that not all bell and whistles may be
supported.

Gerard

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Windows IME input

2005-06-10 Thread Petr Šimon
On Friday 10 June 2005 08:23, Gerard Vermeulen wrote:
 On Thu, 9 Jun 2005 08:06:44 +0200

 Petr Šimon [EMAIL PROTECTED] wrote:
  Hello,
  I am posting this again, not sure whether it got to the list.
  I have an application running with no problems on linux. On windows,
  however, input fields (QTextInput, QLineInput) don't accept IME input
  (chinese). I can paste the characters, but direct input is disabled. What
  am I doing wrong? I am using PyQtGPL10.exe from pythonqt.vanrietpaap.nl.
  Thanks a lot
  Petr

 Does it work in C++?
 You have to keep in mind that this version of PyQt is based on a port of
 a GLD'ed Qt-library to Windows and that not all bell and whistles may be
 supported.

 Gerard

 ___
 PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
 http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Well, my command of c++ is too limited to try it out. Honestly I don't 
understand input servers (or IMEs) that well, so I assumed that paste and 
input goes via similar channels. Well I can wait for the Qt 4 that shouldn't 
be limited as I suppose. Thanks anyway. It is an university project for 
several users, but I still have time... so perhaps the new Qt version would 
solve it.
Petr

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Windows IME input

2005-06-10 Thread Petr Simon
On Friday 10 June 2005 08:23, Gerard Vermeulen wrote:
 On Thu, 9 Jun 2005 08:06:44 +0200

 Petr Šimon [EMAIL PROTECTED] wrote:
  Hello,
  I am posting this again, not sure whether it got to the list.
  I have an application running with no problems on linux. On windows,
  however, input fields (QTextInput, QLineInput) don't accept IME input
  (chinese). I can paste the characters, but direct input is disabled. What
  am I doing wrong? I am using PyQtGPL10.exe from pythonqt.vanrietpaap.nl.
  Thanks a lot
  Petr

 Does it work in C++?
 You have to keep in mind that this version of PyQt is based on a port of
 a GLD'ed Qt-library to Windows and that not all bell and whistles may be
 supported.

 Gerard

 ___
 PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
 http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Well, my command of c++ is too limited to try it out. Honestly I don't 
understand input servers (or IMEs) that well, so I assumed that paste and 
input goes via similar channels. Well I can wait for the Qt 4 that shouldn't 
be limited as I suppose. Thanks anyway. It is an university project for 
several users, but I still have time... so perhaps the new Qt version would 
solve it.
Petr

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] Error while reading coverage after unit tests on Eric3

2005-06-10 Thread Marco Bizzarri

Hi all.

I'm trying to get the coverage from a run of a ZopeTestCase. When I try 
to see the coverage, here is the result.


 File /usr/lib/python2.3/site-packages/eric3/Project/Project.py, line 
3229, in handleCodeCoverage

   self.codecoverage.start(fn, files)
 File /usr/lib/python2.3/site-packages/eric3/UI/PyCoverageDialog.py, 
line 144, in start

   _, statements, excluded, missing, readable  = cover.analysis2(file)
 File /usr/lib/python2.3/site-packages/eric3/Debugger/PyCoverage.py, 
line 601, in analysis2

   filename, statements, excluded = self.analyze_morf(morf)
 File /usr/lib/python2.3/site-packages/eric3/Debugger/PyCoverage.py, 
line 490, in analyze_morf

   lines, excluded_lines = self.find_executable_statements(
 File /usr/lib/python2.3/site-packages/eric3/Debugger/PyCoverage.py, 
line 545, in find_executable_statements

   tree = parser.suite(text+'\n\n').totuple(1)
 File string, line 4

Any suggestions?

Regards
Marco

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] Problems with using QWorkspace.windowList()

2005-06-10 Thread Phil Thompson
On Wednesday 08 June 2005 1:00 pm, Lars Kirkhus wrote:
 Hi, I'm currently trying to use the function windowList() in
 QWorkspace. This function is used for getting a list with the widgets
 that can be found in the workspace. However, when you remove widgets,
 the list is never updated. Closed widgets are still shown in the list
 returned by windowList().

 Attached to this mail is a small example that shows this behaviour. I
 wrote a similar example in C++ and there the function behaved as
 expected. I would be very grateful if someone could tell me what I'm
 doing wrong, or if this is a known problem.

 Versions used (running debian unstable):
 - Python 3.3.6
 - Qt 3.3.4
 - PyQt3.14.1

This is the behaviour (I think) I would expect. If you pass 
Qt.WDestructiveClose to the QWidget ctor then the QWidgets really get 
destroyed and the list gets shorter.

How similar was your C++ version?

Phil

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[PyKDE] PyQt and sip: WId is undefined

2005-06-10 Thread Jeremy C. Reed
I am trying to build PyQt-x11-gpl-3.14.1 on Darwin 7.9.0/Mac OS X.

configure.py fails with:

SIP 4.2.1 is being used.
Checking to see if the QAssistantClient class is available...
Creating features file...
Checking to see if the QCDEStyle class is built in...
Checking to see if the QInterlaceStyle class is built in...
Checking to see if the QMotifStyle class is built in...
Checking to see if the QMotifPlusStyle class is built in...
Checking to see if the QPlatinumStyle class is built in...
Checking to see if the QSGIStyle class is built in...
Checking to see if the QWindowsXPStyle class is built in...
Checking to see if the QWindowsStyle class is built in...
These PyQt modules will be built: qt.
Support for these Qt classes has been disabled: QInterlaceStyle
QWindowsXPStyle.
The PyQt modules will be installed in
/usr/pkg/lib/python2.4/site-packages.
The PyQt .sip files will be installed in /usr/pkg/share/sip2.4.
pyuic will be installed in /usr/pkg/bin.
pylupdate will be installed in /usr/pkg/bin.
Generating the C++ source for the qt module...
sip: WId is undefined
Error: Unable to create the C++ code

I found some postings from a year ago about sip: WId is undefined
but didn't seem to be related now.

How can I track down what file needs to have this defined?

I tried -w switch for configure but then got information like:

Checking to see if the QCDEStyle class is built in...
Checking to see if the QInterlaceStyle class is built in...
cfgtest.cpp: In function `int main(int, char**)':
cfgtest.cpp:5: error: parse error before `(' token
Checking to see if the QMotifStyle class is built in...
Checking to see if the QMotifPlusStyle class is built in...
Checking to see if the QPlatinumStyle class is built in...
Checking to see if the QSGIStyle class is built in...
Checking to see if the QWindowsXPStyle class is built in...
cfgtest.cpp:1:29: qwindowsxpstyle.h: No such file or directory
cfgtest.cpp: In function `int main(int, char**)':
cfgtest.cpp:5: error: parse error before `(' token
Checking to see if the QWindowsStyle class is built in...
These PyQt modules will be built: qt.
Support for these Qt classes has been disabled: QInterlaceStyle
QWindowsXPStyle.
The PyQt modules will be installed in
/usr/pkg/lib/python2.4/site-packages.
The PyQt .sip files will be installed in /usr/pkg/share/sip2.4.
pyuic will be installed in /usr/pkg/bin.
pylupdate will be installed in /usr/pkg/bin.
Generating the C++ source for the qt module...
sip: WId is undefined
Error: Unable to create the C++ code.

Maybe the above is related?

Any suggestions would be appreciated.

 Jeremy C. Reed

 BSD News, BSD tutorials, BSD links
 http://www.bsdnewsletter.com/


___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


Re: [PyKDE] PyQt and sip: WId is undefined

2005-06-10 Thread Phil Thompson
On Friday 10 June 2005 10:21 pm, Jeremy C. Reed wrote:
 I am trying to build PyQt-x11-gpl-3.14.1 on Darwin 7.9.0/Mac OS X.

You need PyQt-mac-gpl-3.14.1. X11 on Mac is not supported.

Phil

___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde