Re: [PyQt] PyQt workshop and your opinion

2013-10-11 Thread Detlev Offenbach
How about starting with an IDE that was written using PyQt. I mean eric5 of 
course ;-)

Detlev

On Thursday 10 October 2013, 23:09:52 Mohsen Pahlevanzadeh wrote:
> Dear all,
> 
> I should pesent PyQt as workshop at next month, if you have any idea,
> mail me
> 
> Yours,
> Mohsen
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.7 released

2013-09-28 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.7. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.3 Released

2013-08-21 Thread Detlev Offenbach
Will we see a new QScintilla release in the next days as well?

On Wednesday 21 August 2013, 18:39:21 Phil Thompson wrote:
> On Wed, 21 Aug 2013 19:09:47 +0200, Detlev Offenbach
> 
>  wrote:
> > Hello Phil,
> > 
> > is the latest QScintilla snapshot compatible with these releases of
> 
> PyQt4
> 
> > and sip?
> 
> Yes.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.3 Released

2013-08-21 Thread Detlev Offenbach
Hello Phil,

is the latest QScintilla snapshot compatible with these releases of PyQt4 
and sip?

Detlev

On Wednesday 21 August 2013, 17:50:25 Phil Thompson wrote:
> PyQt v4.10.3 has been released.  This is a minor bug fix release.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.6 released

2013-08-19 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.6. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue compiling latest PyQt5 snapshot on Linux

2013-07-30 Thread Detlev Offenbach
Hello,

compiling latest PyQt5 snapshot on Linux fails because 
file  qpyqmlsingletonobject.h contains an include 
statement for QQMlEngine. However, that should read 
QQmlEngine, i.e. lowercase M.

Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue compiling latest PyQt4 snapshot with Qt-5.1

2013-07-28 Thread Detlev Offenbach
Hello,

trying to compile latest PyQt4 snapshot results in an error (s. below). What 
am I doing wrong?

user@host:~/src/Python/PyQt/PyQt4/PyQt-x11-gpl-4.10.3-
snapshot-3ea3fe511f2b> ~/py3qt50env/bin/python configure.py -b 
~/py3qt50env/bin/ -v ~/py3qt50env/sip -c -j8
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.10.3-snapshot-3ea3fe511f2b (licensed 
under
the GNU General Public License) for Python 3.3.0 on linux.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the QAxContainer module should be built...
Checking to see if the dbus support module should be built...
The Python dbus module doesn't seem to be installed.
Qt v5.1.0 free edition is being used.
SIP 4.15-snapshot-7bebd55f50b2 is being used.
The Qt header files are in /usr/local/Qt-5.1.0/include.
The shared Qt libraries are in /usr/local/Qt-5.1.0/lib.
The Qt binaries are in /usr/local/Qt-5.1.0/bin.
The Qt mkspecs directory is in /usr/local/Qt-5.1.0.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDBus, QtDeclarative, QtScript, QtScriptTools, QtXml, 
QtOpenGL,
QtSql, QtSvg, QtTest, QtWebKit, QtXmlPatterns, QtDesigner.
The PyQt Python package will be installed in 
~/py3qt50env/lib64/python3.3/site-packages.
PyQt is being built with deprecated Qt v4 features.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/local/Qt-5.1.0/plugins/designer.
The QScintilla API file will be installed in
/usr/local/Qt-5.1.0/qsci/api/python.
The PyQt .sip files will be installed in ~/py3qt50env/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in ~/py3qt50env/bin.
Embedding sip flags...
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
sip: QX11Info is undefined
Error: Unable to create the C++ code.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.5 released

2013-07-07 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.5. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue with PyQt4/5 and Qt 5.1

2013-07-06 Thread Detlev Offenbach
Hello,

today I compiled the Qt 5.1 and built the latest stable releases of PyQt4 
and PyQt5 against it. Now I am not able to start any QProcess. I executed 
the QProcess test program as contained in 
'qtbase/tests/auto/corelib/io/qprocess'. This shows a complete success. 
However, if I execute the demo 'PyQt-gpl-5.0/examples/qtdemo', it doesn't 
work (starting assistant or any of the examples fail). What did I do wrong?

The behavior is identical with PyQt4 and PyQt5.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] eric5 packages for Debian

2013-06-25 Thread Detlev Offenbach
Hello,

is anybody out there interested to create an eric5 
package for Debian (and derived) distro?

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Kled module

2013-06-25 Thread Detlev Offenbach
Hello,

you may download the eri sources and use the LED I implemented in pure 
Python.

Detlev

On Tuesday 25 June 2013, 09:20:15 Phil wrote:
> Thank you for reading this.
> 
> I'd like to include a led in my project which I've done in the past with
> Qt creator and Designer under C++. Adding the following to my Python
> project fails because there is no module named Kled.
> 
> self.kled = KLed(self.centralwidget)
> 
> Is it possible to add a Kled to a PyQt project?-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt5 installation

2013-06-24 Thread Detlev Offenbach
Hello,

I just installed PyQt5 from source on openSUSE and 
noticed, that the pyuic5 executable (script) didn't get 
installed with executable rights. Did I do anything wrong?

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QRegularExpression missing from PyQt4

2013-06-23 Thread Detlev Offenbach
Hello,

I think, that the new Qt5 regular expression class 
QRegularExpression and it's companions are missing from 
PyQt4 (at least dir(PyQt4.QtCore) didn't show them). Can 
these be added?

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Strange observation

2013-06-21 Thread Detlev Offenbach
Hello,

there was a strange observation reported using eric5. The eric5 PySvn 
plug-in has a dialog to ask the user for a password. This is embedded in 
code like this

cursor = QApplication.overrideCursor()
if cursor is not None:
QApplication.restoreOverrideCursor()

if cursor is not None:
QApplication.setOverrideCursor(cursor)

Every now and than this code fails with
: 
wrapped C/C++ object of type QCursor has been deleted

What is wrong with my code?

Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.4 released

2013-06-09 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.4. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Installing Eric Python IDE got stuck at PyQt-win-gpl-4.10

2013-05-02 Thread Detlev Offenbach
Hello,

that message simply means, that your PyQt4 installation is not complete. It 
is missing uic module. Nothing I can do about.

Detlev

On Thursday 02 May 2013, 05:50:37 al wrote:




Now I got time to check your info ...


but after getting the source code from repo I get following error:




G:\Download\Programmieren\eric5_rep>python compileuifiles.py




If you need the fix urgently just get the source code from the source repo 
and install from sources. Instruction on how to get the source code is 
contained on the code page of the eric web site.
 
Detlev

On Saturday 27 April 2013, 12:57:33 al wrote:


Hi Detlev,


when is the next release planned?


Can you maybe mail me the missing file and a short instruction where to 
put it so I will be able to start ERIC 5?


Thank you for your support so far




*Detlev Offenbach*
det...@die-offenbachs.de




*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 on Android?

2013-05-01 Thread Detlev Offenbach
Hello,

will the PyQt5 structure be the same as PyQt4 in the areas where we have 
an overlap? If that would be the case porting an application from PyQt4 to 
PyQt5 would simply be a matter of replacing PyQt4 with PyQt5.

Detlev

On Wednesday 01 May 2013, 11:13:41 Phil Thompson wrote:
> On Wed, 01 May 2013 11:35:19 +0200, Detlev Offenbach
> 
>  wrote:
> > Hello,
> > 
> > is there a way to run PyQt4 application on Android phones
> > or tablets? I had the crazy idea to see eric5 work on an
> > Android tablet (the Nexus 10 seems to be a reasonable
> > candidate).
> 
> I don't plan to support PyQt4 on Android - but I'll accept patches from
> anybody who does a port.
> 
> PyQt5 will be supported on Android (and iOS) once Digia add support for
> these. One of the reasons for the new build system is to support
> cross-compilation to these devices.
> 
> The first PyQt5 snapshots should be available in the next few days.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 on Android?

2013-05-01 Thread Detlev Offenbach
Hello,

is there a way to run PyQt4 application on Android phones 
or tablets? I had the crazy idea to see eric5 work on an 
Android tablet (the Nexus 10 seems to be a reasonable 
candidate).

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Installing Eric Python IDE got stuck at PyQt-win-gpl-4.10

2013-04-28 Thread Detlev Offenbach
If you need the fix urgently just get the source code from the source repo 
and install from sources. Instruction on how to get the source code is 
contained on the code page of the eric web site.

Detlev

On Saturday 27 April 2013, 12:57:33 al wrote:


Hi Detlev,


when is the next release planned?


Can you maybe mail me the missing file and a short instruction where to 
put it so I will be able to start ERIC 5?


Thank you for your support so far




*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Installing Eric Python IDE got stuck at PyQt-win-gpl-4.10

2013-04-27 Thread Detlev Offenbach
Well, that will be fixed in the next release. Unfortunately Phil removed that 
file from the installer.

Detlev

On Saturday 27 April 2013, 08:44:58 al wrote:


At the end I got much further:






G:\Download\Programmieren\eric5-5.3.2\eric5-5.3.2>python install.py
Checking dependencies
Python Version: 3.3.1
Found PyQt4
Found QtHelp
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtSql
Found QtSvg
Found QtWebKit
Qt Version: 4.8.4
PyQt Version:  4.10.1
QScintilla Version:  2.7.1
All dependencies ok.


Compiling user interface files...


Compiling source files...


Installing eric5 ...


Installation complete.


Press enter to continue...






But starting ERIC5 says


G:\Download\Programmieren\eric5-5.3.2\eric5-5.3.2\eric>python eric5.py
An unhandled exception occurred. Please report the problem
using the error reporting dialog or via email to .
A log has been written to "C:\Users\comtronic2013\_eric5\eric5_error.log".


Error information:



2013-04-27, 17:36:41



:
cannot import name pyqtconfig



  File "eric5.py", line 274, in 
main()
  File "eric5.py", line 194, in main
Startup.setLibraryPaths()
  File "G:
\Download\Programmieren\eric5-5.3.2\eric5-5.3.2\eric\Toolbox\Startup.p
y", line 134, in setLibraryPaths
from PyQt4 import pyqtconfig





Version Numbers:
  Python 3.3.1
  Qt 4.8.4
  PyQt4 4.10.1
  sip 4.14.5
  QScintilla 2.7.1
  WebKit 534.34
  eric5 5.3.2 (rev c8a6412d098a)


Platform: win32
3.3.1 (v3.3.1:d9893d13c628, Apr  6 2013, 20:25:12) [MSC v.1600 32 bit 
(Intel)]




I do not give up yet  ;-)


Any help warmly appreciated ...





Could it be the case, that you have a mix of architectures installed, i.e. 
Python 32-bit and PyQt4 64-bit? Please note, that eric5 support for Qt5 is 
still marked as experimental. If you want to get a stable configuration 
please use the PyQt4 installer containing Qt 4.8.4.
 
Detlev

On Saturday 27 April 2013, 06:22:11 al wrote:



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Installing Eric Python IDE got stuck at PyQt-win-gpl-4.10

2013-04-27 Thread Detlev Offenbach
Could it be the case, that you have a mix of architectures installed, i.e. 
Python 32-bit and PyQt4 64-bit? Please note, that eric5 support for Qt5 is 
still marked as experimental. If you want to get a stable configuration 
please use the PyQt4 installer containing Qt 4.8.4.

Detlev

On Saturday 27 April 2013, 06:22:11 al wrote:




I have downloaded PyQt4-4.10.1-gpl-Py3.3-Qt5.0.2-x64 which requests a 
phyton 3.3.x
So I installed Phyten 3.3.1 and PyQt4-4.10.1-gpl-Py3.3-Qt5.0.2-x64


Which leads to


G:\Download\Programmieren\eric5-5.3.2\eric5-5.3.2>python install.py
Checking dependencies
Python Version: 3.3.1
Found PyQt4
Sorry, please install QtHelp.
Error: DLL load failed: %1 ist keine zulässige Win32-Anwendung.
Press enter to continue...


So what do I have to do? Any explanation what do I have to take care of?





The easiest way on Windows is to use the PyQt4 windows installer. After 
that just run the eric install script.
 
Regards,
Detlev

On Saturday 27 April 2013, 04:23:30 al wrote:


Hello all,


I am struggling my way trough installing the ERIC Python IDE on Win8: and 
got stuck at PyQt-win-gpl-4.10 with following error message:


mingw32-make[1]: Entering directory 'G:/Download/Programmieren/PyQt-
win-gpl-4.10

/PyQt-win-gpl-4.10/QtCore'
makefile:30: warning: overriding recipe for target '.c.o'
makefile:27: warning: ignoring old recipe for target '.c.o'
Der Befehl "legacy" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
makefile:40: recipe for target 'install' failed
mingw32-make[1]: *** [install] Error 1
mingw32-make[1]: Leaving directory 'G:/Download/Programmieren/PyQt-
win-gpl-4.10/
PyQt-win-gpl-4.10/QtCore'
makefile:28: recipe for target 'install' failed
mingw32-make: *** [install] Error 2


I have been searching for hints how to resolve this problem but could not 
find anything.


