Re: [PyQt] PyQt5 module not found

2013-07-05 Thread Shriramana Sharma
python3-jinja2 and python3-pygments with py3 sphinx requires. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-04 Thread Shriramana Sharma
oppose it. There is actually a Reply-To-List field that can be optionally added to mails for this purpose but few mail clients (only KMail and Thunderbird to my knowledge) actually support it. GMail certainly doesn't! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

[PyQt] PyQt5 module not found

2013-06-26 Thread Shriramana Sharma
-I/usr/include/qt5/QtCore -I. -o rcc.o rcc.cpp g++ -m64 -Wl,-O1 -o pyrcc5 main.o rcc.o -lQt5Xml -L/usr/lib/x86_64-linux-gnu -lQt5Core -lpthread make[1]: Leaving directory `/mnt/sda8/samjnaa/sr/PyQt-gpl-5.0/pyrcc' ... which seems to be OK. Help please! -- Shriramana Sharma ஶ்ரீரமணஶர்மா

Re: [PyQt] PyQt5 module not found

2013-06-26 Thread Shriramana Sharma
@Scott: Do you perhaps have some PyQt5 packages for Raring in a PPA somewhere? Thanks! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
but no similar file in the python3-sip-dev package. Is this then a packaging error and should I report it as such? (Even the upstream Debian Sid packages have the same situation.) Or is Sip the same for both Py2 and Py3 in which case I should install python-sip-dev even for Py3? -- Shriramana

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
for this. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
packaging. Thanks again! -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
-common. -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Shortening multiple widget initializations to one line

2012-12-10 Thread Shriramana Sharma
the line to try to get the attribute instead of set it. Adding parantheses around the list corrected it. I forgot that only when there is an enclosing parantheses or bracket (or with explicit \ like in C) will multi-line commands be recognized. -- Shriramana Sharma

[PyQt] Shortening multiple widget initializations to one line

2012-12-09 Thread Shriramana Sharma
! -- Shriramana Sharma ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Curious behaviour of slider/spin when controlled by keyboard

2012-10-01 Thread Shriramana Sharma
in the minimal test case which however doesn't have the prohibitive problem). Besides, I'm using Py3 (see the first line of the program) which automatically produces a float out of integer division. And despite that I tried your suggestion and it makes no difference. -- Shriramana Sharma

[PyQt] Curious behaviour of slider/spin when controlled by keyboard

2012-09-30 Thread Shriramana Sharma
! -- Shriramana Sharma #! /usr/bin/env python3 from PyQt4 . QtCore import * from PyQt4 . QtGui import * from math import sqrt # float-string formatting function def str_three_decimals ( a ) : return str ( int ( a * 1000 + 0.5 ) / 1000 ) # mathematical function def quadraticroots ( a, b, c

Re: [PyQt] QPoint not automatically cast to QPointF

2012-09-20 Thread Shriramana Sharma
my Android phone On Sep 20, 2012 2:19 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 20 Sep 2012 07:34:10 +0530, Shriramana Sharma samj...@gmail.com wrote: In my recent work with Beziers I ran across this. A QPoint is *not* automatically converted into a QPointF in Python/PyQt

Re: [PyQt] Help with segfault in PyQt program

2012-09-17 Thread Shriramana Sharma
(2.0, 2.0) 2*QPointF(1,1) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for *: 'int' and 'QPointF' Why is this? Thanks. -- Shriramana Sharma ___ PyQt mailing listPyQt

[PyQt] Help with segfault in PyQt program

2012-09-16 Thread Shriramana Sharma
only wrote the minimal thing in C++ so far.) Thanks! -- Shriramana Sharma #! /usr/bin/env python from PyQt4 . QtCore import * from PyQt4 . QtGui import * class BezierWidget ( QWidget ) : def __init__ ( self, parent = None ) : super ( BezierWidget, self ) . __init__ ( parent ) self

[PyQt] Problem with resizing rubberband

2009-05-08 Thread Shriramana Sharma
Hello. I previously reported a problem with drawing a rubberband and a workaround was provided. I now find that I am unable to resize a rubberband using a QRect which has been modified using setLeft etc. Please see the attached files. The C++ version works whereas the Python version does not. //

[PyQt] Bug: PyQt causes Python to abnormally exit upon creating QWidget without a QApplication

2009-04-09 Thread Shriramana Sharma
Hello. See the following: $ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or license for more information. from PyQt4.QtGui import * w = QWidget () QWidget: Must construct a QApplication before a QPaintDevice

[PyQt] Possible bug - global coordinates work but widget coordinates do not

2009-04-08 Thread Shriramana Sharma
see why. Please look into the matter. Thanks for PyQt. Shriramana Sharma. References: http://www.qtcentre.org/forum/f-qt-programming-2/t-qrubberband-doesnt-show-x11linux-16549.html http://www.qtcentre.org/forum/f-qt-programming-2/t-unable-to-properly-implement-a-qrubberband-20109.html // g

Re: [PyQt] Possible bug - global coordinates work but widget coordinates do not

2009-04-08 Thread Shriramana Sharma
Hello. Didn't anyone notice this report? I now confirm that this bug exists even in PyQt 4.4.4 / Qt 4.5.0 on Kubuntu Jaunty. Shriramana Sharma. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo

Re: [PyQt] strange extra spacing between checkboxes

2007-11-19 Thread Shriramana Sharma
is changed, no? It also means that the minimum size of the widget becomes fixed (10 * (height + (2 * margin))). That's not a problem, is it? Or could it be? Shriramana Sharma. ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] strange extra spacing between checkboxes

2007-11-18 Thread Shriramana Sharma
items increases when items are added and how I can stop that from happening. The spacing between the list items must be constant whether there are items or not. Thank you list. Shriramana Sharma. #! /usr/bin/env python # Copyright Shriramana Sharma 2007 # This program may be used under the GNU

[PyQt] strange extra spacing between checkboxes

2007-11-12 Thread Shriramana Sharma
items must be constant whether there are items or not. Thank you list. Shriramana Sharma. #! /usr/bin/env python # Copyright Shriramana Sharma 2007 # This program may be used under the GNU General Public License v 2. # No warranty is provided for this program. import sys from PyQt4 . QtCore

[PyQt] Examples for uic module in PyQt

2007-04-13 Thread Shriramana Sharma
to improve the PyQt uic module documentation. Thank you. Shriramana Sharma. ___ PyQt mailing list[EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
this is happening and should it happen like this. If not, can it be fixed? Thanks. Shriramana Sharma. ___ PyQt mailing list[EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
written is C/C++ must have had to face this? Shriramana Sharma. ___ PyQt mailing list[EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] A Qt error pushed me out of Python

2007-04-13 Thread Shriramana Sharma
at the beginning. I don't see any changes obtained by using 4.2 in this matter. Shriramana Sharma. ___ PyQt mailing list[EMAIL PROTECTED] http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Questions about the PyQt examples

2007-03-18 Thread Shriramana Sharma
, is there any performance difference between from PyQt4 import QtCore, QtGui and from PyQt4.QtCore import * from PyQt4.QtGui import * Thanks for PyQt and your help. Shriramana Sharma. ___ PyQt mailing listPyQt@riverbankcomputing.com http

[PyQt] Some bugs in the PyQt documentation and examples

2007-03-18 Thread Shriramana Sharma
change it to range(3). 3) In the tutorial #08, in line 39 it should be LCDRange.setRange and not LCDRange::setRange since :: is only in C++. This is a nitty-gritty since the string is not in syntax but only user visible but still for the sake of perfection. Thanks for PyQt. Shriramana Sharma