help! PyQt4 and UTF-8

2018-08-14 Thread inhahe
- But 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()

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 error, maybe Qt4 doesn

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. for

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 suggest

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 distribution

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 Juan Christian
sing PyCharm I tried it via pure terminal and > everything works... =/ > > > > > > > > > > On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian > wrote: > > > > > > Python 3.4.2 Windows x64 > > PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) > > >

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 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. > > >

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(&#

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-01 Thread Juan Christian
No one here uses PyCharm and Qt? =/ On Wed, Oct 29, 2014 at 8:45 PM, Juan Christian wrote: > 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 > wrote: > >> Python 3.4.2 Win

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 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 everyt

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)

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 r

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 wrote: >On 09/09/2014 09:37 AM, Chris Angelico wrote: >> On Wed, Sep 10, 2014 at 1:32 AM, Michael Torrie >wrote: >>> Yes you're correct. It is the equivalent. But it always involves >>> lookup in the object's dictionary, which is big O order

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 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

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 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 dictionary is imple

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 appropria

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 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, f

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

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
rces manually, > unlike normal Python objects which for the most part take care of > themselves. > 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(). Lines 112-114 appear to be causing the weakref pro

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 >

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

2014-09-07 Thread kjs
Antoine Pitrou: > kjs 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 t

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

2014-09-07 Thread Antoine Pitrou
kjs 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 s

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: PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-20 Thread Vincent Vande Vyvre
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(QtGui.QWidget()) item = grid_layout.takeAt(0) item.deleteLater() Traceback (most r

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

2014-08-20 Thread Alex Murray
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.take

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

2014-08-20 Thread alister
On Wed, 20 Aug 2014 00:11:24 +0200, Alex Murray wrote: > Hi, > >   > > I've discovered some very strange behaviour when trying to > delete a QWidget from a QGridLayout. The following code demonstrates > this behaviour: > >   > > >>> from PyQt

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.QAppli

PyQt4 - Issue with deleting a QWidget from a QGridLayout

2014-08-19 Thread Alex Murray
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) >

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

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

2014-01-18 Thread Chris Angelico
dy 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. >> >> Do you mean "scrape"?

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

2014-01-18 Thread Denis McMahon
On Sun, 19 Jan 2014 05:13:57 +1100, Chris Angelico wrote: > On Sat, Jan 18, 2014 at 10:54 PM, Jaiprakash Singh > wrote: >> hi, >> >> can you please suggest me some method for study so that i can >> scrap a site having JavaScript behind it >> >&g

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 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 threa

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

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: 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 hav

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

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.g

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 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

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 ? Ar

Re: pyqt4 & qt license

2013-03-09 Thread Ioakeim Tellidis
On Sat, Mar 9, 2013 at 9:08 PM, 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 ? >

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

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 on

from PyQt4 import QtWebKit ImportError: DLL load failed

2012-01-18 Thread goldtech
"license()" for more information. >>> from PyQt4 import QtWebKit Traceback (most recent call last): File "", line 1, in from PyQt4 import QtWebKit ImportError: DLL load failed: The specified procedure could not be found. >>> This is a common problem when I g

Re: Help on PyQt4 QProcess

2011-08-22 Thread Edgar Fuentes
gt;> > On Aug 19, 1:56 pm, Phil Thompson > >> >  wrote: > >> > > On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes > >> > > wrote: > >> > > > Dear friends, > > >> > > > I need execute an external program

Re: Help on PyQt4 QProcess

2011-08-20 Thread Phil Thompson
011 10:15:20 -0700 (PDT), Edgar Fuentes >> > > 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 >> > &g

Re: Help on PyQt4 QProcess

2011-08-19 Thread Edgar Fuentes
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 pro

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 > > wrote: > > > Dear friends, > > > > > I need execute an external program f

Re: Help on PyQt4 QProcess

2011-08-19 Thread Edgar Fuentes
On Aug 19, 1:56 pm, Phil Thompson wrote: > On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes > > > > > > > > > > wrote: > > Dear friends, > > > I need execute an external program from a gui using PyQt4, to avoid > > that hang th

Re: Help on PyQt4 QProcess

2011-08-19 Thread Phil Thompson
On Fri, 19 Aug 2011 10:15:20 -0700 (PDT), Edgar Fuentes 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

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 = QPro

Re: ImportError: No module named PyQt4.QtGui

2011-08-04 Thread Thomas Jollans
ibqt4-sql-odbc libqt4-sql-psql > libqt4-sql-sqlite libqt4-sql-sqlite2 > > when i finished,input >>>>from PyQt4.QtCore import * > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named PyQt4.QtCore > > would you

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 "", line 1, in 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: logging and PyQt4

2011-03-15 Thread Vinay Sajip
On Mar 14, 7:40 am, Adrian Casey 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 >

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.

Re: pyqt4: multi-threaded database access

2010-11-24 Thread Diez B. Roggisch
Adrian Casey 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 t

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 Table Widget deleting c/c++ object

2010-10-26 Thread Andrew
later ask > the table to clear the contents of the table. 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/htm

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

2010-10-19 Thread David Boddie
nderlying 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/qtablewidget.html#setCellWidget > I have a list of a custom widget class that keeps track of several > directo

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

2010-10-19 Thread Andrew
r messages or even visible > rows. After several more repopulates it with either crash or tell me: > 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. &g

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

Re: Deleting widgets from PyQt4 QFormWidget

2010-09-15 Thread Andrew
On Sep 15, 9:53 am, 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 QLayoutWidge

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, but i

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

2010-06-14 Thread lkcl
On Jun 13, 3:43 pm, Michael Torrie 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

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 any

Re: Help with PyQt4 tabwidget setup

2010-05-24 Thread Neil Wallace
idget must go above or below the existing QDockWidgets in the > QVBoxLayout. > > I currently have the following code for the QTabWidget: > > class PaneTabWidget(PyQt4.QtGui.QTabWidget): > > def __init__(self, tabs, parent=None): > > """ >

Help with PyQt4 tabwidget setup

2010-05-20 Thread dpalmboom
owing 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 == "

Re: PyQt4 designer custom properties - combo box style

2010-02-06 Thread David Boddie
which have been declared to Qt's meta-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

Re: PyQt4 designer custom properties - combo box style

2010-02-06 Thread Andrew
On Feb 4, 2:59 pm, David Boddie 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 dro

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 tri

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 thei

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): >

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

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 p

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 > m

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 s

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

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 th

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 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

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 - 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 sav

Re: PyQt4 - remember widget positions

2009-10-22 Thread nusch
introduce lot of additional strings describing keys in QSettings. I 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-21 Thread TerryP
On Oct 21, 9:04 pm, 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? Both fast and simple have

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: 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 is

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

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 bu

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 suc

Re: PyQt4.__file__ gives PyQt4/__init__.py as value

2009-08-15 Thread wgw
On Aug 15, 2:19 pm, Christian Heimes wrote: > wgw wrote: > > 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 t

  1   2   3   >