Would be nice if someone could give me a info how I could proceed


--
python configure.py (python configure.py -p win32-g++)  -> both work


mingw32-make -> works fine
mingw32-make install -> throws the error posted above


*Detlev Offenbach*
det...@die-offenbachs.de






*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Installing Eric Python IDE got stuck at PyQt-win-gpl-4.10

2013-04-27 Thread Detlev Offenbach
The easiest way on Windows is to use the PyQt4 windows installer. After 
that just run the eric install script.

Regards,
Detlev

On Saturday 27 April 2013, 04:23:30 al wrote:


Hello all,


I am struggling my way trough installing the ERIC Python IDE on Win8: and 
got stuck at PyQt-win-gpl-4.10 with following error message:


mingw32-make[1]: Entering directory 'G:/Download/Programmieren/PyQt-
win-gpl-4.10

/PyQt-win-gpl-4.10/QtCore'
makefile:30: warning: overriding recipe for target '.c.o'
makefile:27: warning: ignoring old recipe for target '.c.o'
Der Befehl "legacy" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
makefile:40: recipe for target 'install' failed
mingw32-make[1]: *** [install] Error 1
mingw32-make[1]: Leaving directory 'G:/Download/Programmieren/PyQt-
win-gpl-4.10/
PyQt-win-gpl-4.10/QtCore'
makefile:28: recipe for target 'install' failed
mingw32-make: *** [install] Error 2


I have been searching for hints how to resolve this problem but could not 
find anything.


Would be nice if someone could give me a info how I could proceed


--
python configure.py (python configure.py -p win32-g++)  -> both work


mingw32-make -> works fine
mingw32-make install -> throws the error posted above


*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-25 Thread Detlev Offenbach
Hi Phil,

I didn't know that. Thanks for shedding some light on my head.

Detlev

On Thursday 25 April 2013, 18:28:15 Phil Thompson wrote:
> On Wed, 24 Apr 2013 18:10:10 +0200, Detlev Offenbach
> 
>  wrote:
> > On Tuesday 23 April 2013, 22:18:34 Phil Thompson wrote:
> >> On Tue, 23 Apr 2013 19:53:58 +0200, Detlev Offenbach
> >> 
> >>  wrote:
> >> > Hello Phil,
> >> > 
> >> > please disregard the first part of the message. Doing some more
> >> > investigations showed, that Windwos tricked me. Sorry for the noise.
> >> > 
> >> > Meanwhile I found a new issue. Calling e.g. qhelpgenerator as
> > 
> > delivered
> > 
> >> > with the lates PyQt4 with Qt5 installer gives this error message:
> >> 
> >> > Failed to load platform plugin "minimal". Available platforms are:
> >> windows.
> >> 
> >> > In deed, the platforms plugin directory only contains qwindows.dll.
> 
> How
> 
> >> > can
> >> > I overcome this issue?
> >> 
> >> You'd have to copy it in from the Qt installer.
> > 
> > I would expect it to be part of the PyQt4 installer. Why should I
> 
> install
> 
> > Qt
> > separately (and have the stuff twice)?
> 
> That's just the workaround until I update the installers.
> 
> >> > Yet another observation. Entering the following in a Python 3.3 shell
> >> > gives
> >> > a wrong output.
> >> > 
> >> >>>> from PyQt4.QtCore import QLibraryInfo
> >> >>>> QLibraryInfo.location(QLibraryInfo.BinariesPath)
> >> > 
> >> > 'C:/Qt/5.0.2/bin'
> >> > 
> >> > 
> >> > I would have expected something like "C:\Python33\Lib\site-
> >> > packages\PyQt4", because that is where the executable reside 
when
> >> > installed via the installer. How can I overcome this issue?
> >> 
> >> Sounds like a problem with qt.conf. 32 bit or 64 bit installer?
> > 
> > 32 bit installer.
> 
> The location information won't be correct unless you create a
> QCoreApplication instance first.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-24 Thread Detlev Offenbach


On Tuesday 23 April 2013, 22:18:34 Phil Thompson wrote:
> On Tue, 23 Apr 2013 19:53:58 +0200, Detlev Offenbach
> 
>  wrote:
> > Hello Phil,
> > 
> > please disregard the first part of the message. Doing some more
> > investigations showed, that Windwos tricked me. Sorry for the noise.
> > 
> > Meanwhile I found a new issue. Calling e.g. qhelpgenerator as 
delivered
> > with the lates PyQt4 with Qt5 installer gives this error message:
> 
> > Failed to load platform plugin "minimal". Available platforms are:
> windows.
> 
> > In deed, the platforms plugin directory only contains qwindows.dll. How
> > can
> > I overcome this issue?
> 
> You'd have to copy it in from the Qt installer.

I would expect it to be part of the PyQt4 installer. Why should I install Qt 
separately (and have the stuff twice)?

> 
> > Yet another observation. Entering the following in a Python 3.3 shell
> > gives
> > a wrong output.
> > 
> >>>> from PyQt4.QtCore import QLibraryInfo
> >>>> QLibraryInfo.location(QLibraryInfo.BinariesPath)
> > 
> > 'C:/Qt/5.0.2/bin'
> > 
> > 
> > I would have expected something like "C:\Python33\Lib\site-
> > packages\PyQt4", because that is where the executable reside when
> > installed via the installer. How can I overcome this issue?
> 
> Sounds like a problem with qt.conf. 32 bit or 64 bit installer?

32 bit installer.

Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-23 Thread Detlev Offenbach
Hello Phil,

please disregard the first part of the message. Doing some more 
investigations showed, that Windwos tricked me. Sorry for the noise.

Meanwhile I found a new issue. Calling e.g. qhelpgenerator as delivered 
with the lates PyQt4 with Qt5 installer gives this error message:

Failed to load platform plugin "minimal". Available platforms are: windows.

In deed, the platforms plugin directory only contains qwindows.dll. How can 
I overcome this issue?

Yet another observation. Entering the following in a Python 3.3 shell gives 
a wrong output.

>>> from PyQt4.QtCore import QLibraryInfo
>>> QLibraryInfo.location(QLibraryInfo.BinariesPath)
'C:/Qt/5.0.2/bin'
>>>

I would have expected something like "C:\Python33\Lib\site-
packages\PyQt4", because that is where the executable reside when 
installed via the installer. How can I overcome this issue?


Regards,
Detlev

On Monday 22 April 2013, 21:39:58 Phil Thompson wrote:
> On Mon, 22 Apr 2013 20:34:42 +0200, Detlev Offenbach
> 
>  wrote:
> > Hello,
> > 
> > I am observing a strange behavior when using the PyQt4, Python 3.3, 
Qt5
> > installer when starting eric5. There appears a dialog saying something
> > like
> > 'There is no medium in drive D:'. This message appears twice. 
Selecting
> > Cancel keeps eric going. It does not appear when using the installer for
> > 
> > Qt4. What is going on here?
> 
> Absolutely no idea. 64 bit or 32 bit?
> 
> > Some installers seem to be missing the QScintilla.api file.
> > 
> > Regards,
> > Detlev
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Detlev Offenbach
Hello,

I am observing a strange behavior when using the PyQt4, Python 3.3, Qt5 
installer when starting eric5. There appears a dialog saying something like 
'There is no medium in drive D:'. This message appears twice. Selecting 
Cancel keeps eric going. It does not appear when using the installer for 
Qt4. What is going on here?

Some installers seem to be missing the QScintilla.api file.

Regards,
Detlev

On Monday 22 April 2013, 11:43:59 Phil Thompson wrote:
> PyQt v4.10.1 has been released. This contains a couple of new features 
as
> well as the usual bug fixes.
> 
> QtCore.pyqtSetPickleProtocol() and QtCore.pyqtPickleProtocol() have 
been
> added to set and get the protocol used to pickle Python objects when
> serialising them for Qt.
> 
> Added the --resource-suffix option to pyuic4.
> 
> There is a new (optional) build system (configure-ng.py) which will be
> compatible with SIP v5 and will eventually support cross-compilation.
> 
> The Qt5 based Windows installers now include Qt v5.0.2.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] eric5 crash with PyQt4 windows installer for Qt5

2013-04-20 Thread Detlev Offenbach
Hello,

I am observing a crash with eric5 using Python 3.3 and the PyQt4 
installer with Qt5. Starting eric5 without opening a file, it crashes as 
soon as a tooltip is about to be shown by Qt5. Starting it with opening 
a file, it crashes as soon as the file is about to be shown in an editor. 
Everything works fine on Linux and Mac OS X. Using the installer 
including Qt 4.8.4 everything works as well. Unfortunately I have no 
clue about what is going on here. Any hint (or fix) is welcome.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.2 released

2013-04-06 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.2. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Question about the PyQt future (PyQt5)

2013-03-26 Thread Detlev Offenbach
Hello Phil,

thanks for the answers. Work is in progress to make eric5 and all it's plug-ins 
compatible with 
Python2. Once that is accomplished, support for eric4 would be dropped starting 
with the next 
stable eric5 release (whenever that will be after Py2 compatibility is 
reached). One future 
step in eric development could be to port it to PyQt5. Hence my interest in 
your plans. 
Meanwhile I got a few more questions.

1) Will PyQt5 and PyQt4 be API compaitble (i.e. exchangable) as long as only 
stuff that is 
covered by PyQt4 is used?
2) Will PyQt4 support Qt5 after the release of PyQt5 or will that be dropped?
3) What could be the benefit switch eric5 over to PyQt5?

Btw, did you realize, that it is now a bit over ten years you handed over the 
'broken' eric 
debugger to me and pulled me into the business? It was on 24.11.2002, when the 
first alpha 
release of eric3, the first eric IDE, was announced.

Regards,
Detlev

On Monday 25 March 2013, 18:58:11 Phil Thompson wrote:
> On Mon, 25 Mar 2013 09:23:07 +0100, Detlev Offenbach
> 
>  wrote:
> > Hello Phil,
> > 
> > I am aware, that there is no definitive plan for PyQt5 yet. However, I
> > would like to ask two questions. The answer to these could influence
> > the current plans and work for eric5.
> > 
> > Will PyQt5 be usable with Python2 and 3 or Python3 only?
> 
> I haven't decided yet. I may develop and test with Python3 only but treat
> reported problems with Python2 as bugs.
> 
> > For how long will PyQt4 and PyQt5 be maintained in parallel?
> 
> I have no plans to drop PyQt4 and I'm being very careful to make sure that
> maintaining it will not be a significant effort.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Question about the PyQt future (PyQt5)

2013-03-25 Thread Detlev Offenbach
Hello Phil,

I am aware, that there is no definitive plan for PyQt5 yet. However, I 
would like to ask two questions. The answer to these could influence 
the current plans and work for eric5.

Will PyQt5 be usable with Python2 and 3 or Python3 only?
For how long will PyQt4 and PyQt5 be maintained in parallel?

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Debian package for eric

2013-03-21 Thread Detlev Offenbach
Hallo,

is there any Debian maintainer out there? If so, I would like to 
ask, if a package for eric5 can be added?

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 installer on Win7

2013-03-18 Thread Detlev Offenbach
Hello,

I tried to use PyQt4 on Windows 7 using the Python 3.3 and Qt5 
installer. The installation worked ok. However, when I tried a 
'from PyQt4 import Qsci' I got an error saying, that the DLL 
cannot be found. The installer for Qt4 is ok and works fine.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 issue

2013-03-05 Thread Detlev Offenbach
Hello,

here is the extract.

Checking to see if the QtTest module should be built...
g++ -DQT_NO_DEBUG -DQT_TEST_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB -I. -
I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtTest -
I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE 
cfgtest_QtTest.cpp -o 
cfgtest_QtTest -L/usr/local/Qt-5.0.1/lib  -Wl,-O1 
-Wl,-rpath,/usr/local/Qt-5.0.1/lib -lQt5Test -
L/usr/local/Qt-5.0.1/lib -lQt5Core -lpthread -lpthread
Checking to see if the QtWebKit module should be built...
g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I. -
I/usr/local/Qt-5.0.1/mkspecs/linux-g++ -I/usr/local/Qt-5.0.1/include/QtWebKit -
I/usr/local/Qt-5.0.1/include/QtWebKitWidgets 
-I/usr/local/Qt-5.0.1/include/QtCore -
I/usr/local/Qt-5.0.1/include -m64 -pipe -O2 -w -D_REENTRANT -fPIE 
cfgtest_QtWebKit.cpp -
o cfgtest_QtWebKit -L/usr/local/Qt-5.0.1/lib  -Wl,-O1 
-Wl,-rpath,/usr/local/Qt-5.0.1/lib -
lQt5WebKit -L/usr/X11R6/lib64 -L/usr/local/Qt-5.0.1/lib -lQt5Network 
-L/usr/local/Qt-5.0.1/lib -
lQt5Core -lpthread -lpthread -lQt5Gui -L/usr/X11R6/lib64 
-L/usr/local/Qt-5.0.1/lib -lQt5Core -
lpthread -lpthread -lQt5Core -lpthread -lpthread -lQt5Core -lpthread -lpthread
/tmp/ccmtGOAm.o: In function `main':
cfgtest_QtWebKit.cpp:(.text.startup+0x19): undefined reference to 
`QWebPage::QWebPage(QObject*)'
collect2: error: ld returned 1 exit status

