help! PyQt4 and UTF-8

2018-08-14 Thread inhahe
when I try the same thing with PyQt4.. -- from PyQt4 import QtGui import sys s = 'testing\xf0\x9f\x98\x80' app = QtGui.QApplication(sys.argv) w = QtGui.QWidget() font = QtGui.QFont("Arial") textbox = QtGui.QLineEdit(w) textbox.setFont(font) textbox.setText(s) w.show() sys.exit(app.exe

Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Xristos Xristoou
tell some solution ?yes you are correct for some seconds show me the mark but only for some seconds.can i update my pyqt4 to show me the mark ? -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt4 QWebView cant load google maps markers

2018-03-23 Thread Anssi Saari
Xristos Xristoou writes: > I want to create a simple python app using pyqt,QWebView and google maps with > markers. > > The problem is that,the markers does not load inside the QWebView, as > you can see they load just fine in the browser. Well, since you got a javascript

PyQt4 QWebView cant load google maps markers

2018-03-22 Thread Xristos Xristoou
I want to create a simple python app using pyqt,QWebView and google maps with markers. The problem is that,the markers does not load inside the QWebView, as you can see they load just fine in the browser. here the simple code : import sys from PyQt4.QtCore import * from PyQt4.QtGui

PyQt4 QWebView cant load google maps markers

2018-03-22 Thread Xristos Xristoou
I want to create a simple python app using pyqt,QWebView and google maps with markers. The problem is that,the markers does not load inside the QWebView, as you can see they load just fine in the browser. here the simple code : import sys from PyQt4.QtCore import * from PyQt4.QtGui

Re: python and pyqt4

2017-03-14 Thread MRAB
On 2017-03-14 21:03, Vincent Vande Vyvre wrote: Le 14/03/17 à 20:56, Xristos Xristoou a écrit : i will want to create a simple python script with pyqt4 and Q designer where the user put a number (line_edit) and if that number is something the user take back three new codes(lineEdit_2

Re: python and pyqt4

2017-03-14 Thread Vincent Vande Vyvre
Le 14/03/17 à 20:56, Xristos Xristoou a écrit : i will want to create a simple python script with pyqt4 and Q designer where the user put a number (line_edit) and if that number is something the user take back three new codes(lineEdit_2,lineEdit_3,lineEdit_4) and if user press ok(buttonBox

python and pyqt4

2017-03-14 Thread Xristos Xristoou
i will want to create a simple python script with pyqt4 and Q designer where the user put a number (line_edit) and if that number is something the user take back three new codes(lineEdit_2,lineEdit_3,lineEdit_4) and if user press ok(buttonBox) then plugin do something else in the some GUI

Re: PyQt4

2016-04-03 Thread Vincent Vande Vyvre
Le 03/04/2016 21:36, Muhammad Ali a écrit : On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote: On 04/03/2016 12:57 PM, Muhammad Ali wrote: Hi, How can we confirm that either PyQt4 is already installed on LInux machine or not? Please suggest commands to confirm the already

Re: PyQt4

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote: > On 04/03/2016 12:57 PM, Muhammad Ali wrote: > > > > Hi, > > > > How can we confirm that either PyQt4 is already installed on LInux machine > > or not? > > > > Please sugg

Re: PyQt4

2016-04-03 Thread Michael Torrie
On 04/03/2016 12:57 PM, Muhammad Ali wrote: > > Hi, > > How can we confirm that either PyQt4 is already installed on LInux machine > or not? > > Please suggest commands to confirm the already existence of PyQt4 in the > machine. Ideally you make a distr

PyQt4

2016-04-03 Thread Muhammad Ali
Hi, How can we confirm that either PyQt4 is already installed on LInux machine or not? Please suggest commands to confirm the already existence of PyQt4 in the machine. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-06 Thread farshad akbari
... =/ On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian juan0ch...@gmail.com wrote: Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have this folder structure: Disk C: PyQt4 Lib/site

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-06 Thread Juan Christian
terminal and everything works... =/ On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian juan0ch...@gmail.com wrote: Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-01 Thread Juan Christian
: Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have this folder structure: Disk C: PyQt4 Lib/site-packages/PyQt4/(tons of files here) Python34 (normal/default installation) --- I tried

PYQT4 referer in javascript still blank

2014-11-01 Thread Peter Irbizon
Hello, I am trying to set referrer for my script this way in PYQT4: class NetworkManager(QNetworkAccessManager): def createRequest(self, op, req, outgoing_data): req.setRawHeader('Referer', 'http://www.my-university.com/') req.setRawHeader('Accept-Language', 'en

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-10-29 Thread Juan Christian
It only occurs whule using PyCharm I tried it via pure terminal and everything works... =/ On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian juan0christ...@gmail.com wrote: Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100

Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-10-28 Thread Juan Christian
Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have this folder structure: Disk C: PyQt4 Lib/site-packages/PyQt4/(tons of files here) Python34 (normal/default installation) --- I tried copying

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Mark Lawrence
On 09/09/2014 03:45, kjs wrote: You're right, a dictionary can do everything I need and more. This happened to be the first thing I thought of, and I didn't imagine it would be very expensive. I figured it was simply a different way of defining and retrieving a class variable. IE setattr(self,

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
Reposting to list, instead of directly to kjs On 09/08/2014 08:45 PM, kjs wrote: Thanks for the consideration Michael. If you do get the data, and are able to run the code, let me know if you notice anything interesting. Yeah I don't think I'll be able to have the time to download a 3 GB file.

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/08/2014 08:45 PM, kjs wrote: You're right, a dictionary can do everything I need and more. Actually I am wrong in suggesting a dictionary. A list or an array would probably be more appropriate. Thinking about it this morning, one additional reason why getattr and setattr aren't

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Chris Angelico
On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie torr...@gmail.com wrote: Yes you're correct. It is the equivalent. But it always involves lookup in the object's dictionary, which is big O order O(n log n) complexity for each and every access. Where do you get that figure from? A CPython

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Michael Torrie
On 09/09/2014 09:37 AM, Chris Angelico wrote: On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie torr...@gmail.com wrote: Yes you're correct. It is the equivalent. But it always involves lookup in the object's dictionary, which is big O order O(n log n) complexity for each and every access.

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread kjs
On September 9, 2014 8:57:02 AM PDT, Michael Torrie torr...@gmail.com wrote: On 09/09/2014 09:37 AM, Chris Angelico wrote: On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie torr...@gmail.com wrote: Yes you're correct. It is the equivalent. But it always involves lookup in the object's

Re: weakref, memory management and execution slow down in PyQt4

2014-09-09 Thread Terry Reedy
On 9/9/2014 11:34 AM, Michael Torrie wrote: On 09/08/2014 08:45 PM, kjs wrote: You're right, a dictionary can do everything I need and more. Actually I am wrong in suggesting a dictionary. A list or an array would probably be more appropriate. Thinking about it this morning, one additional

Re: weakref, memory management and execution slow down in PyQt4

2014-09-08 Thread kjs
are a start button that fires off the plotting and a stop button that calls sys.exit(). Lines 112-114 appear to be causing the weakref proliferation. I do not doubt that I could be using PyQt4 incorrectly. I'll send a message to the pyqt mailing list as well. Also you could try a minimal example

Re: weakref, memory management and execution slow down in PyQt4

2014-09-08 Thread Michael Torrie
On 09/07/2014 02:39 PM, kjs wrote: The code is minimal[0]. The only other widgets are a start button that fires off the plotting and a stop button that calls sys.exit(). Unfortunately there are no data files in your git repository so I can't run it. Lines 112-114 appear to be causing the

Re: weakref, memory management and execution slow down in PyQt4

2014-09-08 Thread kjs
Thanks for the consideration Michael. If you do get the data, and are able to run the code, let me know if you notice anything interesting. Michael Torrie: On 09/07/2014 02:39 PM, kjs wrote: The code is minimal[0]. The only other widgets are a start button that fires off the plotting and a

weakref, memory management and execution slow down in PyQt4

2014-09-07 Thread kjs
I built a small application using PyQt4 and pyqtgraph to visualize some data. The app has 32 graphs that plot deques of size 512. The plots are updated when 200 ints are cycled through each deque. The plotting slows down in a linear manner with respect to time. In other words after cycling

Re: weakref, memory management and execution slow down in PyQt4

2014-09-07 Thread Antoine Pitrou
kjs bfb at riseup.net writes: I have come to believe that the growing number of weakrefs is slowing down execution. Is my analysis misguided? How can I introspect further? If the slowdown can be attributed to weakref escalation, what are some next steps? The way to analyze this is to build

Re: weakref, memory management and execution slow down in PyQt4

2014-09-07 Thread kjs
Antoine Pitrou: kjs bfb at riseup.net writes: I have come to believe that the growing number of weakrefs is slowing down execution. Is my analysis misguided? How can I introspect further? If the slowdown can be attributed to weakref escalation, what are some next steps? The way to

Re: weakref, memory management and execution slow down in PyQt4

2014-09-07 Thread Michael Torrie
On 09/07/2014 01:11 PM, kjs wrote: Thanks for the advice. I commented out the graph generation and PyQt call self.app.processEvents() where in the class __init__ self.app = QtGui.QApplication(sys.argv) This stopped the weakref proliferation. All other objects grow and shrink in

Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread alister
this behaviour:/div divnbsp;/div divgt;gt;gt; from PyQt4 import QtGui/div divgt;gt;gt; import sys/div divgt;gt;gt; app = QtGui.QApplication(sys.argv)/div divgt;gt;gt; grid_layout = QtGui.QGridLayout()br/ gt;gt;gt; grid_layout.addWidget(QtGui.QWidget())br/ gt;gt;gt; item

Re: Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Alex Murray
. The following code demonstrates this behaviour: from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) grid_layout = QtGui.QGridLayout() grid_layout.addWidget(QtGui.QWidget()) item = grid_layout.takeAt(0) item.deleteLater() Traceback (most recent call last): File stdin, line 1

Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Vincent Vande Vyvre
a QWidget from a QGridLayout. The following code demonstrates this behaviour: from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) grid_layout = QtGui.QGridLayout() grid_layout.addWidget(QtGui.QWidget()) item = grid_layout.takeAt(0) item.deleteLater() Traceback (most recent call

PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-19 Thread Alex Murray
Hi, Ive discovered some very strange behaviour when trying to delete a QWidget from a QGridLayout. The following code demonstrates this behaviour: from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) grid_layout = QtGui.QGridLayout() grid_layout.addWidget

Re: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-19 Thread Vincent Vande Vyvre
Le 20/08/2014 00:11, Alex Murray a écrit : Hi, I've discovered some very strange behaviour when trying to delete a QWidget from a QGridLayout. The following code demonstrates this behaviour: from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) grid_layout

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-19 Thread Giorgos Tzampanakis
On 2014-01-18, Jaiprakash Singh wrote: hi, can you please suggest me some method for study so that i can scrap a site having JavaScript behind it i have tried selenium, ghost, pyQt4, but it is slow and as a am working with thread it sinks my ram memory very fast. I have

python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-18 Thread Jaiprakash Singh
hi, can you please suggest me some method for study so that i can scrap a site having JavaScript behind it i have tried selenium, ghost, pyQt4, but it is slow and as a am working with thread it sinks my ram memory very fast. -- https://mail.python.org/mailman/listinfo/python-list

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-18 Thread Denis McMahon
On Sat, 18 Jan 2014 03:54:17 -0800, Jaiprakash Singh wrote: can you please suggest me some method for study so that i can scrap a site having JavaScript behind it Please expand upon the requirement, are you trying to: a) replace server side javascript with server side python, or b) replace

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-18 Thread Chris Angelico
On Sat, Jan 18, 2014 at 10:54 PM, Jaiprakash Singh jaiprak...@wisepromo.com wrote: hi, can you please suggest me some method for study so that i can scrap a site having JavaScript behind it i have tried selenium, ghost, pyQt4, but it is slow and as a am working with thread

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-18 Thread Denis McMahon
, pyQt4, but it is slow and as a am working with thread it sinks my ram memory very fast. Do you mean scrape? You're trying to retrieve the displayed contents of a web page that uses JavaScript? If so, that's basically impossible without actually executing the JS code, which means largely

Re: python to enable javascript , tried selinium, ghost, pyQt4 already

2014-01-18 Thread Chris Angelico
scrap a site having JavaScript behind it i have tried selenium, ghost, pyQt4, but it is slow and as a am working with thread it sinks my ram memory very fast. Do you mean scrape? You're trying to retrieve the displayed contents of a web page that uses JavaScript? If so, that's

Re: pyqt4 qt license

2013-03-10 Thread newspost2012
Am Sonntag, 10. März 2013 05:09:41 UTC+1 schrieb D. Xenakis: Please correct me if im wrong.. ... PyQT4 GPL Licence is free and by using that someone can develop only non-commercial software. Wrong. GPL does not prevent you from developing commercial softwarre. You just have to release your

pyqt4 qt license

2013-03-09 Thread pitsakis
i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GML version during the development and then buy the commercial verion beofore i distribute the application ? commercial version means LGPL? i think i am comfused so please someone clarify

pyqt4 qt license

2013-03-09 Thread pitsakis
hello, i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GPL version during the development and then buy the commercial verion beofore i distribute the application ? commercial version means LGPL? i think i am comfused so please someone

Re: pyqt4 qt license

2013-03-09 Thread Ioakeim Tellidis
On Sat, Mar 9, 2013 at 9:08 PM, pitsa...@gmail.com wrote: hello, i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GPL version during the development and then buy the commercial verion beofore i distribute the application ? commercial

Re: pyqt4 qt license

2013-03-09 Thread CM
On Mar 9, 9:08 pm, pitsa...@gmail.com wrote: hello, i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GPL version during the development and then buy the commercial verion beofore i distribute the application ? Arguably, yes. From pyqt4

Re: pyqt4 qt license

2013-03-09 Thread Michael Torrie
On 03/09/2013 07:08 PM, pitsa...@gmail.com wrote: hello, i want to develop a GUI application that will be sold. i want to use pyqt4. can i download and use the GPL version during the development and then buy the commercial verion beofore i distribute the application ? commercial version

Re: pyqt4 qt license

2013-03-09 Thread D. Xenakis
Please correct me if im wrong.. PySide is LGPL and is free and by using that someone can develop commercial (and non commercial) software, while being able at the same to choose between both close and open Source. PyQT4 Commercial Licence costs more than 300 Euro and by using that someone can

Re: pyqt4 qt license

2013-03-09 Thread Vito De Tullio
D. Xenakis wrote: Can someone develop a closed source but NON-commercial software, by using PyQT4 GPL license? no, by definition of GPL: if you are using a GPL library, you must distribute your software as GPL. (the GPL does not care about commercial / non commercial) http://www.gnu.org

Re: pyqt4 qt license

2013-03-09 Thread Michael Torrie
On 03/09/2013 09:45 PM, Vito De Tullio wrote: D. Xenakis wrote: Can someone develop a closed source but NON-commercial software, by using PyQT4 GPL license? no, by definition of GPL: if you are using a GPL library, you must distribute your software as GPL. (the GPL does not care about

from PyQt4 import QtWebKit ImportError: DLL load failed

2012-01-18 Thread goldtech
information. from PyQt4 import QtWebKit Traceback (most recent call last): File pyshell#0, line 1, in module from PyQt4 import QtWebKit ImportError: DLL load failed: The specified procedure could not be found. This is a common problem when I google it but I don't see a clear procedure for a fix

Re: Help on PyQt4 QProcess

2011-08-22 Thread Edgar Fuentes
: On Aug 19, 1:56 pm, Phil Thompson  wrote: On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes fuen...@gmail.com wrote: Dear friends, I need execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect the signal

Re: Help on PyQt4 QProcess

2011-08-20 Thread Phil Thompson
(PDT), Edgar Fuentes fuen...@gmail.com wrote: Dear friends, I need execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect the signal finished(int) of a QProcess to work properly. for example, why this program don't work

Help on PyQt4 QProcess

2011-08-19 Thread Edgar Fuentes
Dear friends, I need execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect the signal finished(int) of a QProcess to work properly. for example, why this program don't work? from PyQt4.QtCore import QProcess pro = QProcess() # create

Re: Help on PyQt4 QProcess

2011-08-19 Thread Phil Thompson
On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes fuente...@gmail.com wrote: Dear friends, I need execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect the signal finished(int) of a QProcess to work properly. for example, why

Re: Help on PyQt4 QProcess

2011-08-19 Thread Edgar Fuentes
On Aug 19, 1:56 pm, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes fuente...@gmail.com wrote: Dear friends, I need execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect

Re: Help on PyQt4 QProcess

2011-08-19 Thread Carl Banks
On Friday, August 19, 2011 12:55:40 PM UTC-7, Edgar Fuentes wrote: On Aug 19, 1:56 pm, Phil Thompson wrote: On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes fuen...@gmail.com wrote: Dear friends, I need execute an external program from a gui using PyQt4, to avoid

Re: Help on PyQt4 QProcess

2011-08-19 Thread Edgar Fuentes
execute an external program from a gui using PyQt4, to avoid that hang the main thread, i must connect the signal finished(int) of a QProcess to work properly. for example, why this program don't work?    from PyQt4.QtCore import QProcess    pro = QProcess() # create QProcess

ImportError: No module named PyQt4.QtGui

2011-08-04 Thread 守株待兔
-sqlite2 when i finished,input from PyQt4.QtCore import * Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named PyQt4.QtCore would you mind to tell me how to solve it?-- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named PyQt4.QtGui

2011-08-04 Thread Thomas Jollans
-psql libqt4-sql-sqlite libqt4-sql-sqlite2 when i finished,input from PyQt4.QtCore import * Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named PyQt4.QtCore would you mind to tell me how to solve it? http://lmgtfy.com/?q=debian+pyqt4 You

Re: logging and PyQt4

2011-03-15 Thread Vinay Sajip
On Mar 14, 7:40 am, Adrian Casey m...@agcasey.com wrote: I have a multi-threaded PyQt4 application which has both a GUI and command- line interface.  I am using Qt4's threading because from what I have read, it is more efficient than the native python threading module.  Also, given most users

logging and PyQt4

2011-03-14 Thread Adrian Casey
I have a multi-threaded PyQt4 application which has both a GUI and command- line interface. I am using Qt4's threading because from what I have read, it is more efficient than the native python threading module. Also, given most users will probably use the GUI, it seemed to make sense. I

pyqt4: multi-threaded database access

2010-11-24 Thread Adrian Casey
I have a PyQt4 multi-threaded application which accesses many hosts concurrently via ssh. I would like each thread to have access to a database so that it can look up details about the particular system it is connected to. The easy way is to have each thread create a connection to the database

Re: pyqt4: multi-threaded database access

2010-11-24 Thread Diez B. Roggisch
Adrian Casey caseyal...@adam.com.au writes: I have a PyQt4 multi-threaded application which accesses many hosts concurrently via ssh. I would like each thread to have access to a database so that it can look up details about the particular system it is connected to. The easy way is to have

Re: pyqt4 Table Widget deleting c/c++ object

2010-10-26 Thread Andrew
. When it does so, it deletes the underlying widgets, leaving only Python wrappers. The documentation mentions that the table takes ownership of the widget: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtablewidg... I had read that, but I did not fully understand what

Re: pyqt4 Table Widget deleting c/c++ object

2010-10-19 Thread Andrew
: underlying C/C++ object has been deleted. I had error 1 two days ago, then without changing the code, I now get error 2. I do not have to re-size the window for it to break now. I am using python 2.7 with PyQt4 4.7.7 Thanks for any insight, Andrew Here is a working example of what I'm

Re: pyqt4 Table Widget deleting c/c++ object

2010-10-19 Thread David Boddie
Python wrappers. The documentation mentions that the table takes ownership of the widget: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtablewidget.html#setCellWidget I have a list of a custom widget class that keeps track of several directories. Each class gets put into a row

pyqt4 Table Widget deleting c/c++ object

2010-10-18 Thread Andrew
, then without changing the code, I now get error 2. I do not have to re-size the window for it to break now. I am using python 2.7 with PyQt4 4.7.7 Thanks for any insight, Andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: Deleting widgets from PyQt4 QFormWidget

2010-09-16 Thread David Boddie
On Wednesday 15 September 2010 18:53, Andrew wrote: I'm trying to remove the widgets from the QFormLayout widget from PyQt4. According to the documentation I should be able to use the command .takeAt(int) which will delete the widget from the layout and then return to me the QLayoutWidget

Deleting widgets from PyQt4 QFormWidget

2010-09-15 Thread Andrew
I'm trying to remove the widgets from the QFormLayout widget from PyQt4. According to the documentation I should be able to use the command .takeAt(int) which will delete the widget from the layout and then return to me the QLayoutWidget. It currently is giving me back the widget

Re: Deleting widgets from PyQt4 QFormWidget

2010-09-15 Thread Andrew
On Sep 15, 9:53 am, Andrew andrewt.h...@gmail.com wrote: I'm trying to remove the widgets from the QFormLayout widget from PyQt4. According to the documentation I should be able to use the command .takeAt(int) which will delete the widget from the layout and then return to me the QLayoutWidget

pyqt4 vs pygtk2 vs pyjamas (was: GUIs - A Modest Proposal)

2010-06-14 Thread lkcl
On Jun 13, 3:43 pm, Michael Torrie torr...@gmail.com wrote: On 06/13/2010 05:29 AM, lkcl wrote:  really?  drat.  i could have done with knowing that at the time. hmmm, perhaps i will return to the pyqt4 port after all. We're now wandering well off-topic here, but then again this thread

PyQt4 QThread - passing arguments to thread methods

2010-05-27 Thread nganon tj
Hi, I am trying to figure out how to implement a QThread class that will handle GUI event while keeping the GUI responsive. I want to call thread's methods by their names and start() the thread from inside that method. My problem is with passing methods their arguments since start() wont take

Re: Help with PyQt4 tabwidget setup

2010-05-24 Thread Neil Wallace
QDockWidgets in the QVBoxLayout. I currently have the following code for the QTabWidget: class PaneTabWidget(PyQt4.QtGui.QTabWidget): def __init__(self, tabs, parent=None): A tabwidget to go inside a Pane. super(PaneTabWidget, self).__init__(parent) for tab

Help with PyQt4 tabwidget setup

2010-05-21 Thread dpalmboom
code for the QTabWidget: class PaneTabWidget(PyQt4.QtGui.QTabWidget): def __init__(self, tabs, parent=None): A tabwidget to go inside a Pane. super(PaneTabWidget, self).__init__(parent) for tab in tabs: if tab == Properties: self.propertiesBin() elif tab

Re: PyQt4 designer custom properties - combo box style

2010-02-06 Thread Andrew
On Feb 4, 2:59 pm, David Boddie da...@boddie.org.uk wrote: On Tuesday 02 February 2010 22:25, Andrew wrote: I am creating custom widgets for the PyQt4 Designer. I can create custom properties, but I'm looking for how to create a custom property that has a combo box drop down. I've seen

Re: PyQt4 designer custom properties - combo box style

2010-02-06 Thread David Boddie
-object system when a C++ library or plugin is compiled. I'm not sure that PyQt can expose lists of Python values in the same way. An example of this is the alignment property in QLineEdit. In the PyQt4\examples\designer folder, it carries a number of custom widgets that will load into designer

Re: PyQt4 designer custom properties - combo box style

2010-02-04 Thread David Boddie
On Tuesday 02 February 2010 22:25, Andrew wrote: I am creating custom widgets for the PyQt4 Designer. I can create custom properties, but I'm looking for how to create a custom property that has a combo box drop down. I've seen them in the example widgets and tried following them

PyQt4 designer custom properties - combo box style

2010-02-02 Thread Andrew
I am creating custom widgets for the PyQt4 Designer. I can create custom properties, but I'm looking for how to create a custom property that has a combo box drop down. I've seen them in the example widgets and tried following them, but they are using pre-defined items to populate their property

pyqt4 eric4 generated gui custom dialog open

2009-12-15 Thread rewonka
Hi, I've made a little application with mainwindow and one dialog (something like input dialog). I can't open the input dialog from my mainwindow I tried to open the dialog with a button, here is a code: @pyqtSignature() def on_BtnAdd_clicked(self): Open input dialog for

Re: pyqt4 eric4 generated gui custom dialog open

2009-12-15 Thread Detlev Offenbach
rewonka wrote: Hi, I've made a little application with mainwindow and one dialog (something like input dialog). I can't open the input dialog from my mainwindow I tried to open the dialog with a button, here is a code: @pyqtSignature() def on_BtnAdd_clicked(self):

Re: PyQt4 4.4.4 : a bug with highlightBlock ?

2009-11-20 Thread David Boddie
On Wednesday 18 November 2009 11:47, Snouffy wrote: I've been trying to do some syntax highlighting using PyQt4. I ported the example given in the documentation of Qt4 to Python. It works fine on my computer at work (which has PyQt4 version 4.3.3) but doesn't on my home computer (which has

Re: PyQt4 4.4.4 : a bug with highlightBlock ?

2009-11-20 Thread Snouffy
You need to change the indexOf() calls to indexIn() calls on the QRegExp object:   index = expression.indexIn(text, index + length) Thank you so much ! After looking a bit more I found out that when using indexOf the command : length = expression.matchedLength() was the one causing a

PyQt4 4.4.4 : a bug with highlightBlock ?

2009-11-18 Thread Snouffy
Hello everybody, I've been trying to do some syntax highlighting using PyQt4. I ported the example given in the documentation of Qt4 to Python. It works fine on my computer at work (which has PyQt4 version 4.3.3) but doesn't on my home computer (which has version 4.4.4) : it gets stuck

PyQT4 user group

2009-10-29 Thread Chris
Hi! I'm starting to learn and use PyQT4 at work. Is there a good user group or forum out there that I should know about? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT4 user group

2009-10-29 Thread Diez B. Roggisch
Chris wrote: Hi! I'm starting to learn and use PyQT4 at work. Is there a good user group or forum out there that I should know about? The PyQt Mailinglist. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT4 user group

2009-10-29 Thread denis
For detailed questions, try http://stackoverflow.com/questions/tagged/pyqt or pyqt4 (the or may have to be escaped as %20or%20 in some browsers.) -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT4 user group

2009-10-29 Thread Colin W.
Diez B. Roggisch wrote: Chris wrote: Hi! I'm starting to learn and use PyQT4 at work. Is there a good user group or forum out there that I should know about? The PyQt Mailinglist. Diez I find the Gmane server, which delivers items from the PyQt Mailing List, easier to use. It threads

Re: PyQT4 user group

2009-10-29 Thread David Boddie
On Thursday 29 October 2009 17:15, Diez B. Roggisch wrote: Chris wrote: I'm starting to learn and use PyQT4 at work. Is there a good user group or forum out there that I should know about? The PyQt Mailinglist. There's a #pyqt IRC channel on Freenode: irc://irc.freenode.net/pyqt

Re: PyQt4 - remember widget positions

2009-10-22 Thread nusch
migrated my app from PyKDE to pure PyQt4 and there was 1 command for whole app to remember those settings. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt4 - remember widget positions

2009-10-22 Thread Jeremy Sanders
nusch wrote: Is there any simple command which allows me to save position of all windows: QMainWindow, QDialogs and qdockwidgets with their sizes, dock state and positions ? Or do I need to store those values manually, how can I do it fast? You can use saveState() from QMainWindow to save

PyQt4 - remember widget positions

2009-10-21 Thread nusch
Is there any simple command which allows me to save position of all windows: QMainWindow, QDialogs and qdockwidgets with their sizes, dock state and positions ? Or do I need to store those values manually, how can I do it fast? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt4 - remember widget positions

2009-10-21 Thread TerryP
On Oct 21, 9:04 pm, nusch nusc...@gmail.com wrote: Is there any simple command which allows me to save position of all windows:  QMainWindow, QDialogs and qdockwidgets with their sizes, dock state and positions ? Or do I need to store those values manually, how can I do it fast? Both fast

Re: trouble quitting PyQt4 App

2009-09-14 Thread MRAB
Soumen banerjee wrote: Hi, Im new to PyQt4 and im having fun using it. but ive run into a bit of a problem. I cant quit the application. The application has 2 modules. The gui module(gui.py) and then the main program(main.py) [snip] so heres the problem:- when i hit the quit button, quit

trouble quitting PyQt4 App

2009-09-13 Thread Soumen banerjee
Hi, Im new to PyQt4 and im having fun using it. but ive run into a bit of a problem. I cant quit the application. The application has 2 modules. The gui module(gui.py) and then the main program(main.py) heres gui.py: from PyQt4 import QtCore, QtGui import sys from subprocess import Popen class

Migrate From PyQt3 to PyQt4

2009-09-08 Thread nusch
I want to migrate from qt,pyqt,pykde 3 to 4 and remove all *.py files to work with newer version, also after remove pyqt3support. How can I do it in easy way ? I've read here http://www.mail-archive.com/p...@riverbankcomputing.com/msg15009.html something about deprecation warning but can't see

Re: Migrate From PyQt3 to PyQt4

2009-09-08 Thread Dave Angel
nusch wrote: I want to migrate from qt,pyqt,pykde 3 to 4 and remove all *.py files to work with newer version, also after remove pyqt3support. How can I do it in easy way ? I've read here http://www.mail-archive.com/p...@riverbankcomputing.com/msg15009.html something about deprecation warning

PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
I don't understand why the __file__ value in my installation of PyQt would not give a proper, full path. I'm guessing that I did not install pyqt properly (I'm on Ubuntu Hardy, trying to install QT4.5), but before redoing the install, I want to see if there is a quicker fix. Also, though PyQt4

  1   2   3   >