:28PM +, Demetrius Cassidy wrote:
Is Python also compiled with VS2010?
Honestly, I can't tell - I got that installation and was told
to use it as it is. My guess is that the Python version (2.7)
was simply a binary download, gotten from somewhere I have no
ideas about. Is there a way
I think it would help if you could provide a working example of this bug.
Like a sip file which reproduces this behavior.
On Mon, Jul 11, 2011 at 7:12 AM, Tony Lynch tly...@xype.com wrote:
Hi Phil
I’m using SIP to wrap a large C++ library and am very impressed with the
results so far –
You need to call QToolButton's __init__() method.
class Indicator(QtGui.QToolButton, Model):
def __init__(self)
super(Indicator, self).__init__()
On Fri, Jul 8, 2011 at 1:49 PM, Lic. José M. Rodriguez Bacallao
jmr...@gmail.com wrote:
hi folks, I am creating a composite widget with
I have a C++ class which is declared with pure virtual methods, but if I
derive from this class in python and implement the pure virtual methods, I
get an exception:
TypeError: pyvoip.opal.OpalPCSSEndPoint cannot be instantiated or
sub-classed
My python class is declared as following:
class
Actually I made a small mistake, OpalLocalEndPoint has a GetMediaFormats
implementation, but the issue remains.
class OpalLocalEndPoint : OpalEndPoint
{
virtual OpalMediaFormatList GetMediaFormats() const;
};
On Sat, Jul 2, 2011 at 5:39 PM, Demetrius Cassidy dcassid...@gmail.comwrote:
I have
CCing mailing list
On Sat, Jul 2, 2011 at 10:50 PM, Demetrius Cassidy dcassid...@gmail.comwrote:
On Sat, Jul 2, 2011 at 10:45 PM, Phil Thompson
p...@riverbankcomputing.com wrote:
On Sat, 2 Jul 2011 17:39:14 +, Demetrius Cassidy
dcassid...@gmail.com
wrote:
I have a C++ class which
I think I answered my own question after re-reading the annotation docs.
Thanks.
On Sat, Jul 2, 2011 at 10:52 PM, Demetrius Cassidy dcassid...@gmail.comwrote:
CCing mailing list
On Sat, Jul 2, 2011 at 10:50 PM, Demetrius Cassidy
dcassid...@gmail.comwrote:
On Sat, Jul 2, 2011 at 10:45 PM
On WinXP Pro and Python 2.7.1 this is what I get:
class CX(QtCore.QObject):
... asig = QtCore.pyqtSignal()
... def __init__(self):
... QtCore.QObject.__init__(self)
... print self.asig
...
k = CX()
bound signal asig of CX object at 0x00B91420
Using latest stable SIP and PyQt4 with Qt 4.7.2
On
Have you tried using py2exe? We have an application written in python with
many dependencies, and without py2exe we would have to create an installer
to manually install python and all the dependencies...And we initially did
that, but that was far more problematic in the end than deploying an .exe
but we never receive a destroyed signal.
The only reason I need this signal or event is to do some teardown code for
some callbacks to avoid getting this c++ error elsewhere.
--
*From:* Demetrius Cassidy dcassid...@gmail.com
*To:* RuiDC ru...@yahoo.com
*Sent:* Thu
points I raised in my last email are still
valid. IMHO using destroyed() in python is the wrong approach.
On Thu, Apr 7, 2011 at 11:02 AM, Demetrius Cassidy dcassid...@gmail.comwrote:
I truly believe you are approaching this from the wrong angle. If you need
to know when your QDialog is going away
._stateReleased)
self._stateMachine.addState(self._stateProceeding)
self._stateMachine.setGlobalRestorePolicy(QStateMachine.DontRestoreProperties)
self._stateMachine.setInitialState(self._stateReleased)
self._stateMachine.start()
Demetrius Cassidy wrote:
David Boddie
I am trying to animate a QTableView moving off-screen from center (0,0),
which is replaced by a QGroupBox which slides to 0,0 from off-screen inside
my QStackedWidget.
I am using a QStateMachine which contains two states, and basically when the
state 'stateProceeding' is entered, only the
With a simple class definition like the following, it seems that SIP tries
to wrap SIPTransaction::States using a sip generated class, but of course
that class is not created for ABCs. I am using the latest SIP snapshot, SIP
4.12.2-snapshot-ecb3e795382e, to test this code.
class SIPTransaction
Ah yes spaces. The bane of all evil - I forgot about that, thanks.
On 9/5/2010 10:05 PM, Robin M Baur wrote:
On Sun, Sep 5, 2010 at 19:17, Demetrius Cassidydcassid...@mass.rr.com wrote:
Using PyQt-win-gpl-4.7.5 with sip 4.11 under Python7, configure fails with a
syntax error executing sip:
Having a hard time figuring something that should be simple.
If I do Qt.MatchWildcard Qt.MatchContains, it returns 1, but if I do
Qt.MatchContains anything else (other than Qt.MatchContains itself) it
returns 0 as expected. What am I doing wrong, and how am I supposed to
compare my flags to a
Using PyQt-win-gpl-4.7.5 with sip 4.11 under Python7, configure fails with a
syntax error executing sip:
C:\Documents and Settings\dcassidy\My
Documents\Downloads\PyQt-win-gpl-4.7.5\PyQ
t-win-gpl-4.7.5python configure.py --confirm-license
Determining the layout of your Qt installation...
This is
I can confirm this also happens with the latest 4.7.5-f64f0e41c36c snapshot.
Sounds like a PyQt bug, though I have not looked at this other than testing
the code below.
Detlev Offenbach wrote:
Hi,
I am observing some strange behavior on Windows systems with latest
installer.
Executing
I am not sure why 'string' is no longer allowed in pyqtSignal. I tried using
the latest 4.7.5 snapshot, but this line below throws a type error:
pyqtSignal('string', 'string')
This was working fine as of 4.7.2 - any ideas?
--
View this message in context:
as a pyqtSignal() type argument type
But these work:
pyqtSignal(str)
unbound signal
pyqtSignal(list)
unbound signal
I am not sure if the above was working due to a bug that was fixed, or if
this change was intentional?
Phil Thompson-5 wrote:
On Fri, 30 Jul 2010 13:54:06 -0700 (PDT), Demetrius
There was a rogue enum in my sip file! I removed Reusability from
PIPSocket.sip and it works as intended now.
Thanks Phil.
Phil Thompson-5 wrote:
On Fri, 2 Jul 2010 06:49:59 -0700 (PDT), Demetrius Cassidy
dcassid...@mass.rr.com wrote:
Sorry Phil - corrected inheritance tree:
PUDPSocket
inheritance bug when wrapped:
Phil Thompson-5 wrote:
On Thu, 1 Jul 2010 17:53:23 -0700 (PDT), Demetrius Cassidy
dcassid...@mass.rr.com wrote:
Phil,
It's not code specific to that class. It's due to the deep inheritance
tree.
You should be able to run my test code and get the same results
2010 10:27:55 -0700 (PDT), Demetrius Cassidy
dcassid...@mass.rr.com wrote:
Basically I have a Listen() function in a derived class, that is also in
the
base and ABC. For some reason sip ends up wrapping the same function
twice
(it
has a body in the ABC), even though it's a virtual function
Phil - have you seen this yet? Any comments?
Demetrius Cassidy wrote:
Basically I have a Listen() function in a derived class, that is also in
the
base and ABC. For some reason sip ends up wrapping the same function twice
(it
has a body in the ABC), even though it's a virtual function
this function out fixes this problem
protected:
/*This function calls os_socket() with the correct parameters for the
socket protocol type.
*/
virtual PBoolean OpenSocket() = 0;
};
--
Regards,
-Demetrius Cassidy
--
View this message in context:
http
: 3 unresolved externals
NMAKE : fatal error U1077: 'c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\link.EXE' : return code '0x460'
Stop.
Demetrius Cassidy wrote:
I found out I need to include winmm.lib, but I can't figure out how to
force sip to include this. I tried adding /LIBPATH:C
Found the problem...winmm library was compiled with ANSI Character set, but
sip forces Unicode character set. I had to re-compile my sip wrapped with
ANSI character set instead.
Demetrius Cassidy wrote:
Still need help with this =(
I've tried adding this to my sip file
I am not sure what do I need to do to include the windows library into sip,
so it links correctly. I am trying to use PlaySoundW and Beep which are
defined in MMSystem.h in a class called PSound. It compiles fine in VC9.0,
but gives me linker errors when I wrap it with sip.
Generating Code...
/LIBPATH:C:\Program Files\Microsoft
SDKs\Windows\v6.0A\Lib /LIBPATH:C:\iPhoneDev\h323lib\sip\qpy\QtCore\release
/LIBPATH:C:\Python26\libs qpycore.lib ptlib.lib winmm.lib python26.lib
Demetrius Cassidy wrote:
I am not sure what do I need to do to include the windows library into
sip, so
I am not sure if this is the intended behavior, but if I subclass a QWidget
instance, and then try to connect to one of those signals in my subclass, I
get a TypeError:
class MyLabel(QtGui.QLabel):
... def __init__(self):
... self.linkActivated.connect(self._lnkActivated)
...
the min and max size for
each widget, so I'd probably look at that.
--
Regards,
-Demetrius Cassidy
starglider develop starglider@gmail.com
mailto:starglider@gmail.com wrote:
=
Hello,
I'm a newby and I have a question:
how can I limit
asking the QSqlTableModel for the row. It doesn't hurt to make a
1 line code change to test it out. I use QComboBox.currentIndex in my
app, though I have no need to change the model in QComboBox.
Andreas Pakulat wrote:
On 26.01.10 17:41:40, Demetrius Cassidy wrote:
I don't think you need
It's very likely that PyQt 4.4.4 uses some deprecated syntax that was
removed in SIP 4.8. Are you not able to build using the latest PyQt4
release?
Darryl Wallace wrote:
Hello,
I am trying to build SIP v4.7.9 with VS2008 Express Edition and Python
2.5.4 via the Visual Studio 2008 Command
How about selecting index 0 once the combobox is initialized with the
database data? It sounds to me that it has no valid index when first
initialized, and if you try to programmatically select the first index,
it's returning an invalid one. You don't need to generate a signal, just
use
it to continue. I haven't had a chance to fully
build it yet.
Thanks,
Darryl
On Tue, Jan 26, 2010 at 4:54 PM, Demetrius Cassidy
dcassid...@mass.rr.com mailto:dcassid...@mass.rr.com wrote:
It's very likely that PyQt 4.4.4 uses some deprecated syntax that
was removed in SIP 4.8
- it returns -1 if theres no selected index (which there won't be when
you first set the model until you manually or programatically select one)
http://doc.trolltech.com/4.6/qcombobox.html#currentIndex-prop
Claudio Felix wrote:
2010/1/26 Demetrius Cassidy dcassid...@mass.rr.com:
How about
I don't remember ever seeing PyQt4 compiled with MSVC. Compile from
source using visual studio's nmake; afterall, you are already compiling
Qwt so it should not be much different.
Romi Agar wrote:
Hi!
Where could I find the previous PyQt installation binaries (the ones,
that were built with
Er, you could compile it from source. But afaik, 2.6.4 is the current
python version, yes? PyQt4 should also be already compiled for Python 2.6
Chris Bergstresser wrote:
Hi all --
I have PyQt installed on a Windows development machine here, and
I'm trying to install it on another Windows
Bajo wrote:
On Mon, 2010-01-11 at 21:54 -0500, Demetrius Cassidy wrote:
You probably forgot to include the sqlite3.dll with your redist package.
Alternatively, you can try to use py2exe instead of cx_Freeze. It works
pretty well for me and is good at picking up dependencies.
AFAIK
I think .text() in Python 3.1 with PyQt4 is returning a python 'str'
object, instead of a QString. Try and do type(self.ui.txtText.text())
and see what it returns.
Richard Parker wrote:
I have the following statement in an application that runs fine with
Python 2.6 (and PyQt):
text
-
- Original Message -
From: Demetrius Cassidy dcassid...@mass.rr.com
To: Richard Parker r.richardpar...@comcast.net
Cc: PYQT pyqt@riverbankcomputing.com
Sent: Tuesday, January 12, 2010 2:49:41 PM GMT -08:00 US/Canada Pacific
Subject: Re: [PyQt] Different Behavior between Python 2.6 and Python
Stupid thunderbird messed up the formatting. use int('12345') to conver
a string to integer. and .upper() to conver to uppercase.
Demetrius Cassidy wrote:
*int(**self.ui.txtNumber.text()) *
str('abcdefg').upper()
Richard Parker wrote:
Demetrius,
I think you are right, but how can I achieve
You probably forgot to include the sqlite3.dll with your redist package.
Alternatively, you can try to use py2exe instead of cx_Freeze. It works
pretty well for me and is good at picking up dependencies.
Claudio Felix wrote:
Hello everyone,
I've been developing a PyQT database app which uses
You need to scan for a specific running process. I used the wmi module
for this in my app:
http://timgolden.me.uk/python/wmi/index.html
AON LAZIO wrote:
Hi,
How can we find out that there is already a PyQt application
running on Windows so when I try to open that same application, it
Oliver Voelzel wrote:
I am writing an application, which should provide the functionality of
SPSS (TM), a well known statistical package, in which the GUI shows two
table(views). One Tableview (No.1) provides adding,removing and editing
(statistical) variables as rows, and the other one
import sys
from PyQt4 import QtCore, QtGui
app = QtGui.QApplication(sys.argv)
class Ui_Frame(object):
def setupUi(self, Frame):
Frame.setObjectName(Frame)
Frame.resize(200, 300)
Frame.setMinimumSize(QtCore.QSize(200, 200))
class FrameWnd(Ui_Frame, QtGui.QFrame):
+++ b/c:\\sip-4.10-snapshot-20091223\\siplib\\siplib.c
@@ -617,11 +617,15 @@ PyMODINIT_FUNC SIP_MODULE_ENTRY(void)
if (sip_api_register_py_type((PyTypeObject *)sipSimpleWrapper_Type)
0)
SIP_FATAL(sip: Failed to register sip.simplewrapper type);
+#if defined(STACKLESS)
+
Phil Thompson-5 wrote:
On Sun, 27 Dec 2009 12:12:09 -0800 (PST), Demetrius Cassidy
dcassid...@mass.rr.com wrote:
import sys
from PyQt4 import QtCore, QtGui
app = QtGui.QApplication(sys.argv)
class Ui_Frame(object):
def setupUi(self, Frame):
Frame.setObjectName(Frame
For some reason as of 4.5.2, QVariant is behaving much differently than from
4.5.1. It seems that if I have a QVariant with a python list or tuple, that
doing toPyObject() on the QVariant object return a python list of
QVariants!! This means for each item in my list, I would also need to do a
Use 4.5.1 instead of 4.5.2 for now. I think there is a problem with QVariant
in 4.5.2, as I've had nothing but issues in that it seems to always return a
QVariant when you call any of it's methods.
I sent an email about this not long ago.
Bugzilla from wbs...@xs4all.nl wrote:
Hi!
Since
I think theres something wrong with the 20090601 build. Build fails on
Vista64, and another guy has a problem with the x11 snapshot with the same
compiler error.
Have you tried earlier builds at all?
Darren Dale-3 wrote:
I am using the 20090601 sip and pyqt4 snapshots on a 64-bit kubuntu
This really isn't PyQt4 related. Look at the py2exe faq, it lists common
modules you can ignore when building your exe.
You can also try UPX: http://upx.sourceforge.net/
handrix wrote:
Hi,
I build a exe program with py2exe, and it size is about 8M.
The program is very simple, it's a
qt4reactor.install() should be the first line after you create your
QApplication instance.
You might also want to use the attached qtreactor, since some of the older
ones I've found will give out that QObject error.
http://www.nabble.com/file/p23474488/qt4reactor.py qt4reactor.py
markus
Are you calling resizeToContents for each item in your table?
Sent from my iPhone
On May 9, 2009, at 3:28 AM, Edwin Marshall aspidi...@inbox.com wrote:
I have a QTableView that displays the contents of a model with over
3000 rows, each with 11 columns. I'd like to the original size of
from PyQt4 import QtCore
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: DLL load failed: Invalid access to memory location.
If I use the nightly build from 4252009, it all works as intended.
Using Qt 4.51 with the included mingw32 to build PyQt. It builds fine
I don't see why there would be a limit. Can you post a sample code?
NARCISO, Rui wrote:
Hi all,
I have a class MyThread that inherits from QThread and I would like to be
able to run multiple instances of MyThread in parallel (even if one has to
wait while the other completes).
I
You cannot instantiate a base class wrapped through sip with super. You need
to directly call the base class contructor via the __init__ method.
I quote The way that super is currently implemented means that the lazy
lookup is bypassed resulting in AttributeError exceptions unless the
attribute
How many items do you need to populate in your model class? Unless you are
populating a view with thousands of items, I do not suggest threads at all
since they can be dangerous if you do not know how to use them.
If you absolutely needed to do this, my approach would be to have some sort
of
small scprit using CLIPBOARD
(Aron Bierbaum)
4. Re: re[PyQt] source name problem in ui_* (Demetrius Cassidy)
5. Re: RuntimeError: underlying C/C++ object has been deleted
(Alexandr N Zamaraev)
6. Re: RuntimeError: underlying C/C++ object has been deleted
(Demetrius
You need to tell it what you want to name your python resource file as. So
something like pyrcc4 -py2 -o resources_rc.py will create the correct file
that is imported in the ui file.
Now if anyone knows _how_ to change the path to the resource file in your
ui, so pyuic does from something import
from PyQt4.QtGui import QApplication
clipboard = QApplication.clipboard()
clipboard.setText('mytext')
see http://doc.trolltech.com/4.5/qapplication.html
projetmbc wrote:
Hello,
here is an example for using the clipboard of Tkinter :
from Tkinter import *
root =
Looking over your code, I suspect the problem is with this line:
data = webPage.read(8192)
if not data:
break
Unless data is 0 or None, it will go into an infinite loop. From your
description, it does not sound like it will ever return 0. It is also not
good programming
Sounds like a problem with the C++ libraries.
Taken from the PyQt documentation:
You may need to install the MSVC2008 C++ runtime DLLs from
http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BFdisplaylang=en
here
Von Dreele wrote:
I have the
Why do you need access to the QModelIndex internal pointer? It sounds like
you are trying to access a null pointer, causing a crash.
Looking at the signature, ptr is some sort of id or extra data associated
with the index, which you probably need to add yourself when creating an
index.
You are still doing the same thing as last time =(
Ok, first of all, separate your GUI code from your dialog code. Use Qt
Designer to create your GUI, then pyuic to convert the ui code into python
equivalent. This will create a python file with a class called Ui_MainWindow
or Ui_Dialog,
I am not sure if passing a string by itself to pyqtSignal is correct, but
shoulden't it raise an exception instead of crashing? I don't see why we
can't use this form instead.
If I use the latter form of pyqtSignal(['QString']), passing it a list of
strings, everything works great. If I pass it
You should read the Python tutorial. It would probably help.
http://docs.python.org/tutorial/
GatorAlli wrote:
Thanks! It worked! =)
Now how could you run this dialog from another script?
(I'm no good at self, classes, and inheritance.)
--
View this message in context:
I don't follow 100%, but I guess you have say a GameMainWindow (non Qt), and
you want to open a new QtDialog from within your MainWindow?
The problem might be if you run your own even loop, then you run PyQt's
event loop, messages for your window are no longer being received, causing
the
to make a 'new style' signal
emittable is via creating a class attribute, ie:
class MyScene(QtGui.QGraphicsScene):
mysignal = QtCore.pyqtSignal(QtGui.QGraphicsSceneMouseEvent)
def __init__(self,parent):
#normal init stuff
thanks
mbs
From: Demetrius Cassidy dcassid...@mass.rr.com
Subject
I must admit I am not very familiar with QDirModel, but why not use os.walk?
#top would be the root directory you are begining your search at.
def _walkDirPath(self, top):
for dirpath, dirnames, filenames in os.walk(top):
for name in filenames:
# yields:
from PyQt4.QtCore import SIGNAL
class MyScene(QtGui.QGraphicsScene):
def __init__(self,parent=None):
QtGui.QGraphicsScene.__init__(self,parent)
self.emit(SIGNAL((itemClicked(QGraphicsSceneMouseEvent*
- Original Message -
From: Matt Smith
Small Typo.. Should be:
self.emit(SIGNAL(itemClicked(QGraphicsSceneMouseEvent*)))
Demetrius Cassidy wrote:
from PyQt4.QtCore import SIGNAL
class MyScene(QtGui.QGraphicsScene):
def __init__(self,parent=None):
QtGui.QGraphicsScene.__init__(self,parent)
self.emit
72 matches
Mail list logo