Regards,
Detlev

On Monday 04 March 2013, 18:52:45 Phil Thompson wrote:
> On Mon, 4 Mar 2013 19:50:41 +0100, Detlev Offenbach
> 
>  wrote:
> > Hi Phil,
> > 
> > I found the cause of my issue. Actually there are two.
> > 
> > 1. configure.py doesn't detect, that the wrapper for QtWebkit should be
> > built.
> > 2. That left an old wrapper for QtWebkit in my installation directory,
> > which caused the issue (a mix of compilations doesn't work).
> > 
> > So I think, fixing 1. will get rid of 2 automatically.
> > 
> > All this was done with Qt 5.0.1 on Linux (openSUSE 12.2) and Mac OS X
> > Mountain Lion.
> 
> Can you run configure.py with --verbose so that you can see why it doesn't
> think QtWebKit is available?
> 
> Phil-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 issue

2013-03-03 Thread Detlev Offenbach
Hello,

I am observing a strange issue with latest PyQt4 and Qt 5.0.1. The later was 
compiled by 
myself. Setting the URL of a QWebView with QWebView.setUrl() results in a seg 
fault or 
other errors. Executing these steps in a Python3 shell result in a strange 
error.

>>> from PyQt4.QtCore import QUrl
>>> from PyQt4.QtGui import QApplication
>>> from PyQt4.QtWebKit import QWebView
>>> import sys
>>> app=QApplication(sys.argv)
Qt at-spi: error getting the accessibility dbus address:  "The name 
org.a11y.Bus was not 
provided by any .service files" 
Accessibility DBus not found. Falling back to session bus.
>>> v=QWebView()
>>> v.setUrl(QUrl("about:blank"))
Traceback (most recent call last):
  File "", line 1, in 
TypeError: QWebView.setUrl(QUrl): argument 1 has unexpected type 'QUrl'

However, according to the Qt5 docs, this method has QUrl as the first 
parameter. It worked 
before upgrading PyQt4 and it works with Qt4.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.1 released

2013-03-03 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.1. It is a maintenance release fixing some 
bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QWebView.page() and setPage()

2013-02-05 Thread Detlev Offenbach


On Sunday 03 February 2013, 18:13:00 Jiangcheng Bao wrote:
> I am trying to store a current page held by QWebView away, then after
> loading and processing a different page, restore the previous page,
> without having to actually request it again, but it seems that by
> doing the following, the application lost my original page, and still
> gives me back the new one. Maybe because it is just a reference to the
> page itself. Is there anyway I can actually store that page and reuse
> it, just like a regular browser would cache the page and load it
> relatively quickly when you revisit it?
> 
> Thanks
> J
> 
> import sys
> from time import sleep
> 
> from PyQt4.QtGui import QApplication
> from PyQt4.QtCore import QUrl
> from PyQt4.QtWebKit import QWebView
> 
> class Browser(QWebView):
> 
> def __init__(self):
> QWebView.__init__(self)
> self.loadFinished.connect(self.load_finished)
> 
> def load_finished(self, ok):
> print('page title: ' + self.title())
> 
> if __name__ == '__main__':
> app = QApplication(sys.argv)
> browser = Browser()
> 
> browser.load(QUrl('http://www.google.com'))
> 
> # store this result away
> google_page = browser.page()

Did you try:
google_page = QWebPage(browser.page())

> print('current page: ' + browser.title())
> # now load a different page
> 
> browser.load(QUrl('http://www.yahoo.com'))
> print('some other page: ' + browser.title())
> 
> #if browser.page():
> #browser.page().setView(None)
> 
> # lets put back my old page
> browser.setPage(google_page)
> print('my original page: ' + browser.title())
> 
> exit(app.exec_())
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 5.3.0 released

2013-02-03 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.3.0. It is a new major release fixing some bugs and 
adding these new features.

- General
  -- introduced a "workspace" directory that is used as the default for 
 opening or saving new files or projects (configurable on Multiproject
 config page)
  -- added support for Qt5 (experimental)
- Configuration Dialog
  -- added a filter edit to filter the configuration tree
- Debugger
  -- added the capability to trace function calls and returns to the
 Python 2 and Python 3 debuggers
- Debug Viewer
  -- added the configurable capability to automatically show the source,
 when the call frame is changed in the callstack viewer of the local
 variables viewer
  -- added a viewer for call trace logs
- Editor
  -- added capability to change the colours of the edit area independant from
 the colours of the system style
  -- added capability to mark changed lines and to navigate between them
  -- added actions to search for the next/previous occurence of the current 
word
 (default shortcuts Ctrl+. and Ctrl+,)
- Graphics Dialogs
  -- added capability to store and load diagrams to/from disk
  -- improved the package diagram to include subpackages and their module 
 names
  -- added the capability to rebuild a diagram without losing the current item
 positions
- IRC
  -- added a simple IRC client
- Log Viewer
  -- added the capability to search in the recorded log
- Project
  -- added capability to save project tasks automatically (configurable on
 project configuration page of configuration dialog)
  -- made the selectable project types of the project properties dialog 
 dependent upon the selected programming language
- Snapshot
  -- added a tool to take screenshots (fullscreen, selected screen, 
 rectangular selection, elliptical selection or freehand selection)
- Spell Checker
  -- added a dialog to edit the various spell checking dictionaries
- Syntax Checker
  -- added capability to the syntax checker dialog to show all errors/warnings
 in an editor when the file entry is double activated
- Tasks
  -- changed the tasks handling to allow for more fine grained task 
 designations
- User Interface
  -- added a notification system
- Version Control System Interfaces
  -- All
 --- added code to ensure, that some eric specific files and directories
 get ignored
 --- improved the copy/move operation a bit
  -- Mercurial
 --- added support for the graft command as of Mercurial 2.0
 --- added support for Phases as of Mercurial 2.1
 --- added support for amending commits as of Mercurial 2.2
 --- added support for sub-repositories
 --- added support for --log and --dry-run to the hg graft operation as of
 Mercurial 2.3.0
 --- added code to disable the (deprecated) transplant menu for
 Mercurial 2.3.0
  -- Subversion
 --- changed code to make the subversion plug-ins compatible with the new
 generation working copy meta-data format
 --- added capability to select from existing change lists and added a
 dialog to browse the change lists
- View Manager
  -- added actions to open the find in files and replace in files dialogs in a 
 mode that searches open files only
- Web Browser
  -- too many extensions to list here (see changelog for details)

It is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Pyqt Translation

2013-02-02 Thread Detlev Offenbach
Hello Ahmed,

I am glad you like eric. 

Happy coding
Detlev

Am 02.02.2013 um 11:29 schrieb uahmed :

> Hi Detlev ,
> 
> Thanks alot for the reply , Eric IDE is perfect for this . Just in case if 
> anyone else face the problem here is solution .
> 
> Open Eric IDE  , Project and open a new project go to particular folder and 
> open it. After that on the left side it you will find one tab with tooltip of 
> Translation , there you will find the .qm file . 
> 
> After that change the extention of .qm file to .ts file and open it on Qt4 
> Linguistic (as i tried to open it but Qt4 Linguistic dont open the .qm file) 
> after opening that file select the language and it will ask you for 
> translation . once you have done that than go to File and click on Release As 
> , this will generate the .qm file . Now include your .qm file into the script 
> . 
> 
> Detlev Danke a lot i have been searching for this for long :) 
> 
> Thanks
> Ahmed
> 
> On Thu, Jan 31, 2013 at 9:01 PM, Detlev Offenbach  
> wrote:
> Hello,
>  
> why not use the eric IDE for development? It has built in interfaces to the 
> Qt tools and would do the .pro generation in the background for you. It is 
> really simple to do translation update for just one language, several or even 
> all, add new languages, ...
>  
> Regards,
> Detlev
> 
> 
> On Thursday 31 January 2013, 18:59:35 uahmed wrote:
> 
> Hi 
> 
> Thanks for the reply . I will do same i guess . Can you tell me one thing how 
> you are making qt project with .py files? 
> 
> I installed -qt-creator-py and python-pyside too , but whenever i create a 
> project it gives me main.cpp file and i didnt find any option in start to 
> choose python . Sorry i am new to QtCreator . 
> 
> Thanks
> 
> Ahmed
> 
> On Thu, Jan 31, 2013 at 3:45 PM, Vincent Vande Vyvre 
>  wrote:
> Le 31/01/13 13:23, uahmed a écrit :
> > Vincent , Should i make a Qt project and include all the python files
> > to it ? In those python files i use Pyqt for updating windows text etc  .
> >
> > On Thu, Jan 31, 2013 at 3:12 PM, uahmed  > <mailto:gleam.uah...@gmail.com>> wrote:
> >
> > Hi
> >
> > Thanks for the reply . Is there any way to do tranlsation with
> > '.ui'  file format or with .py file . I am not using QtCreator i
> > did whole code from scratch and i make the other windows in
> > QtDesigner which generate the '.ui' file and than i use them in my
> >     code .
> >
> I've never used QtCreator.
> 
> I convert my .ui files to .py, I update the file .pro if necessary and I
> run:
> 
> pylupdate4 -noobsolete oqapy.pro
> 
> (oqapy is my app) after that, I open the .ts file with QLinguist.
> 
> 
> 
> --
> Detlev Offenbach
> det...@die-offenbachs.de
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Pyqt Translation

2013-01-31 Thread Detlev Offenbach
Hello,

why not use the eric IDE for development? It has built in interfaces to the Qt 
tools and would do the .pro generation in the background for you. It is really 
simple to do translation update for just one language, several or even all, 
add new languages, ...

Regards,
Detlev

On Thursday 31 January 2013, 18:59:35 uahmed wrote:

Hi 

Thanks for the reply . I will do same i guess . Can you tell me one thing how 
you are making qt project with .py files? 

I installed -qt-creator-py and python-pyside too , but whenever i create a 
project it gives me main.cpp file and i didnt find any option in start to 
choose 
python . Sorry i am new to QtCreator . 

Thanks

Ahmed


On Thu, Jan 31, 2013 at 3:45 PM, Vincent Vande Vyvre 
 wrote:

Le 31/01/13 13:23, uahmed a écrit :

> Vincent , Should i make a Qt project and include all the python files
> to it ? In those python files i use Pyqt for updating windows text etc  .
>
> On Thu, Jan 31, 2013 at 3:12 PM, uahmed  <mailto:gleam.uah...@gmail.com>> wrote:
>
> Hi
>
> Thanks for the reply . Is there any way to do tranlsation with
> '.ui'  file format or with .py file . I am not using QtCreator i
> did whole code from scratch and i make the other windows in
> QtDesigner which generate the '.ui' file and than i use them in my
> code .
>

I've never used QtCreator.

I convert my .ui files to .py, I update the file .pro if necessary and I
run:

pylupdate4 -noobsolete oqapy.pro

(oqapy is my app) after that, I open the .ts file with QLinguist.





-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Resizing index widgets

2013-01-30 Thread Detlev Offenbach
Hi Mads,

why are you using QTreeView? I would use QToolbox for such a layout.

Regards,
Detlev

On Tuesday 29 January 2013, 22:31:14 Mads Ipsen wrote:

Hi,

We develop a tool for manipulating atomic structures and have embedded all the 
manipulation widgets in a panel bar (widget on the right in attached 
screen0.png). The Panel bar has expandable buttons, which upon expansion 
display different interfaces for manipulating the atomic structures.

The whole thing is implemented using a MVC approach using a QTreeView and an 
overloaded QItemDelegate class used for handling painting of the buttons, 
sizeHints, etc. The widget interfaces however, are displayed by setting 
setIndexWidget() on the tree view. 

This works fine if the widgets have a fixed size. However if the atomic 
structure changes (molecule to crystal), previously hidden GUI elements may be 
shown in the widget, which gives rise to a compressed (bad) layout since the 
index widget has a fixed size (screen1.png).

The only way I could fix this was to use an idle time, that keeps triggering 
the emission of the signal

sizeHintChanged(const QModelIndex & index)

from the delegate. This immediately triggers a smooth update of the index 
widget resulting in screen2.png. From a user perspective it works fine, but to 
me it appears somewhat hacky. Is there eg. a way to monitor layout changes in 
visible index widgets?

Best regards,

Mads


-- 
+-+
| Mads Ipsen  |
+--+--+
| Gåsebæksvej 7, 4. tv |  |
| DK-2500 Valby| phone:  +45-29716388 |
| Denmark  | email:  mads.ip...@gmail.com |
+--+--+
 


-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt App on Windows 8?

2013-01-18 Thread Detlev Offenbach
Definetly yes. I am using eric5 an that platform already.

Detlev

On Friday 18 January 2013, 13:53:18 zw g wrote:

Dear Guys,


Can PyQt-based applications run on Windows 8?
Thanks in advance.



Gui


-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Issue of QWebPage.extension

2013-01-07 Thread Detlev Offenbach
Hello,

you have to cast it explicitly using sip.cast.

Here is a code extract of the eric5 web browser.

if extension == QWebPage.ErrorPageExtension:
info = sip.cast(option, QWebPage.ErrorPageExtensionOption)
errorPage = sip.cast(output, QWebPage.ErrorPageExtensionReturn)

Regards,
Detlev

On Monday 07 January 2013, 21:55:27 Flya Flyaa wrote:

I want to get page detailed error message this 
way: http://stackoverflow.com/questions/7279046/how-to-get-detailed-error-
message-when-qtwebkit-fails-to-load-a-page


This need  reimplement  QWebPage.extension 
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.html#extension,
 
and get detail from the second argument ExtensionOption.


Code like this: 


def extension(self, extension, info = None, errorPage = None):
if extension == QtWebKit.QWebPage.ErrorPageExtension:
content = u"Failed loading 
pageFailed loading page (%s)%s 
" % (info.errorString, info.url.toString())
errorPage.content = QtCore.QByteArray(content.encode('utf-8'))
gdata.log(u'Warn: Failed loading [%s] (%s)!' % (info.errorString, 
info.url.toString() ))
return True
return True


When extension == QtWebKit.QWebPage.ErrorPageExtension, the second argument 
should be QWebPage.ErrorPageExtensionOption, but it always 
be QWebPage.ExtensionOption, and can't get the detailed error message from it.


PySide has this problem in earlier versions, it be fixed later with test 
case 
http://pyside.sourcearchive.com/documentation/1.0.1-1/bug__694_8py_source.html 
. Hope PyQt can fix it. 


-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue with latest PyQt4 and Qt5

2013-01-07 Thread Detlev Offenbach
Hello,

I am facing an issue with latest PyQt4 snapshot and Qt5. It seems that the 
'setSocketDescriptor()' method of 'QAbstractSocket' is not working correctly, 
if PyQt4 is compiled against Qt5. How to reproduce it? Just start the 
threadedfortunes.py script of the examples. Therafter follow the instructions 
given. Trying to get a fortune via the fortuneclient.py script makes the later 
script hang (i.e. no fortune is returned). It seems, that the socket is not 
connected in the server, which uses the incomingConnection() method of 
QTcpServer.

The same issue happens with eric5 and Qt5 in the Cooperation functions.

eric5 and the a.m. example both work fine with PyQt4 built against Qt4.

Please note, that the signature of setSocketDescriptor method is different 
between Qt4 and Qt5. In Qt4 it is using an 'int' and in Qt5 a 'qintptr'. 
However, the type of the descriptor passed to the 
QTcpServer,incomingConnection() call is sip.voidptr (for Qt5).

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QtDesigner Integration

2013-01-04 Thread Detlev Offenbach
Hello,

I am still looking for a (wrapped) widget, that can be used to integrate the 
designer part into the eric main window. Is there anything like that around? 
Today I found cuteReport, that includes something like that. If that could be 
extracted and provided standalone, it would be a good startpoint.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue compiling latest sip on Mac OS X for Python3.3

2013-01-01 Thread Detlev Offenbach
Hello,

I just tried to compile latest sip on Mac OS X for Python 3.3 for a virtual 
environment created with pyvenv (which is part of Python since 3.3). However, 
that failed with the error 

Error: SIP requires Python to be built as a framework

I installed Python via the installer downloaded from www.python.org. What am I 
doing wrong?

Furthermore, the compiler configuration is shown as macs-g++, while the 
installed Qt5 is for clang. What to do about that?

Regards,
Detlev

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Trying to install Eric 4

2012-12-31 Thread Detlev Offenbach
Hello,

you have to compile the QScintilla Python bindings AFTER PyQt4. The correct 
order is given in the README file of the eric distribution archive.

Detlev

On Sunday 30 December 2012, 23:30:55 Alan Corey wrote:
> This seems like mostly a pyqt problem, as far as I know.  From my logs:
> 
> I have qt4-4.7.3p0 also qt3-mt-3.8p5, using qmake from 4
> I have python-2.7.1p9, also python-2.5.4p13, using 2.7.1
> I have QScintilla-gpl-2.7 and installed Python bindings
> I have py-qt4-4.8.4p0v0 (OpenBSD name for PyQt-x11-gpl-4.8.4.tar.gz)
> 
> From the eric4-4.5.7 install:
> 
> freebie# python2.7 install.py
> Checking dependencies
> Python Version: 2.7.1
> Found PyQt4
> Found QtHelp
> Sorry, please install QScintilla2 and
> it's PyQt4 wrapper.
> Error: Cannot load specified object
> 
> What specified object?
> 
> In the QScintilla files there's a Python dir, I installed that after
> the main QScintilla install.  Is there something else to bind it to
> PyQt?  I'm running OpenBSD 5.0, building from sources (no binary
> packages, RPMs etc.).  Things were going well until this.  I'm not
> sure f it wants something else or if it's not finding something that's
> already installed.
> 
>   Alan
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Strange observation with Qt5/PyQt4

2012-12-30 Thread Detlev Offenbach
Hello,

testing eric5 with Qt5 and latest PyQt4 snapshot raised a strange observation. 
The eric5 Web Browser shows dialog windows generated by Qt5 with content like

Trying to construct an instance of an invalid type, type id: 627995709

Does anybody have an idea what could causing this?

Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Another issue with latest PyQt4 snapshot and Qt5

2012-12-30 Thread Detlev Offenbach
Hello Phil,

thanks for the changes. Everything compiled fine. Now it is time for testing 
eric5 on Qt5 by using it.

Regards,
Detlev

On Sunday 30 December 2012, 11:09:47 Phil Thompson wrote:
> On Fri, 21 Dec 2012 12:09:03 +0100, Detlev Offenbach
> 
>  wrote:
> > Hello,
> > 
> > here is the next issue I faced. Having resolved the before reported
> 
> issue
> 
> > temporarily I tried to compile. However, the linking stage failed. Here
> 
> is
> 
> > the
> > output.
> > 
> > g++ -c -m64 -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -
> > DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DSIP_PROTECTED_IS_PUBLIC -
> > Dprotected=public -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB
> > -DQT_CORE_LIB
> > -I. -I/usr/include/python3.2mu -I/usr/local/Qt-5.0.0/mkspecs/default -
> > I/usr/local/Qt-5.0.0/include/QtMultimedia
> > -I/usr/local/Qt-5.0.0/include/QtGui
> > -I/usr/local/Qt-5.0.0/include/QtWidgets -
> > I/usr/local/Qt-5.0.0/include/QtPrintSupport -
> > I/usr/local/Qt-5.0.0/include/QtCore -I/usr/local/Qt-5.0.0/include -o
> > sipQtMultimediapart6.o sipQtMultimediapart6.cpp
> > g++ -shared  -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.0/lib -Wl,--version-
> > script=QtMultimedia.exp -o QtMultimedia.so sipQtMultimediapart0.o
> > sipQtMultimediapart1.o sipQtMultimediapart2.o sipQtMultimediapart3.o
> > sipQtMultimediapart4.o sipQtMultimediapart5.o sipQtMultimediapart6.o -
> > L/usr/local/Qt-5.0.0/lib -L/usr/X11R6/lib64 -lQtMultimedia -lQtGui
> > -lQtWidgets
> > -lQtPrintSupport -lQtCore -lXext -lX11 -lm -lpthread
> 
> /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
> > cannot find -lQtWidgets
> 
> /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
> > cannot find -lQtPrintSupport
> > 
> > That is correct because the installed Qt5 libraries are called
> > libQt5Widgets.so
> > libQt5PrintSupport.so
> > and so on.
> 
> Should all be fixed with the current SIP and PyQt snapshots.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Another issue with latest PyQt4 snapshot and Qt5

2012-12-21 Thread Detlev Offenbach
Hello,

here is the next issue I faced. Having resolved the before reported issue 
temporarily I tried to compile. However, the linking stage failed. Here is the 
output.

g++ -c -m64 -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -
DQT_DISABLE_DEPRECATED_BEFORE=0x040900 -DSIP_PROTECTED_IS_PUBLIC -
Dprotected=public -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CORE_LIB 
-I. -I/usr/include/python3.2mu -I/usr/local/Qt-5.0.0/mkspecs/default -
I/usr/local/Qt-5.0.0/include/QtMultimedia -I/usr/local/Qt-5.0.0/include/QtGui 
-I/usr/local/Qt-5.0.0/include/QtWidgets -
I/usr/local/Qt-5.0.0/include/QtPrintSupport -
I/usr/local/Qt-5.0.0/include/QtCore -I/usr/local/Qt-5.0.0/include -o 
sipQtMultimediapart6.o sipQtMultimediapart6.cpp
g++ -shared  -Wl,-O1 -Wl,-rpath,/usr/local/Qt-5.0.0/lib -Wl,--version-
script=QtMultimedia.exp -o QtMultimedia.so sipQtMultimediapart0.o 
sipQtMultimediapart1.o sipQtMultimediapart2.o sipQtMultimediapart3.o 
sipQtMultimediapart4.o sipQtMultimediapart5.o sipQtMultimediapart6.o -
L/usr/local/Qt-5.0.0/lib -L/usr/X11R6/lib64 -lQtMultimedia -lQtGui -lQtWidgets 
-lQtPrintSupport -lQtCore -lXext -lX11 -lm -lpthread
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
cannot find -lQtWidgets
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: 
cannot find -lQtPrintSupport

That is correct because the installed Qt5 libraries are called
libQt5Widgets.so
libQt5PrintSupport.so
and so on.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue with latest PyQt4 snapshot and Qt 5.0.0

2012-12-21 Thread Detlev Offenbach
Hello,

I built and installed Qt 5.0.0 myself on my openSUSE 12.2 machine. Everything 
compiled and installed fine. However, when I tried to configure the latest 
PyQt4 
snapshot with a command like

~/py3qt50env/bin/python configure.py -b ~/py3qt50env/bin/ -v ~/py3qt50env/sip -
c -j8

I am getting an error

Determining the layout of your Qt installation...
Error: Unable to find the qmake configuration file
/usr/local/Qt-5.0.0/mkspecs/default/qmake.conf. Use the QMAKESPEC environment
variable to specify the correct platform.

I checked the Qt5 installation and indeed, there is no default directory. How 
can I tell configure.py which mkspec to use (other than through QMAKESPEC)?

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 and Qt5

2012-12-21 Thread Detlev Offenbach
Hello Phil,

will you eventually provide Windows installers including Qt5 as well? If you 
will, will it be possible to install them in parallel, i.e. have PyQt4 with 
Qt4 and Qt5 available at the same time?

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] A quick question about Return in a text edit

2012-12-05 Thread Detlev Offenbach
Hi,

you are right. keyPressEvent() should do the job.

Detlev

On Monday 03 December 2012, 17:56:12 Evan Driscoll wrote:
> I want to make a UI that carries out an action when the user presses
> return (think like in Pidgin), and I have a couple questions about how
> to do this. I've dabbled a very small amount but I'm basically a (Py)Qt
> newb.
> 
> From what I can tell, I want to use a QPlainTextEdit. I don't think a
> QLineEdit will work because I will sometimes need multiple lines, but
> they'll arise in ways other than the user pressing enter. (Again, think
> about Pidgin: enter sends a message, shift-enter adds a newline.)
> 
> Looking at the signals that are available, I don't see one that says
> what key has been pressed. I might be able connect a slot to
> textChanged() then do something like figure out what the cursor is and
> then look at the preceding character or something like that, but it
> seems much better to create a subclass of QPlainTextEdit and override
> the keyPressEvent() (or maybe keyReleaseEvent()?) function.
> 
> Does this all seem reasonable, or am I missing a better approach?
> 
> Evan
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] problem running pyqt on xubuntu

2012-10-20 Thread Detlev Offenbach
Hello,

I am doing it for eric development using separate Qt installation directories, 
Python virtual environments and start scripts setting the path to the Qt tools 
explicitly. Works perfectly for me. 

Just make sure to set the path explicitly when building PyQt4 and QScintilla 
stuff.

Detlev

Am 20.10.2012 um 09:43 schrieb Mark Summerfield :

> On Sat, 20 Oct 2012 03:21:51 -0400
> Scott Kitterman  wrote:
>> On Saturday, October 20, 2012 08:11:29 AM Mark Summerfield wrote:
>>> I have built local versions of Qt 4.8.3, Python, SIP, and PyQt on an
>>> Xubuntu machine which has Qt 4.8.1 as its system Qt:
>> 
>> ...
>> 
>>> So clearly, despite trying to build using my local Qt, PyQt seems to be
>>> looking at the system Qt.
>>> 
>>> Is there a solution for this?
>> 
>> Upgrading to the newest Xubuntu release where 4.8.3 is the system Qt
>> would be one way to do it.
> 
> Yes, and so would doing a local install of 4.8.1. But my whole purpose
> is to be able to have many local builds of different combinations of 
> Py x Qt x PyQt for testing purposes.
> 
> -- 
> Mark Summerfield, Qtrac Ltd, www.qtrac.eu
>C++, Python, Qt, PyQt - training and consultancy
>"Rapid GUI Programming with Python and Qt" - ISBN 0132354187
>http://www.qtrac.eu/pyqtbook.html
> _______
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] call method doesn't work if it has QScintilla instance

2012-10-14 Thread Detlev Offenbach
Still cannot run it because sciPythonEditor.py includes this import statement

from qgis.utils import iface

Further more, the code you sent doesn have a prefChanged() method anywhere.



On Sunday 14 October 2012, 15:14:19 Salvatore Larosa wrote:

Hi,
very odd, you should be able to run it also without qgis package!
I attached a new package, Could you give a try at it ? (run 
sciPythonEditor.py)

Thank you very much!

Regards,

-SL

PS: can I clone the repository to install trunk version of eric like to github 
repository ? Where/How do it ?



2012/10/14 Detlev Offenbach 

Hello,


I don't know why it doesn't work. The code looks right (although a bit 
strange). Unfortunately I am not able to debug it because it imports QGis 
stuff, which I don't have, and missing files in the archive. 


Regards,
Detlev


Am 14.10.2012 um 13:03 schrieb Salvatore Larosa :


Hi Detlev,

At the moment I'm using Aptana as IDE, but I will pass to Eric ;-)


If you are so kind to check out the attached code, you will notice the 
problem. The interpreter is console.py!
the method is prefChanged() in console_sci.py which is called in 
console_settings.py (accept event)

I do not understand why does not work, I make a simple call!

Thanks a lot!

-SL






2012/10/14 Detlev Offenbach 

Is the second method called at all? Maybe it would be a good idea to do your 
coding with eric and use the eric debugger to check what's going on ;-)


Detlev


Am 14.10.2012 um 11:33 schrieb Salvatore Larosa :


I have a small problem in defining/calling an external method in my 
application.

I have 3 files, mainapp.py, qscintilla.py and settings.py

in mainapp.py:

from qscintilla import sciEditor
from settings import dialog

in setting.py (settings dialog):

from qscintilla import sciEditor

in qscintilla.py:

scintilla instances stuff

the strange thing is that I can not call a method of sciEditor from setting 
dialog which has Qscintilla instance!!

I try to be clearer:

For example, in my  sciEditor class I have these methods:

def method1 (self):
print "Hello"

def method2 (self):
self.SendScintilla (QsciScintilla.SCI_CLEARALL)
self.setText ("Hello")

calling the first method from settings dialog works, the latter not!

maybe I'm missing something!!!

Any suggest is appreciate !


All the best!

-SL



-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode


___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt 


Detlev Offenbach
det...@die-offenbachs.de









-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode





Detlev Offenbach
det...@die-offenbachs.de









-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode




-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] [QScintilla] - changing font to editor by settings dialog

2012-10-11 Thread Detlev Offenbach
All stuff you asked for is used in the eric IDE. You may have a look at the 
code or simply use it for your purpose.

Regards,
Detlev

On Thursday 11 October 2012, 14:33:48 Salvatore Larosa wrote:

Hi all,
I would like to change font and fontsize (eventually API path too) in my 
editor by using a setting dialog.
What I looking to do is on event click (accept) of settings dialog apply the 
changes at the editor.

Any hint ?

Also, is there any useful resource on how can I use refreshProperties, 
readSettings, writeSettings ?

Thanks in advance !

-SL

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode




-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Dilemma: Pqt or wxpython

2012-09-11 Thread Detlev Offenbach


On Tuesday 11 September 2012, 15:23:31 Phil Thompson wrote:
> Hi Tony!
> 
> On Tue, 11 Sep 2012 15:14:42 +0100, "Tony Lynch"  wrote:
> > Phil has maintained PyQt uninterrupted for (I think) 8 or 9 years. He
> > tends to fix bugs within a day. Qt is much better than wx in general,
> > and more widely used. I'd go for Qt/PyQt every time,
> 
> Actually it's coming up to the 14th anniversary of the first release.

And eric, the Python aand PyQt IDE is approaching the 10th anniversary. 
Actually it is a bit over 10 years that Phil talked me into taking over a non-
functional Python debugger with a PyQt interface. This was the start of my 
PyQt envolvement.

Thanks for that, Phil!

> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4 and Qt5

2012-09-04 Thread Detlev Offenbach


On Tuesday 04 September 2012, 09:30:06 Phil Thompson wrote:
> On Tue, 04 Sep 2012 09:44:08 +0200, Detlev Offenbach
> 
>  wrote:
> > Hello,
> > 
> > I would like to know the plan about the PyQt support for Qt 5.0 because
> 
> I
> 
> > would like to start to make eric5 compatible with Qt 5 as soon as
> 
> possible
> 
> > (if
> > that is possible). In order for that, I would need support for these
> > modules.
> > 
> > PyQt4.QtCore
> > PyQt4.QtGui
> > PyQt4.QtNetwork
> > PyQt4.QtWebKit
> > PyQt4.QtHelp
> > PyQt4.QtSql
> > PyQt4.QtSvg
> > PyQt4.uic
> > 
> > Regards,
> > Detlev
> 
> The plan is that PyQt4 will build against Qt5. v4.9.4 will build against
> Qt5-alpha (QtCore and QtGui modules only). I am currently working on
> updating to Qt5-beta1. The Qt4 and Qt5 APIs are very similar, but not
> identical. 

Do you have a list of differences at hand? Such a list could ease building an 
application, that works under Qt5 and Qt4 (maybe by having some kind of 
portability layer).

> It's theoretically possible that an application will not need
> any changes. Once QtCore and QtGui build again I'll move on to the other
> modules.

That is really good news.

> 
> QScintilla already supports Qt5.

I knew about that and it compiled already. It was an issue I had with PyQt4 
4.9.4 with Qt5-beta1, but that's probably because PyQt4 is not yet adjusted 
(it didn't catch the QtGui stuff).

> 
> There will also be a PyQt5, but probably not until after the final release
> of Qt5. This will support the new features of Qt5, drop all deprecated
> parts of the Qt API, drop the QString, QVariant v1 APIs etc.
> 
> So I would hope that you will be able to run eric under Qt5 sooner rather
> than later.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt4 and Qt5

2012-09-04 Thread Detlev Offenbach
Hello,

I would like to know the plan about the PyQt support for Qt 5.0 because I 
would like to start to make eric5 compatible with Qt 5 as soon as possible (if 
that is possible). In order for that, I would need support for these modules.

PyQt4.QtCore
PyQt4.QtGui
PyQt4.QtNetwork
PyQt4.QtWebKit
PyQt4.QtHelp
PyQt4.QtSql
PyQt4.QtSvg
PyQt4.uic

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Building PyQt.

2012-07-07 Thread Detlev Offenbach
Hello,

a much easier way to get PyQt4 running on Windows is to use the PyQt4 
installer. With that you should be able to get eric installed within a couple 
of minutes. Please note, that eric5 needs Python3. If you want a Python2 setup 
please install eric4.

Regards,
Detlev

On Thursday 05 July 2012, 14:13:59 Frank Drown wrote:
> In an effort to install Eric IDE v5 on a 64 bit Windows 7 platform, I've
> installed Python 2.7.3 64bit, Qt 4.8.1, QScintilla 2.6.2, SIP 4.13.3. Now I
> am installing PyQt 4.9.4.
> 
> I ran 'Python configure.py' without any apparent issues.
> When I tried to build PyQt by running 'nmake install', I get a low memory
> message and after a while, the build goes into an endless loop displaying
> the following message: NMAKE U1077: '"\nmake.exe"': return
> code '0x2'
> 
> What do I need to do to finish building PyQt?
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Crash of latest PyQt4 on Mac OS X

2012-06-26 Thread Detlev Offenbach
Hello,

some additional info. PyQt4 4.9.1 works fine with latest QScintilla and sip. 
That means means, that the issue is definitely inside PyQt4 4.9.3.

Regards,
Detlev

Am 26.06.2012 um 19:03 schrieb Detlev Offenbach:

> Hello,
> 
> entering this line into a Python3 shell crashes with a segfault on Mac OS X 
> Lion over here.
> 
> >>> from PyQt4 import QtHelp
> 
> I just compiled all the latest packages of QScintilla, sip and PyQt4. Qt is 
> 4.8.2. What did I do wrong?
> 
> Regards,
> Detlev
> 
> Detlev Offenbach
> det...@die-offenbachs.de
> 
> 
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Crash of latest PyQt4 on Mac OS X

2012-06-26 Thread Detlev Offenbach
Hello,

entering this line into a Python3 shell crashes with a segfault on Mac OS X 
Lion over here.

>>> from PyQt4 import QtHelp

I just compiled all the latest packages of QScintilla, sip and PyQt4. Qt is 
4.8.2. What did I do wrong?

Regards,
Detlev

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue building PyQt4 4.9.2 on Mac OS X Lion

2012-06-23 Thread Detlev Offenbach
Hello,

I tried to build latest PyQt4 on Mac OS X Lion without success. The command

python3 configure.py --verbose 

gives this output.

Determining the layout of your Qt installation...
/usr/bin/qmake -spec default -o qtdirs.mk qtdirs.pro
Error: /usr/bin/qmake failed to create a makefile. Make sure you have a working
Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working
Qt v4 qmake.


The same command works fine for PyQt4 4.9.1.

Any help is appreciated.

Regards,
Detlev

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Qt5 roadmap?

2012-06-18 Thread Detlev Offenbach


On Sunday 17 June 2012, 20:11:34 Phil Thompson wrote:
> On Sun, 17 Jun 2012 19:38:13 +0200, Detlev Offenbach
> 
>  wrote:
> > On Sunday 17 June 2012, 18:24:55 Phil Thompson wrote:
> >> On Sat, 16 Jun 2012 07:27:11 -0700, David Cortesi
> 
> 
> 
> >> wrote:
> >> > Folks,
> >> > 
> >> > Per the Qt Project roadmap (http://qt-project.org/wiki/Qt_5.0) Qt
> >> > 5
> 
> is
> 
> >> > supposed to be in beta now (the alpha is available at
> >> > http://qt-project.org/prereleases), with final release "by the end
> >> > of
> >> > June".
> >> 
> >> I wouldn't put too much faith in those dates.
> >> 
> >> > I look in vain for a pyqt roadmap at riverbank.co.uk, although I
> >> > do
> 
> see
> 
> >> > roadmaps for sip and dip. So, what's the anticipation for PyQt5
> >> > release?
> >> > Any news?
> >> 
> >> Qt5 support will be in two stages.
> >> 
> >> Current PyQt4 snapshots build against the alpha release of Qt5 (QtCore
> >> and
> >> QtGui modules only at the moment). This will allow you to run your
> >> current
> >> PyQt4 code with Qt5. You will get any speed improvements, bug fixes
> >> etc
> >> in
> >> Qt5 but not any of the new functionality.
> >> 
> >> There will be a PyQt5 that will support the new functionality of Qt5,
> 
> and
> 
> >> reflect its different structure (eg. QWidget will be in
> >> PyQt5.QtWidgets
> >> rather than PyQt4.QtGui). Backwards compatibility with PyQt4 will not
> 
> be
> 
> >> maintained.
> > 
> > Is it planned to include a tool converting existing code from PyQt4 to
> > PyQt5
> > (something like 2to3 for Python)?
> 
> No. It might be just a case of changing import statements.
> 

If it is that simple I could do it myself.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Qt5 roadmap?

2012-06-17 Thread Detlev Offenbach


On Sunday 17 June 2012, 18:24:55 Phil Thompson wrote:
> On Sat, 16 Jun 2012 07:27:11 -0700, David Cortesi 
> 
> wrote:
> > Folks,
> > 
> > Per the Qt Project roadmap (http://qt-project.org/wiki/Qt_5.0) Qt 5 is
> > supposed to be in beta now (the alpha is available at
> > http://qt-project.org/prereleases), with final release "by the end of
> > June".
> 
> I wouldn't put too much faith in those dates.
> 
> > I look in vain for a pyqt roadmap at riverbank.co.uk, although I do see
> > roadmaps for sip and dip. So, what's the anticipation for PyQt5 release?
> > Any news?
> 
> Qt5 support will be in two stages.
> 
> Current PyQt4 snapshots build against the alpha release of Qt5 (QtCore and
> QtGui modules only at the moment). This will allow you to run your current
> PyQt4 code with Qt5. You will get any speed improvements, bug fixes etc in
> Qt5 but not any of the new functionality.
> 
> There will be a PyQt5 that will support the new functionality of Qt5, and
> reflect its different structure (eg. QWidget will be in PyQt5.QtWidgets
> rather than PyQt4.QtGui). Backwards compatibility with PyQt4 will not be
> maintained.

Is it planned to include a tool converting existing code from PyQt4 to PyQt5 
(something like 2to3 for Python)?

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-17 Thread Detlev Offenbach
Am Donnerstag, 17. Mai 2012, 22:27:32 schrieb Hans-Peter Jansen:
> On Wednesday 16 May 2012, 22:21:05 Phil Thompson wrote:
> > So the rule is that if you make a connection old style then you must
> > disconnect old style as well and the same for new style. You also
> > need to be aware that pyuic4 uses old style connections.
> 
> While all of this makes sense, it might be worthwhile to add an option
> to pyuic4 that creates new style signals & slots.

Plus one from my side for this suggestion.

> 
> Pete
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 

Detlev Offenbach
det...@die-offenbachs.de___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] qwidget launching problem

2012-05-06 Thread Detlev Offenbach
Am Sonntag, 6. Mai 2012, 20:25:15 schrieb Enes Albay:
> Hi,
> 
> 
> If i implement my class like below:
> 
> class MainWindow(QtGui.QMainWindow):
>  def __init__(self):
>  super(MainWindow, self).__init__()
>  self.initUI()
> 
>  def initUI():
>  
>  
>  self.showButton = QtGui.QPushButton(u"KlavyeyiGoster",
> self.mainWidget)
>  self.showButton.resize(self.showButton.sizeHint())
>  self.showButton.clicked.connect(self.widgetClicked)
>  
>  
> 
> 
>  def widgetClicked(self):
>  self.newWidget = QtGui.QWidget();
>  self.newWidget.setGeometry(0, 0, 300, 300)
>  self.newWidget.show()
> 
> when i click Button, newWidget is constructed and showed. But if i
> change "widgetClicked" method like this:
> 
> def widgetClicked(self):
>  newWidget = QtGui.QWidget();
>  newWidget.setGeometry(0, 0, 300, 300)
>  newWidget.show()
> 
> when i clicked the button, it doesn't show anything. There are no
> compilation or run time errors.
> 
> What is the reason of this difference?

The difference is called Garbage Collection. In the later case the newly 
created object is garbage collected as sson as the method returns. You have to 
keep a local reference as long as the widget is needed.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] ANN: eric 5.2.2 released

2012-05-01 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.2.2. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: eric 4.5.3 released

2012-05-01 Thread Detlev Offenbach
Hi,

I just uploaded eric 4.5.3. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
--
Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] URL change of eric source code repositories

2012-04-14 Thread Detlev Offenbach
Hello,

please note that the URL of the eric repositories has changed. They are 
available via http://die-offenbachs.homelinux.org:4/, i.e. 
the added port.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Another strange observation with new-style signals

2012-04-01 Thread Detlev Offenbach
Hello,

I am observing another strange behavior of my program with new-style signals 
and slots. It seems, that the mechanism takes an excessive amount of time. I 
ran an old version of my program that uses the old-style signals and it is 
noticeably faster. Unfortunately it is difficult to generate a test script to 
show this.

I am using Qt 4.8.1 and latest PyQt4 and sip snapshots.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Strange behavior with new-style signals and slots

2012-04-01 Thread Detlev Offenbach
Hallo,

I am observing a strange behavior related to new-style signal and slots. Here 
is the situation.

My program calls this line twice in a class (via different code paths).

self.project.projectPropertiesChanged.connect(self.__projectPropertiesChanged)

The disconnect is only issued once when the class (the editor) is closed.

self.project.projectPropertiesChanged.disconnect(self.__projectPropertiesChanged)

If the signal is emitted thereafter, I get a RuntimeError saying, that the 
underlying C/C++ object has been destroyed. I suspect, that the Python wrapper 
for the Qt object (here it is a QScintilla object) is still kept alive by some 
reference counter (possibly caused by the double connection).

Is this a bug in PyQt/sip or do I have to avoid such a situation? If the later 
is the case, is it possible to check, if a signal is already connected, e.g. 
something like

self.project.projectPropertiesChanged.is_connected(self.__projectPropertiesChanged)

Another consequence of the double connection is, that the slot is called twice 
when the signal is emitted.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Designer source

2012-03-25 Thread Detlev Offenbach
Hello Henning,

I would be interested in integrating it in eric4 and eric5. However, before 
going to spend time on it I would like to be ensured of these points.

1. A version for Python2 and Python3 is made available.
2. The package is maintained and updated over the next couple of years.
3. It should work on the platforms supported by eric (Windows, Linux, Mac OS 
X).
4. Installers for Windows and Mac OS X should be provided (most people don't 
seem to like the diea to compiled such stuff themself).

Regards,
Detlev

Am Donnerstag, 22. März 2012, 20:21:38 schrieb Henning Schröder:
> If someone wants to integrate Designer here is a useable starting point:
> https://bitbucket.org/henning/pyqtdesigner/get/tip.tar.gz
> You can open, edit and save forms.
> Before testing you have to call build.sh
> This creates a C++ shared library which is loaded by Python with ctypes.
> The (important) parts were written by Dmitriy Zhukov, author of pynoto.
> I added the PyQt-glue code
> Greets
> Henning
> 
> On Fri, Mar 9, 2012 at 12:09 PM, Andreas Pakulat  wrote:
> > On 09.03.12 09:38:06, Hans-Peter Jansen wrote:
> >> Am Thursday 08 March 2012 23:08:09 schrieb Andreas Pakulat:
> >> > On 08.03.12 19:42:39, Detlev Offenbach wrote:
> >> > > Am Donnerstag, 8. März 2012, 09:49:41 schrieb Andreas Pakulat:
> >> > > > On 08.03.12 09:35:51, Andreas Pakulat wrote:
> >> > > > > On 07.03.12 16:14:18, JPolk wrote:
> >> > > > > > ...'cause it would make it easier for me to merge
> >> > > > > > Designer with Maya ;-)>
> >> > > > > 
> >> > > > > Write Maya in C++ ;P
> >> > > > 
> >> > > > Hmm, on a more serious note, you won't get around writing
> >> > > > C++. AFAIK the public API of the QtDesigner library (and
> >> > > > hence also the PyQt module) does not include the
> >> > > > necessary functions to actually create a designer
> >> > > > yourself. One needs to use one or two private headers
> >> > > > from QtDesigner for the necessary functions. You could of
> >> > > > course simply wrap that private API in a simple class and
> >> > > > expose that via sip to Python and then do all the rest in
> >> > > > Python.
> >> > > 
> >> > > If somebody would do that and maintain it over time I would be
> >> > > the first to use to integrate Designer into the eric IDE.
> >> > 
> >> > Its not an easy task though, we had something somewhat-working for
> >> > KDevelop4 in a plugin, but it did require some nasty hacks and
> >> > workarounds the designer API. Its simply not really meant to be
> >> > added to "arbitrary" IDE's, but mainly geared towards the
> >> > designer standalone app.
> >> > 
> >> > Note, I'm basing that information on Qt4.5/4.6, i.e. a point in
> >> > time
> >> > where QtCreator was still in its early stages. Maybe in more
> >> > recent
> >> > Qt versions this got improved to provide better integration for
> >> > QtCreator.
> >> 
> >> My humble guess is: it's easier to create a module, that resembles the
> >> main designer functionality, than wrapping that biest,
> > 
> > Actually my PyQt4 already comes with a QtDesigner module and that looks
> > somewhat complete.
> > 
> >> given, that a lot of the necessary hacks are done to work around the
> >> inflexibility of C++ for that purpose.
> > 
> > The main hackery in C++ was getting a grip on the entry-point that the
> > QtDesigner module provides to instantiate all the various parts of it
> > (action-editor, property-editor, workspace area, widget-list, gui
> > actions). The other problem was more related to decisions done for
> > KDevelop, designer really requires all .ui files to be in the same
> > workspace widget. Working around this limitation was I believe a major
> > pain point in the KDevelop plugin before it was abandoned.
> > 
> > I'm not sure how much of designer's code works around C++ limitations.
> > Some things are more workarounds for the Qt widgets not being designed
> > for something like designer in the first place (i.e. there's a
> > wrapping-widget or even just look-a-like widget for the fancies Qt
> > widgets inside designers codebase).
> > 
> > Andreas
> > 
> > ___
> > PyQt mailing listPyQt@riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Designer source

2012-03-08 Thread Detlev Offenbach
Am Donnerstag, 8. März 2012, 09:49:41 schrieb Andreas Pakulat:
> On 08.03.12 09:35:51, Andreas Pakulat wrote:
> > On 07.03.12 16:14:18, JPolk wrote:
> > > ...'cause it would make it easier for me to merge Designer with Maya
> > > ;-)> 
> > Write Maya in C++ ;P
> 
> Hmm, on a more serious note, you won't get around writing C++. AFAIK the
> public API of the QtDesigner library (and hence also the PyQt module)
> does not include the necessary functions to actually create a designer
> yourself. One needs to use one or two private headers from QtDesigner
> for the necessary functions. You could of course simply wrap that
> private API in a simple class and expose that via sip to Python and then
> do all the rest in Python.

If somebody would do that and maintain it over time I would be the first to 
use to integrate Designer into the eric IDE.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] pylupdate4 issue

2012-02-26 Thread Detlev Offenbach
Am Sonntag, 26. Februar 2012, 15:56:54 schrieb Vincent Vande Vyvre:
> Le 26/02/12 15:16, ad...@mbnoimi.net a écrit :
> On 19/02/2012 09:55 م, Vincent Vande Vyvre wrote:
> Le 19/02/12 19:55, ad...@mbnoimi.net a écrit :
> On 19/02/2012 08:22 م, ad...@mbnoimi.net wrote:
> Hi all,
> 
> I tried to create *.ts file for my project by using pylupdate4 so I tried
> the following commad but it didn't work!
> 
> pylupdate4 *.py -ts %CD%\ui\l10n\ar.ts
> pylupdate4 error: Cannot open file '*.py': No error
> 
> Could you please guide me to the correct path?
> 
> PS
> I successfully created *.ts file for single *.py file.
> 
> I forgot to mention that I want to create single *.ts file for many *.py
> files
> 
> You must provide a .pro file to pyludate4
> 
> exemple of .pro file
> 
> SOURCES= main.py\
> ui_mainWindow.py\
> otherFile.py\
> etc
> 
> TRANSLATIONS= appName_ar.ts
> 
> CODECFORTR  = UTF-8
> 
> CODECFORSRC = UTF-8
> 
> I don't want to use .pro because I've many files in many subdirecories which
> is very exhausting to write manually.
> 
> Any ideas guys?
> 
> --
> Best Regards
> Muhammad Bashir Al-Noimi
> My Blog: http://mbnoimi.net
> So, You can easily write a python script which will create the .pro file for
> you. No?

You could copy the relevant code from the eric4/eric5 sources (module 
ProjectLanguagesBrowser).

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Need help using QWebPluginFactory

2012-02-20 Thread Detlev Offenbach
Hello,

I am having a bit of trouble using QWebPluginFactory.Plugin. I want to attach 
a MimeType object to it's mimeTypes list, but the list stays empty (s. below). 
What am I doing wrong?

Python 3.2.2 (default, Oct 23 2011, 17:46:58) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtWebKit import QWebPluginFactory
>>> p=QWebPluginFactory.Plugin()
>>> p

>>> p.mimeTypes
[]
>>> mt=QWebPluginFactory.MimeType
>>> p.mimeTypes.append(mt)
>>> p.mimeTypes
[]
>>>

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] ANN: eric 5.2.0 released

2012-02-18 Thread Detlev Offenbach
 
> > --- added a file selector to the top of the diff dialogs to
> > quickly
> > 
> > jump
> > 
> > to the diff for the selected file
> >  
> >  -- Mercurial
> >  
> > --- added interface for the Mercurial command server (as of
> > Mercurial
> > 
> > 1.9)
> > 
> > --- added code to support multiple revisions where appropriate
> > --- modified pull such, that it will try to apply an existing
> > 
> > changegroups file first (created by an hg incoming)
> > 
> > --- added support for importing patches
> > --- added support for exporting patches
> > --- added configuration option to create backup files when
> > reverting
> > 
> > changes
> > 
> > --- added support for the Mercurial bookmarks extension
> > --- added support for the Mercurial queues extension
> > --- added support for the Mercurial fetch extension
> > --- added support for the Mercurial purge extension
> > --- added support for the Mercurial gpg extension
> > --- added support for the Mercurial transplant extension
> > --- added support for the Mercurial rebase extension
> > --- enhanced the Mercurial log browser dialog
> > --- added an action to push a new named branch
> > --- added support for "hg rollback" to the Mercurial interface
> >  
> >  -- Subversion
> >  
> > --- changed code to make the subversion plug-ins compatible with
> > the
> > 
> > new
> > 
> > generation working copy meta-data format
> > 
> > - View Manager
> > 
> >  -- added an action to reset the zoom factor
> > 
> > - Web Browser
> > 
> >  -- added the "Do Not Track" feature
> >  -- added code to indicate invalid SSL certificates in the URL entry
> >  and
> > 
> > the
> > 
> > SSL info dialog
> >  
> >  -- added a dialog to show RSS feeds
> >  -- added a dialog to show some information about the current site
> >  -- added the capability to go through the history via Shift + Mouse
> >  Wheel -- added capability to zoom by a pinch gesture
> >  -- added a pause button to the web browser download
> >  -- added some more user agent strings to the web browser
> >  -- added some more search engines to the web browser
> >  -- added capability to encrypt saved passwords with a master password
> >  
> > and rearranged some configuration parameters related to security
> >  
> >  -- improved the handling of mouse XButton1 and XButton2 handling
> >  -- added support for access keys and drag & drop
> >  -- added support for search schemes ("s:" or "search:") and
> >  "about:home"
> >  -- added an interface to VirusTotal
> > 
> > - other enhancements
> > 
> >  -- added an action to launch another instantiation of eric5
> >  -- added capability to zoom by Ctrl + Mouse Wheel to various graphics
> >  
> > related windows
> >  
> >  -- added capability to zoom by a pinch gesture to various graphics
> >  related>  
> > windows
> > 
> > Regards,
> > Detlev
> > --
> > Detlev Offenbach
> > det...@die-offenbachs.de
> > ___
> > PyQt mailing listPyQt@riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Issue with QFtp

2012-02-17 Thread Detlev Offenbach
Hi,

there is an issue with QFtp. This module includes an enum QFtp.Command, that 
has a member called QFtp.None. However, if that is used it causes a syntax 
error (None is a keyword). Therefore it should be changed to QFtp.None_.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] [Eric] Installation Path Problems Python 2.7 and 3.2

2012-01-18 Thread Detlev Offenbach
Am Mittwoch, 18. Januar 2012, 17:29:39 schrieb Robert Ford:
> Hello,
> 
> Windows Vista SP2 32 bit
> Python 2.7.2
> Python 3.2.2
> eric4-4.4.20
> eric5-5.18
> PyQt-Py2.7-x86-gpl-4.9-1.exe
> PyQt-Py3.2-x86-gpl-4.9-1.exe
> 
> PYQT INSTALL MAY SET WRONG PATHS?
> 
> I am trying to install eric4 and eric 5 into respectively Python 2.7 and
> Python 3.2.
> This uses the appropriate PyQt windows binaries above
> .
> The eric mailing list have told me this is a PyQt issue.
> 
> ERIC4:
> 
> PROBLEM
> PyQt modules import correctly as per eric manual test.
> 
> I have eric4 download folder extracted to C:\Python27.
> 
> When I run "install" it starts and confirms PyQt4 is found, but then states
> "Sorry, please install QtHelp. DLL load failure"
> 
> In the same PyQt folder there are definitely QtHelp.pyd and a QtHelp4.dll
> files.
> 
> Eric 4 installation apparently cannot find them though.
> 
> SOLVED
> In the Registry the default path for PyQt4 was found to be set for Python32.
> I cleaned this out and reinstalled and eric4 now installed.
> 
> 
> ERIC5
> I again looked in the Registry and the default path is wrongly set to
> Python27 ??
> I cleaned this out and reinstalled.
> This did not work though, although I am in the Python32 folder it still
> thinks it is Python27 and  I get the following error message:
> 
> c:\Users\Robert>cd c:\python32\eric5-5.1.8
> 
> c:\Python32\eric5-5 .1 .8>install

You better use this command

c:\python32\python install.py

If you install via double click onto the install script you might pick the 
wrong interpreter version dpending on your PATH settings.

> Checking dependencies
> Sorry. you must have Python 3.1.0 or higher.
> Press enter to continue...
> An internal error occurred. Please report all the output of the program.
> including the following traceback. to eric5b...@ericide.python-projects.org.
> 
> Traceback (most recent call last):
> File "C:\Python32\eric5-5.1.8\install.py". line 1039. in 
> main(sys .argv)
> File "C:\Python32\eric5-5.1.8\install.py". line 971. in main
> doDependancyChecks()
> File "C:\Python32\eric5-5.1.8\install.py". line 709. in doDependancyChecks
> exit (5)
> File "C:\Python32\eric5-5.1.8\install.py". line 48. in exit
> input('Press enter to continue.. _')
> File "", line 0
>   ^
> SyntaxError: unexpected EOF while parsing
> 
> c:\Python32\eric5-5 .1.8>
> 
> Robert
> 
> 
> ___
> Eric mailing list
> e...@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Gesture programming in PyQt

2012-01-10 Thread Detlev Offenbach
Am Montag, 9. Januar 2012, 22:17:45 schrieb Phil Thompson:
> On Mon, 09 Jan 2012 19:11:18 +0100, Detlev Offenbach
> 
>  wrote:
> > Am Montag, 9. Januar 2012, 09:58:39 schrieb Phil Thompson:
> >> On Sun, 08 Jan 2012 18:05:52 +0100, Detlev Offenbach
> >> 
> >>  wrote:
> >> > Am Samstag, 7. Januar 2012, 18:31:16 schrieb Phil Thompson:
> >> >> On Sat, 7 Jan 2012 15:33:08 +0100, Detlev Offenbach
> >> >> 
> >> >>  wrote:
> >> >> > Hi Phil,
> >> >> > 
> >> >> > can you test my little test script on your side? I tried it
> >> >> > over
> >> >> > here
> >> >> 
> >> >> with
> >> >> 
> >> >> > Python 3.2.2, Qt 4.7.4 and latest released sip/PyQt.
> >> >> 
> >> >> What is it supposed to do?
> >> >> 
> >> >> Phil
> >> > 
> >> > I used it to get some know how in gesture programming. The custom
> >> 
> >> gesture
> >> 
> >> > should register swipes using the touchpad of e.g. a MacBook. I
> 
> couldn't
> 
> >> > get it
> >> > working because it crashed when the custome gesture recognizer is
> >> > registered.
> >> > The script itself doesn't do anything useful except printing some
> 
> info
> 
> >> > about
> >> > the gesture being handled.
> >> 
> >> So what do I have to do to test it?
> > 
> > Just start it and perform some swipes on the touchpad. As I said, for me
> > it
> > even failed starting up.
> 
> What touchpad?

E.g. the touchpad of a MacBook.

> 
> For me it starts up and displays the "Testing Gestures" text. I quit it
> with the close button.

That means, I have to check my installation. What versions did you test it 
with (Qt, PyQt4)?

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Gesture programming in PyQt

2012-01-09 Thread Detlev Offenbach
Am Montag, 9. Januar 2012, 09:58:39 schrieb Phil Thompson:
> On Sun, 08 Jan 2012 18:05:52 +0100, Detlev Offenbach
> 
>  wrote:
> > Am Samstag, 7. Januar 2012, 18:31:16 schrieb Phil Thompson:
> >> On Sat, 7 Jan 2012 15:33:08 +0100, Detlev Offenbach
> >> 
> >>  wrote:
> >> > Hi Phil,
> >> > 
> >> > can you test my little test script on your side? I tried it over
> >> > here
> >> 
> >> with
> >> 
> >> > Python 3.2.2, Qt 4.7.4 and latest released sip/PyQt.
> >> 
> >> What is it supposed to do?
> >> 
> >> Phil
> > 
> > I used it to get some know how in gesture programming. The custom
> 
> gesture
> 
> > should register swipes using the touchpad of e.g. a MacBook. I couldn't
> > get it
> > working because it crashed when the custome gesture recognizer is
> > registered.
> > The script itself doesn't do anything useful except printing some info
> > about
> > the gesture being handled.
> 
> So what do I have to do to test it?
> 

Just start it and perform some swipes on the touchpad. As I said, for me it 
even failed starting up.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Gesture programming in PyQt

2012-01-08 Thread Detlev Offenbach
Am Samstag, 7. Januar 2012, 18:31:16 schrieb Phil Thompson:
> On Sat, 7 Jan 2012 15:33:08 +0100, Detlev Offenbach
> 
>  wrote:
> > Hi Phil,
> > 
> > can you test my little test script on your side? I tried it over here
> 
> with
> 
> > Python 3.2.2, Qt 4.7.4 and latest released sip/PyQt.
> 
> What is it supposed to do?
> 
> Phil

I used it to get some know how in gesture programming. The custom gesture 
should register swipes using the touchpad of e.g. a MacBook. I couldn't get it 
working because it crashed when the custome gesture recognizer is registered. 
The script itself doesn't do anything useful except printing some info about 
the gesture being handled.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Gesture programming in PyQt

2012-01-05 Thread Detlev Offenbach

Am 04.01.2012 um 20:04 schrieb Phil Thompson:

> On Wed, 4 Jan 2012 19:46:45 +0100, Detlev Offenbach
>  wrote:
>> Hello,
>> 
>> does anybody have experience in gesture programming with PyQt? I am
> trying
>> to program a custom gesture recognizer, but registering it with
>> QGestureRecognizer.registerRecognizer(…) crashes the script. Here is the
>> excerpt of the code that is executing the above function.
>> 
>> --CODE--
>> class E5SwipeGestureRecognizer(QGestureRecognizer):
>>   __type = 0
>>   __instance = None
>> 
>>   def __init__(self):
>>   super().__init__()
>> 
>>   @classmethod
>>   def gestureType(cls):
>>   if cls.__instance is None:
>>   cls.__instance = E5SwipeGestureRecognizer()
>>   cls.__type =
>>   QGestureRecognizer.registerRecognizer(cls.__instance)   # this 
>> segfaults the app
>>   return cls.__type
>> --END CODE--
> 
> Hmm - the /Transfer/ annotation on QGestureRecognizer.create() looks
> wrong. Try changing it to /Factory/.


That might be a second issue. So far my code didn't even get there. The call to 
register my gesture recognizer already crashes the application (see above). 
That is long before the recognizer is asked to create a new gesture object.

Regards
Detlev

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Gesture programming in PyQt

2012-01-04 Thread Detlev Offenbach
Hello,

does anybody have experience in gesture programming with PyQt? I am trying to 
program a custom gesture recognizer, but registering it with 
QGestureRecognizer.registerRecognizer(…) crashes the script. Here is the 
excerpt of the code that is executing the above function.

--CODE--
class E5SwipeGestureRecognizer(QGestureRecognizer):
   __type = 0
   __instance = None

   def __init__(self):
   super().__init__()

   @classmethod
   def gestureType(cls):
   if cls.__instance is None:
   cls.__instance = E5SwipeGestureRecognizer()
   cls.__type = QGestureRecognizer.registerRecognizer(cls.__instance)
   return cls.__type
--END CODE--


Regards,
Detlev


Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach

Am 28.12.2011 um 19:34 schrieb Phil Thompson:

> On Wed, 28 Dec 2011 15:29:00 +0100, Detlev Offenbach
>  wrote:
>> Hi,
>> 
>> do you have a short recipe on how to get DBus on Mac?
> 
> Install MacPorts.
> 
> Install dbus...
> 
> sudo port install dbus
> 
> When you run Qt's configure pass it the -dbus-linked flag.
> 

Does this work with the .dmg installer as well? Does this recognize the 
installed DBus?

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach
Hi,

do you have a short recipe on how to get DBus on Mac?

Detlev

Am 28.12.2011 um 13:55 schrieb Phil Thompson:

> On Wed, 28 Dec 2011 13:41:08 +0100, Detlev Offenbach
>  wrote:
>> Hello,
>> 
>> I tried using Qt 4.8.0 on Mac as well. Trying to start Qt Designer
>> resulted in a crash (Seg Fault). According to the Qt bug tracker their
> is
>> an issue related to dbus not being present on Mac. I guess, that one has
> to
>> install dubs (don't know yet how) or continue to use Qt 4.7.4. The last
>> solution did the trick for me and made eric4/5 work again.
> 
> I have DBus installed on Mac so that might explain why I haven't seen a
> problem.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach
Hello,

I tried using Qt 4.8.0 on Mac as well. Trying to start Qt Designer resulted in 
a crash (Seg Fault). According to the Qt bug tracker their is an issue related 
to dbus not being present on Mac. I guess, that one has to install dubs (don't 
know yet how) or continue to use Qt 4.7.4. The last solution did the trick for 
me and made eric4/5 work again.

Regards,
Detlev

Am 27.12.2011 um 16:50 schrieb zw g:

> And, my previous compiled Eric4.4.19 can not fired up either which was 
> running perfectly well under PyQt4.8.6.
> 
> As a reference, here is the error info:
> 
> 
> 
> 
> 2011-12-27, 23:15:00
> 
> : 
> QsciLexerBash(QObject parent=None): argument 1 has unexpected type 'Terminal'
> 
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eric4/eric4.py",
>  line 294, in 
> main()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eric4/eric4.py",
>  line 291, in main
> raise err
> 
> 
> Version Numbers:
>   Python 2.7.2
>   Qt 4.8.0
>   PyQt4 4.9
>   sip 4.13.1
>   QScintilla 2.6
>   eric4 4.4.19 (r4205)
> 
> Platform: darwin
> 2.7.2 (default, Nov 22 2011, 23:21:04) 
> [GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.10.1)]
> 
> 
> 
> 
> 
> 
> 
> On Tue, Dec 27, 2011 at 11:45 PM, zw g  wrote:
> Oh, i forgot to mention that, the last information leave in the Terminal.app 
> is:
> 
> Segmentation fault: 11
> 
> Hope it helps.
> 
> 
> 
> On Tue, Dec 27, 2011 at 11:44 PM, zw g  wrote:
> Dear List,
> 
> 
> I need help.
> 
> My app behaved perfect well under Python2.7.2 + PyQt4.8.6 + SIP 4.13 + Mac OS 
> X 10.7.2.
> 
> After the new PyQt4.9 released, i compiled SIP4.13.1 and PyQt4.9 in the first 
> time. (I like to be latest state!)
> Now everything is a mess.
> 
> Every time i fired up my app in the Terminal.app like this:
> 
> $python my_app.py
> 
> I got the crash window popped up, i copied the content of the crash 
> information and attached it in this mail.
> Hope someone could help.
> 
> Thanks.
> 
> Gui
> 
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt and Qt 4.8

2011-12-17 Thread Detlev Offenbach
Hello,

Is PyQt ready for use with recently released Qt 4.8?

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] ANN: eric 4.4.19 released

2011-12-04 Thread Detlev Offenbach
Oops, that should not happen. I just uploaded a new package with a corrected 
install script.

Detlev

Am Sonntag, 4. Dezember 2011, 23:05:36 schrieb zw g:
> Bad luck.
> 
> 
> HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ ll
> total 264
> -rw-r--r--   1 zhenweigui  staff  32856 Dec  4 20:04 LICENSE.GPL3
> -rw-r--r--   1 zhenweigui  staff  10057 Dec  4 20:04 README
> -rw-r--r--   1 zhenweigui  staff833 Dec  4 20:04 README-i18n.txt
> -rw-r--r--   1 zhenweigui  staff   1077 Dec  4 20:04 THANKS
> -rw-r--r--   1 zhenweigui  staff  30449 Dec  4 20:04 changelog
> drwxr-xr-x  84 zhenweigui  staff   2856 Dec  4 20:04 eric
> -rw-r--r--   1 zhenweigui  staff  32403 Dec  4 20:04 install.py
> -rw-r--r--   1 zhenweigui  staff   4285 Dec  4 20:04 patch_modpython.py
> -rw-r--r--   1 zhenweigui  staff   4091 Dec  4 20:04 uninstall.py
> 
> HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$ sudo python install.py
> Checking dependencies
> Python Version: 2.7.2
> Found PyQt4
> Found QtHelp
> Found QScintilla2
> Qt Version: 4.7.4
> PyQt Version:  4.8.6
> QScintilla Version:  2.6
> All dependencies ok.
> 
> Compiling user interface files...
> 
> Compiling source files...
> 
> Installing eric4 ...
> An internal error occured.  Please report all the output of the program,
> including the following traceback, to
> eric4-b...@eric-ide.python-projects.org.
> 
> Traceback (most recent call last):
>   File "install.py", line 939, in 
> main(sys.argv)
>   File "install.py", line 894, in main
> installEric()
>   File "install.py", line 441, in installEric
> createMacAppBundle(cfg['ericDir'])
>   File "install.py", line 483, in createMacAppBundle
> shutil.copy(os.path.join(sourceDir, "pixmaps", "eric_2.icns"),
> NameError: global name 'sourceDir' is not defined
> 
> HandsomeGui-on-MBP:eric4-4.4.19 zhenweigui$
> 
> 
> Hope this helps.
> 
> 
> Gui
> 
> On Sun, Dec 4, 2011 at 9:42 PM, detlev  wrote:
> > Hi,
> > 
> > I just uploaded eric 4.4.19. It is a maintenance release fixing some
> > bugs. It
> > is available via the eric web site.
> > 
> > http://eric-ide.python-projects.org/index.html
> > 
> > Regards,
> > Detlev
> > --
> > Detlev Offenbach
> > det...@die-offenbachs.de
> > ___
> > PyQt mailing listPyQt@riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Translation updates needed for eric4 4.5

2011-12-04 Thread Detlev Offenbach
Hello all,

the current sources of the eric4 4.5 line of development (i.e. trunk) need 
some translation updates. I am intending to release 4.5.0 beginning of 2012. 
Whoever wants to help please get the sources and update the language in 
question using Qt Linguist. Once done, pease send the resulting .ts file back 
to me.

Here are the current statistics.

cs  7176 of 7441,  96.4%
de  7441 of 7441, 100%
es  7441 of 7441, 100%
fr  7254 of 7441,  97.5%
it  7320 of 7441,  98.4%
ru  7207 of 7441,  96.8%
tr  5288 of 7441,  71%
zh_CN.GB23126308 of 7441,  84.8%

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Issue on Mac OS X showing application name

2011-11-05 Thread Detlev Offenbach
Hello,

I am starting eric5 on Mac OS X via a shell script contained in a Mac 
application tree. The plist file and all is working ok. However, the main menu 
bar always shows 'Python' instead of 'eric5' as the application name (and the 
same for the About menu entry, which is 'About Python' instead of 'About 
eric5'. What am I coin wrong?


Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Issue with pyqtSignal

2011-11-05 Thread Detlev Offenbach

Am 05.11.2011 um 14:48 schrieb Phil Thompson:

> On Sat, 5 Nov 2011 10:05:45 +0100, Detlev Offenbach
>  wrote:
>> Am 04.11.2011 um 18:04 schrieb Phil Thompson:
>> 
>>> On Fri, 4 Nov 2011 11:23:07 +0100, Detlev Offenbach
>>>  wrote:
>>>> Hello,
>>>> 
>>>> I am defining a signal in one of my classes like this.
>>>> 
>>>>   tabRelocateRequested = pyqtSignal(int, int, int)
>>>> 
>>>> When this signal is emitted, the first parameter is bigger than an int
>>>> (e.g. by using id()). This causes the signal receiver to get a first
>>>> parameter, that is different to the value given in the emit call. How
>>> can I
>>>> correct my code (code i within eric4/5).
>>> 
>>> Use long instead of int?
>> 
>> Python3 (forgot to mention that) doesn't know about long anymore. Maybe
>> the pyqtSignal code should work with long instead of int?
> 
> The current behaviour is intentional as I considered this to be the least
> surprising when using a signal defined in Python in C++ code. Thinking
> about it now this is probably a very minor use case.
> 
> At the moment a Python v2 int (actually implemented as a C++ long), a
> Python v2 long and a Python v3 int are all mapped to a C++ int.
> 
> Maybe a better mapping should be Python v2 int to a C++ long, and a Python
> v2 long and a Python v3 int to a C++ long long.

I would opt for that solution.

> However it would still be
> possible to lose data for very big values - the only way to avoid that
> would be to pass the Python object itself which would make it impossible to
> reuse the class defining the signal from C++ code.
> 
> As a work around you can always specify the C++ type as a string, eg.
> "long long".

In the mean time I implemented a workaround by converting to a str and in the 
receiver back to int. This preserves the value in Python3.

I found another similar issue with QByteArray.number().

> 
> Thoughts?
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Issue with pyqtSignal

2011-11-05 Thread Detlev Offenbach

Am 04.11.2011 um 18:04 schrieb Phil Thompson:

> On Fri, 4 Nov 2011 11:23:07 +0100, Detlev Offenbach
>  wrote:
>> Hello,
>> 
>> I am defining a signal in one of my classes like this.
>> 
>>tabRelocateRequested = pyqtSignal(int, int, int)
>> 
>> When this signal is emitted, the first parameter is bigger than an int
>> (e.g. by using id()). This causes the signal receiver to get a first
>> parameter, that is different to the value given in the emit call. How
> can I
>> correct my code (code i within eric4/5).
> 
> Use long instead of int?

Python3 (forgot to mention that) doesn't know about long anymore. Maybe the 
pyqtSignal code should work with long instead of int?

Detlev

> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Issue with pyqtSignal

2011-11-04 Thread Detlev Offenbach
Hello,

I am defining a signal in one of my classes like this.

tabRelocateRequested = pyqtSignal(int, int, int)

When this signal is emitted, the first parameter is bigger than an int (e.g. by 
using id()). This causes the signal receiver to get a first parameter, that is 
different to the value given in the emit call. How can I correct my code (code 
i within eric4/5).

Regards,
Detlev

Detlev Offenbach
det...@die-offenbachs.de



___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] ANN: eric 4.4.18 released

2011-10-02 Thread Detlev Offenbach
Hi,

I just uploaded eric 4.4.18. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] ANN: eric 5.1.6 released

2011-10-02 Thread Detlev Offenbach
Hi,

I just uploaded eric 5.1.6. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] ANN: eric 4.4.18 released

2011-10-02 Thread Detlev Offenbach
Hi,

I just uploaded eric 4.4.x. It is a maintenance release fixing some bugs. It 
is available via the eric web site.

http://eric-ide.python-projects.org/index.html

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Professional IDE

2011-09-07 Thread Detlev Offenbach
Am Mittwoch, 7. September 2011, 15:25:36 schrieb Raoul Snyman:
> On Wed, 07 Sep 2011 16:20:11 +0300, ad...@mbnoimi.net wrote:
> > The only missing thing in eric is good auto completion just like wing or
> > eclipse.
> 
> If you have the API files loaded, and you select the "document and API
> files" option, Eric's autocompletion is decent enough for general PyQt4
> development. It would be nice if it could index the files in your project
> too, but I can handle it as it is.

eric already does this since long ago. Just install the "eric assistant" plug-
in via the respective dialogs and make it the autocompletion and calltips 
provider (via the config dialog).

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Small problem storing a list in QSettings

2011-09-04 Thread Detlev Offenbach
Am Sonntag, 4. September 2011, 17:25:56 schrieb Andreas Pakulat:
> On 02.09.11 16:12:49, Phil Thompson wrote:
> > On Thu, 1 Sep 2011 23:04:06 +0200, Andreas Pakulat  wrote:
> > > Hi,
> > > 
> > > I'm facing a small problem with QSettings and storing a python list
> > > in
> > > it. It seems that I can't store an empty list properly into a
> > > QSettings
> > > object, its always converted to an invalid QVariant somewhere along
> > > the
> > > way. The attached sample script shows this, all is well until I
> > > create a new QSettings object from the file and try to get the list
> > > again. The printout of the ini file also shows this.
> > > 
> > > Specifying the type for the value() call does not work, that raises
> > > an
> > > error that the conversion of the QVariant does not work due to
> > > different typeids (0 vs.  256).
> > > 
> > > Am I doing something wrong or do I really need to serialize the list
> > > manually into a string? (Can't even use QStringList here since thats
> > > not available with the v2 API).
> > > 
> > > sip: 4.12.1
> > > PyQt: 4.8.3
> > > Qt: 4.7.3
> > 
> > The problem with specifying an explicit type should be fixed in
> > tonight's
> > snapshot.
> 
> Ok, but what about the @Invalid being stored if I give
> QSettings.setValue an empty list as value? Is that expected?

In eric5 I had to deal with that issue as well. I solved it by writing a 
utility method like that.

def toList(value):
"""
Module function to convert a value to a list.

@param value value to be converted
    @return converted data
"""
if value is None:
return []
elif not isinstance(value, list):
return [value]
else:
return value

At that time I didn't find a better solution and it works well for quite some 
time now.

Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Help needed for eric4/5

2011-09-02 Thread Detlev Offenbach

Hello,

as all of you know eric4/5 is an IDE for Python and Ruby. The Ruby debugger
backend does not work for ruby 1.9 anymore. Unfortunately I am not very 
good

in ruby. I need help in fixing this issue. Volunteers please contact me.

Regards,
Detlev
--
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QHostAddress is missing a method

2011-07-28 Thread Detlev Offenbach
On Mittwoch, 27. Juli 2011, Phil Thompson wrote:
> On Wed, 27 Jul 2011 18:57:53 +0200, Detlev Offenbach
> 
>  wrote:
> > On Dienstag, 26. Juli 2011, Phil Thompson wrote:
> >> On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach
> >> 
> >>  wrote:
> >> > Hello,
> >> > 
> >> > I think the QHostAddress mappings are missing the method
> >> 
> >> "toIPv6Address".
> >> 
> >> > If I
> >> > am right, would it be possible to add it?
> >> 
> >> What's the most useful way to represent it? Would anything be better
> 
> than
> 
> >> the obvious 16 byte string?
> >> 
> >> Phil
> >> ___
> >> PyQt mailing listPyQt@riverbankcomputing.com
> >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> > 
> > The Qt docs say:
> > 
> > Returns the IPv6 address as a Q_IPV6ADDR structure. The structure
> 
> consists
> 
> > of
> > 16 unsigned characters.
> > 
> > So in Python it should return a list (or tuple if it should be
> 
> immutable)
> 
> > of
> > 16 integers.
> 
> Are you suggesting a list because that is the closest equivalent in
> Python? If so I would disagree.
> 
> Or are you suggesting a list because of how you want to use the value?

I should have thought a second longer. A 16 int tuple would be best (as you 
already implemented).

Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


  1   2   3   4   5   6   7   8   9   10   >