Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread dn via Python-list
On 18/03/24 10:02, Jim Schwartz wrote: Actually, I have a sleep disorder that requires me to keep a constant sleep schedule. Thats why I asked. At a weekend meeting, discussion swirled around topics such as the best way to learn/work, how much work we should attempt in one sitting, could/sho

Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread Jim Schwartz via Python-list
of NZPUG meets this Wednesday, 20 March at 1830 NZDT >>> (0530 UTC, midnight-ish Tue/Wed in American time-zones), for a virtual >>> meeting. >>> >>> Part 1: Learn the basics of PyQt with code examples. >>> Hannan Khan is currently consulting as a Data

Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread dn via Python-list
of NZPUG meets this Wednesday, 20 March at 1830 NZDT (0530 UTC, midnight-ish Tue/Wed in American time-zones), for a virtual meeting. Part 1: Learn the basics of PyQt with code examples. Hannan Khan is currently consulting as a Data Scientist for the (US) National Oceanic and Atmospheric Adm

Re: MTG: Introductions to PyQt and DataClasses

2024-03-17 Thread Jim Schwartz via Python-list
> Part 1: Learn the basics of PyQt with code examples. > Hannan Khan is currently consulting as a Data Scientist for the (US) National > Oceanic and Atmospheric Administration. He holds a Bachelor's degree in > Neuroscience as well as a Masters in Computer Science. As a keen m

MTG: Introductions to PyQt and DataClasses

2024-03-16 Thread dn via Python-list
The Auckland Branch of NZPUG meets this Wednesday, 20 March at 1830 NZDT (0530 UTC, midnight-ish Tue/Wed in American time-zones), for a virtual meeting. Part 1: Learn the basics of PyQt with code examples. Hannan Khan is currently consulting as a Data Scientist for the (US) National Oceanic

Re: Any PyQt developers here?

2022-10-29 Thread Michael Torrie
27;s the view that does the actual font setting. Remember that a single model can be used with more than one view at the same time, each view implementing its own style. Thus a model has no information like fonts in it, nor should it, other than perhaps HTML text markup that the view will render. Di

Re: Any PyQt developers here?

2022-10-28 Thread DFS
On 10/27/2022 3:47 PM, Thomas Passin wrote: On 10/27/2022 11:15 AM, DFS wrote: On 10/25/2022 1:45 PM, Thomas Passin wrote: On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. removeRow() isn't listed as being a method of a QTableView, not even an inher

Re: Any PyQt developers here?

2022-10-28 Thread Thomas Passin
On 10/28/2022 1:01 AM, Thomas Passin wrote: {snip] You might also be able to make the item bold using CSS, but I'm not sure. Apparently so: QTreeView::item:selected { background-color: #1d3dec; color: white; } See https://joekuan.wordpress.com/2015/10/02/styling-qt-qtreeview-with-css

Re: Any PyQt developers here?

2022-10-27 Thread Thomas Passin
This looks like a useful tutorial - https://doc.qt.io/qt-6/modelview.html On 10/27/2022 3:47 PM, Thomas Passin wrote: On 10/27/2022 11:15 AM, DFS wrote: On 10/25/2022 1:45 PM, Thomas Passin wrote: On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. re

Re: Any PyQt developers here?

2022-10-27 Thread Thomas Passin
On 10/27/2022 11:15 AM, DFS wrote: On 10/25/2022 1:45 PM, Thomas Passin wrote: On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. removeRow() isn't listed as being a method of a QTableView, not even an inherited method, so how are you calling removeRow

Re: Any PyQt developers here?

2022-10-27 Thread DFS
On 10/25/2022 1:45 PM, Thomas Passin wrote: On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. removeRow() isn't listed as being a method of a QTableView, not even an inherited method, so how are you calling removeRow() on it? (See https://doc.qt.io/qt

Re: Any PyQt developers here?

2022-10-26 Thread DFS
On 10/25/2022 2:03 PM, Barry Scott wrote: There is an active PyQt mailing list that has lots of helpful and knowledgeable people on it. https://www.riverbankcomputing.com/mailman/listinfo/pyqt Barry Thanks. I'll send some questions their way, I'm sure. -- https://mail.python.o

Re: Any PyQt developers here?

2022-10-26 Thread DFS
On 10/25/2022 1:45 PM, Thomas Passin wrote: On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. removeRow() isn't listed as being a method of a QTableView, not even an inherited method, so how are you calling removeRow() on it? (See https://doc.qt.io/qt

Re: Any PyQt developers here?

2022-10-25 Thread Barry Scott
There is an active PyQt mailing list that has lots of helpful and knowledgeable people on it. https://www.riverbankcomputing.com/mailman/listinfo/pyqt Barry > On 25 Oct 2022, at 18:03, DFS wrote: > > Having problems with removeRow() on a QTableView object. > > After ca

Re: Any PyQt developers here?

2022-10-25 Thread Thomas Passin
On 10/25/2022 1:03 PM, DFS wrote: Having problems with removeRow() on a QTableView object. removeRow() isn't listed as being a method of a QTableView, not even an inherited method, so how are you calling removeRow() on it? (See https://doc.qt.io/qt-6/qtableview-members.html) After calling r

Any PyQt developers here?

2022-10-25 Thread DFS
Having problems with removeRow() on a QTableView object. After calling removeRow(), the screen isn't updating. It's as if the model is read-only, but it's a QSqlTableModel() model, which is not read-only. The underlying SQL is straightforward (one table) and all columns are editable. None

Which PyQt-compatible, performant graphing library should I use?

2019-09-07 Thread kangalioo654
Hi, Currently I'm making a statistics tool for a game I'm playing with PyQt5. I'm not happy with my current graphing library though. In the beginning I've used matplotlib, which was way too laggy for my use case. Currently I have pyqtgraph, which is snappy, but is missing useful features. The

Re: Redundant features in python library, PyQt

2018-03-02 Thread Michael Torrie
On 03/02/2018 04:15 PM, jlada...@itu.edu wrote: > Python's standard library has (to take three examples) threads, > processes, and datetime functions. Meanwhile, PyQt has QThread, > QProcess, and QDateTime. > > Does this redundancy exist for C++ programmers who are programmin

Redundant features in python library, PyQt

2018-03-02 Thread jladasky
Python's standard library has (to take three examples) threads, processes, and datetime functions. Meanwhile, PyQt has QThread, QProcess, and QDateTime. Does this redundancy exist for C++ programmers who are programming Qt directly, and who may lack a standard C++ library with these fea

Re: PyQt: Parenting a Widget

2017-09-26 Thread Thomas Jollans
On 2017-09-26 16:41, Veek M wrote: > Thanks - i'm on debian stretch so python 2.7 is what I use. https://packages.debian.org/stretch/python3 https://packages.debian.org/stretch/python3-pyqt4 https://packages.debian.org/stretch/python3-pyqt5 -- https://mail.python.org/mailman/listinfo/python-li

Re: PyQt: Parenting a Widget

2017-09-26 Thread Chris Angelico
On Wed, Sep 27, 2017 at 12:41 AM, Veek M wrote: > Thanks - i'm on debian stretch so python 2.7 is what I use. Debian Stretch ships with Python 3.5 too. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt: Parenting a Widget

2017-09-26 Thread Veek M
gt;> is not making sense. > >> ## > >> I'm trying to understand widget parenting, from the book: Rapid GUI > >> Programming, pg 118, and thereabouts - he says: > >> > >> A. All PyQt classes that derive from QObjectand this inclu

Re: PyQt: Parenting a Widget

2017-09-26 Thread Thomas Jollans
widget parenting, from the book: Rapid GUI >> Programming, pg 118, and thereabouts - he says: >> >> A. All PyQt classes that derive from QObjectand this includes all the >> widgets, >> since QWidget is a QObject subclasscan have a “parent”. >> >> B. PyQt

Re: PyQt: Parenting a Widget

2017-09-25 Thread Veek M
ramming, pg 118, and thereabouts - he says: > > A. All PyQt classes that derive from QObjectand this includes all the widgets, > since QWidget is a QObject subclasscan have a “parent”. > > B. PyQt automatically repar- > ents the widgets that are laid out. So although we did not gi

PyQt: Parenting a Widget

2017-09-25 Thread Veek M
Summary: Could someone explain widget and dialog parenting - the text book is not making sense. ## I'm trying to understand widget parenting, from the book: Rapid GUI Programming, pg 118, and thereabouts - he says: A. All PyQt classes that derive from QObjectand

Re: PyQt: viewport vs window - how do you translate co-ordinates?

2017-09-24 Thread Veek M
google groups but my knode is broken and pan is horrible > > on olvwm - my plan is to write myself a News client in PyQt :)) > > I don't think you need to know that much about graphics coordinate > systems to get started with Qt. Most GUI layout stuff does not depend on > pixels

Re: PyQt: viewport vs window - how do you translate co-ordinates?

2017-09-23 Thread Michael Torrie
500,-200, which would make things stretched out in the x axis compared to the y axis. > (sorry for using google groups but my knode is broken and pan is horrible on > olvwm - my plan is to write myself a News client in PyQt :)) I don't think you need to know that much about graphics coordi

PyQt: viewport vs window - how do you translate co-ordinates?

2017-09-23 Thread Veek M
pg 329, Rapid GUI Programming http://storage4.static.itmages.com/i/17/0923/h_1506165624_2588733_59fdfcd4cc.png In PyQt terminology the physical coordinate system is called the “viewport”, and confusingly, the logical coordinate system is called the “window”. In Figure 11.4

Re: PyQt pass data from class

2016-11-16 Thread Michael Torrie
foo.some_method() a=foo() b=bar(a) Of course since you're dealing with PyQt your classes will involve some other parameters to __init__ but you can still tack your parameter on there. You may want to re-examine how you're building your classes, though. There's likely a way you can

Re: PyQt pass data from class

2016-11-15 Thread luca72 via Python-list
Thanks for your reply Is the latter, can you explain how i can do it. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt pass data from class

2016-11-15 Thread Michael Torrie
ss the member of one class from a method in another class? If it's the former, you can ask PyQt to suppress a callback for a while. Look up the blockSignals() method of QWidget. If it's the latter, your best bet is to pass the object you want to access into the other class somehow, perhap

Re: PyQt pass data from class

2016-11-15 Thread Rob Gaddi
at is in the class Form > > in wich way i can have access to the lineedit of class Form without event > from class Cornice > > Many Thanks Traditionally you'd have Cornice emit a Signal, which when you __init__the Form you'd connect to the appropriate slot. I don'

PyQt pass data from class

2016-11-15 Thread luca72 via Python-list
Hello i need to this class Form(QWidget, Ui_Form): """ Class documentation goes here. """ def __init__(self, parent=None): """ Constructor @param parent reference to the parent widget @type QWidget """ super(Form, self).__ini

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
trayIcon = SystemTrayIcon(QtGui.QIcon("virtualdvd.png"), w) trayIcon.show() sys.exit(app.exec_()) if __name__ == '__main__': main() On 11/07/2016 10:49 AM, Anssi Saari wrote: Demosthenes Koptsis writes: Hello, i have a PyQT systray app with a menu and two actions. Action1

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Demosthenes Koptsis
sys.exit(app.exec_()) if __name__ == '__main__': main() On 11/07/2016 10:49 AM, Anssi Saari wrote: Demosthenes Koptsis writes: Hello, i have a PyQT systray app with a menu and two actions. Action1 is Exit and action2 display a MessageBox with Hello World message. When i click OK

Re: [PyQT] After MessageBox app quits...why?

2016-11-07 Thread Anssi Saari
Demosthenes Koptsis writes: > Hello, i have a PyQT systray app with a menu and two actions. > > Action1 is Exit and action2 display a MessageBox with Hello World message. > > When i click OK to MessageBox app quits...why? > > http://pastebin.com/bVA49k1C I haven't

[PyQT] After MessageBox app quits...why?

2016-10-27 Thread Demosthenes Koptsis
Hello, i have a PyQT systray app with a menu and two actions. Action1 is Exit and action2 display a MessageBox with Hello World message. When i click OK to MessageBox app quits...why? http://pastebin.com/bVA49k1C -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQT - Signals and Slots?

2016-10-10 Thread Michael Torrie
's announce and atzero defined? In your example code, "atzero" is implicitly defined as a signal in the connect() call. Under the hood in Qt, signals are all dispatched by strings when you emit() the signal. PyQt does allow you to define signals in a more pythonic way using class

Re: PyQT - Signals and Slots?

2016-10-10 Thread Veek M
Mark Summerfield wrote: > > The ZeroSpinBox is a tiny example designed to show how the signal/slot > mechanism works. It is just a QSpinBox with the addition of > remembering how many times (all the) ZeroSpinBox(es) have had a 0 > value. > > Nowadays the connections would be made with a new impr

Re: PyQT - Signals and Slots?

2016-10-10 Thread Mark Summerfield
The ZeroSpinBox is a tiny example designed to show how the signal/slot mechanism works. It is just a QSpinBox with the addition of remembering how many times (all the) ZeroSpinBox(es) have had a 0 value. Nowadays the connections would be made with a new improved syntax: self.connect(self, SIGNAL

PyQT - Signals and Slots?

2016-10-10 Thread Veek M
signalSignature -> functionName -> instance.methodName -> instance.slotSignature If signalSignature is a C++ implemented thingy then we got to pass type info as part of the mapping so "signalSignature(int, float, const char *). PyQT signals are any type and a

ANN: PyQt v5.7 Released

2016-07-26 Thread Phil Thompson
PyQt v5.7 has been released. These are the Python bindings for the Qt application toolkit and runs on Linux, OS X, Windows, iOS and Android. Also released for the first time under the GPL are PyQtChart, PyQtDataVisualization and PyQtPurchasing. PyQtChart are the bindings for the Qt Charts

Re: Getting back into PyQt and not loving it.

2016-07-02 Thread Sibylle Koczian
Am 27.06.2016 um 22:14 schrieb codewiz...@gmail.com: On Sunday, June 26, 2016 at 5:45:18 PM UTC-4, Michael Torrie wrote: Qt's a fantastic toolkit, and the most mature of any of them, and the most portable, but man the bindings are not Pythonic at all. Enaml feels pretty Pythonic to me: https

Re: sample chatting apps in pyqt

2016-06-30 Thread Michael Torrie
On 06/30/2016 07:45 AM, tommy yama wrote: > Hi all, > > Let me post my question here > Has anyone installed and run any of sample chat apps in pyqt? > > Although I've tried to install and run sample scripts in pyqt once, the > error said pyqt must be reinstalled. If y

sample chatting apps in pyqt

2016-06-30 Thread tommy yama
Hi all, Let me post my question here Has anyone installed and run any of sample chat apps in pyqt? Although I've tried to install and run sample scripts in pyqt once, the error said pyqt must be reinstalled. Appreciate for your suggestions. Thanks. Tomo -- https://mail.python.org/ma

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread Michael Torrie
On 06/27/2016 02:14 PM, codewiz...@gmail.com wrote: > On Sunday, June 26, 2016 at 5:45:18 PM UTC-4, Michael Torrie wrote: >> >> Qt's a fantastic toolkit, and the most mature of any of them, and the >> most portable, but man the bindings are not Pythonic at all. > > Enaml feels pretty Pythonic to m

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread Ethan Furman
On 06/26/2016 07:12 PM, MRAB wrote: Is it a problem with Tk itself or with the Python wrapper? Would it be better if we made a more Pythonic version of Tkinter, e.g. making Frame.title a property? I would say it's the wrapper. I appreciate all the work being done on tkinter lately, but it's s

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread codewizard
On Sunday, June 26, 2016 at 5:45:18 PM UTC-4, Michael Torrie wrote: > > Qt's a fantastic toolkit, and the most mature of any of them, and the > most portable, but man the bindings are not Pythonic at all. Enaml feels pretty Pythonic to me: https://github.com/nucleic/enaml -- https://mail.python

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread llanitedave
hon 2. > > I started with WxPython, but WxPython/Phoenix has been very slow to migrate > to Python 3. > > Between the Py3 requirement and the need to work with all major OS's, I > decided to learn PyQt and not GTK+. > > In my current day job, I'm developing

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread Michael Torrie
On 06/27/2016 12:44 AM, Lawrence D’Oliveiro wrote: > On Monday, June 27, 2016 at 6:16:01 PM UTC+12, John Ladasky wrote: > >> Between the Py3 requirement and the need to work with all major OS's, I >> decided to learn PyQt and not GTK+. > > GTK+ is available for P

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread Mark Summerfield
are: - Not very Pythonic. - The event handling works very differently from other toolkits so it can be quite tricky to learn and get right. - The bindings are incomplete (e.g., http://bugs.python.org/issue3405) And for me there are show-stopping weaknesses. - Show stopper #1: there is no ni

Re: Getting back into PyQt and not loving it.

2016-06-27 Thread lorenzo . gatti
PyGTK is obsolete and stopped at Python 2.7, while PyGObject for Windows is several versions behind (currently 3.18 vs 3.21) and it doesn't support Python 3.5. Game over for GTK+. -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread Lawrence D’Oliveiro
On Monday, June 27, 2016 at 6:16:01 PM UTC+12, John Ladasky wrote: > Between the Py3 requirement and the need to work with all major OS's, I > decided to learn PyQt and not GTK+. GTK+ is available for Python 3. No doubt it will work on Windows as well, once Microsoft get

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread John Ladasky
and the need to work with all major OS's, I decided to learn PyQt and not GTK+. In my current day job, I'm developing an application on a Linux box, but I'll be handing it off to Windows users. My choice of PyQt turned out to be the right one in that situation as well. -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread Michael Torrie
On 06/26/2016 07:05 PM, llanitedave wrote: > Not sure that wxPython is really any different in that respect, and > Tkinter doesn't feel Pythonic to me, either -- considering how it's > Tk at heart. So what's the alternative? There really is no good > Python-based GUI tool, and that's a shame. Gu

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread MRAB
rface from GTK+ to Qt (PyQt4 for now as that's what I have installed). For the most part it worked out pretty well. It's been a while since I used PyQt or PySide, and I had forgotten what a horrid Python experience Qt really is, at least in PyQt4. Maybe the bindings for Qt5 are better...

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread Rustom Mody
On Monday, June 27, 2016 at 6:35:31 AM UTC+5:30, llanitedave wrote: > So what's the alternative? There really is no good Python-based GUI tool, > and that's a shame. The last time Ranting Rick made a big rant about this (saying wxpython should replace tkinter in core CPython) everyone took note

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread llanitedave
Qt (PyQt4 for now as that's what I have installed). For > the most part it worked out pretty well. It's been a while since I used > PyQt or PySide, and I had forgotten what a horrid Python experience Qt > really is, at least in PyQt4. Maybe the bindings for Qt5 are better..

Getting back into PyQt and not loving it.

2016-06-26 Thread Michael Torrie
retty well. It's been a while since I used PyQt or PySide, and I had forgotten what a horrid Python experience Qt really is, at least in PyQt4. Maybe the bindings for Qt5 are better... I'll be working with them next as I convert my working code. Qt's a fantastic toolkit, and the most m

Re: How to remember last position and size (geometry) of PyQt application?

2015-11-23 Thread Santosh Kumar
This question was reasked and answered on StackOverflow: http://stackoverflow.com/q/33869721/939986 -- https://mail.python.org/mailman/listinfo/python-list

How to remember last position and size (geometry) of PyQt application?

2015-11-23 Thread Santosh Kumar
Hello all fellow Python programmers! I am using PyQt5 (5.5.1) with Python 3.4.0 (64-bit) on Windows 8.1 64-bit. I don't think this much data was needed. :P I am having trouble restoring the position and size (geometry) of my very simple PyQt app. What I read online is that this is the de

PyQt v5.5 Released

2015-07-19 Thread Phil Thompson
PyQt5 v5.5 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of The Qt Company's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this re

Re: [PyQt] win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-20 Thread Timothy W. Grove
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/objc/_lazyimport.py", line 82, in __init__ if nm.startswith(pfx): AttributeError: 'NoneType' object has no attribute 'startswith'

Re: [PyQt] win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-19 Thread michael h
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/importlib/_bootstrap.py", > line 1532, in _find_and_load_unlocked > > loader.load_module(name) > > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/CoreFoundation/__init__.py", > line 20, in > > }, ()) > > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/objc/_lazyimport.py", > line 82, in __init__ > > if nm.startswith(pfx): > > AttributeError: 'NoneType' object has no attribute 'startswith' > > logout > > > [Process completed] > > > > ___ > PyQt mailing listp...@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyQt v5.4 Released

2014-12-26 Thread Phil Thompson
PyQt5 v5.4 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include su

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-18 Thread Michael Torrie
On 12/18/2014 04:16 AM, Mark Summerfield wrote: > It looks to me that what you are doing is sharing a single core > between your GUI and your processing. Threading isn't usually a good > approach to Python concurrency that is CPU-bound. Except that his code was not CPU-bound to begin with. His re

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-18 Thread Mark Summerfield
ere's an example of how to do this in chapter 4. The example uses Tkinter but I use exactly the same approach in PyQt and PySide. This chapter also discusses many issues related to Python concurrency. -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-12 Thread Marko Rauhamaa
Chris Angelico : > And I don't remember how Java did things, except that I struggled to > find basic fundamental primitives like semaphores, and had to use > synchronized functions/objects instead. Java now has a diverse set of synchornization facilities, but the builtin object synchronization pr

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-11 Thread Chris Angelico
On Fri, Dec 12, 2014 at 6:18 PM, Marko Rauhamaa wrote: > GUI developers have been doing event-driven programming for decades. > That's an excellent preparation for network programming as well. > Unfortunately, the minds of a generation of programmers were > contaminated by the thread craze of the

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-11 Thread Marko Rauhamaa
Michael Torrie : > An asynchronous API lets you start long-running I/O calls and define a > function that is automatically called upon completion. In other words > it's event-driven. Qt may provide everything you need already in an > asynchronous form. GUI developers have been doing event-driven

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-11 Thread Michael Torrie
On 12/11/2014 08:20 PM, iMath wrote: > 在 2014年12月11日星期四UTC+8下午1时25分41秒,Michael Torrie写道: >> On 12/10/2014 09:52 PM, iMath wrote: > "when it comes to I/O and GUIs, asynchronous calls are always better than > threads." > > I cannot grasp your meaning here, IMO, asynchronous calls are done by using

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-11 Thread iMath
rameworks in Python to speak to that, though I > did use Python-Twisted once... very powerful once you get your head > wrapped around it. > > Look through the list archives because in the last 3 or 4 weeks I and > another Python user talked proper thread use with PyQt or PySide, wi

Re: PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-10 Thread Michael Torrie
because in the last 3 or 4 weeks I and another Python user talked proper thread use with PyQt or PySide, with code examples. -- https://mail.python.org/mailman/listinfo/python-list

PyQt: user interface freezed when using concurrent.futures.ThreadPoolExecutor

2014-12-10 Thread iMath
I think the user interface shouldn't be freezed when using concurrent.futures.ThreadPoolExecutor here,as it executes asynchronously , but it doesn't meet my expectations,anyone can explain why ? any other solutions here to not let user interface freezed? code is here http://stackoverflow.com/qu

Re: pyqt darg and drop

2014-10-04 Thread Sachin Tiwari
On Saturday, October 4, 2014 3:35:33 PM UTC+5:30, Sachin Tiwari wrote: > Hi > > > > I want to drag and drop push multiple push buttons but its working for only > for last button. And I want to connect them by a wire. > > > > Please help. > > > > import sys > > from PyQt4 import

pyqt darg and drop

2014-10-04 Thread Sachin Tiwari
Hi I want to drag and drop push multiple push buttons but its working for only for last button. And I want to connect them by a wire. Please help. import sys from PyQt4 import QtGui, QtCore class Button(QtGui.QPushButton): def mouseMoveEvent(self, e): if e.buttons() != Q

Re: pyqt problem

2014-10-02 Thread Sachin Tiwari
On Thursday, October 2, 2014 3:19:22 PM UTC+5:30, Sachin Tiwari wrote: > Hi > > I am learning pyqt, can any one help me to make instances of pushbutton > wherever cursor will be clicked on canvas,like a circuit simulator where we > add components on canvas just by left

Re: pyqt problem

2014-10-02 Thread Mark Lawrence
On 02/10/2014 10:49, sachin.tiwar...@gmail.com wrote: Hi I am learning pyqt, can any one help me to make instances of pushbutton wherever cursor will be clicked on canvas,like a circuit simulator where we add components on canvas just by left or right click. Thanks & Regards, Sa

pyqt problem

2014-10-02 Thread sachin . tiwari50
Hi I am learning pyqt, can any one help me to make instances of pushbutton wherever cursor will be clicked on canvas,like a circuit simulator where we add components on canvas just by left or right click. Thanks & Regards, Sachin -- https://mail.python.org/mailman/listinfo/python-list

Re: [PyQt] Automatic Crash Reporting

2014-09-26 Thread Detlev Offenbach
ing module that would > work nicely with a python3/pyqt4 application? Thanks. > > Tim > ___ > PyQt mailing listp...@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- *Detlev Offenbach* det...@die-of

Re: How to add ftp put function in PyQT network ftp demo

2014-07-02 Thread 不坏阿峰
在 2014年7月1日星期二UTC+7下午5时27分59秒,不坏阿峰写道: > I want to modify the pyqt network ftp demo to include an upload function, but > I am failing. Could someone can show me how to do this? I have tried to add > this code, but it does not work. > > [Orignal > demo]https://github.com

How to add ftp put function in PyQT network ftp demo

2014-07-01 Thread 不坏阿峰
I want to modify the pyqt network ftp demo to include an upload function, but I am failing. Could someone can show me how to do this? I have tried to add this code, but it does not work. [Orignal demo]https://github.com/Werkov/PyQt4/blob/master/examples/network/ftp/ftp.py at First, i add

ANN: PyQt v5.3 Released

2014-05-28 Thread Phil Thompson
PyQt5 v5.3 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include su

ANN: PyQt v5.2 Released

2014-01-07 Thread Phil Thompson
PyQt5 v5.2 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include

a dialog for throublshooting instead of print command pyqt

2013-09-04 Thread Mohsen Pahlevanzadeh
Dear all, I need to a dialg such as aler in javascript in pyqt, my question is at: http://stackoverflow.com/questions/18625406/a-dialog-for-throublshooting-instead-of-print-command-pyqt Before answering, thank you... Yours, Mohsen -- https://mail.python.org/mailman/listinfo/python-list

pyqt and doesnt work out of mainwindow

2013-09-02 Thread Mohsen Pahlevanzadeh
Dear all, My question is at: http://stackoverflow.com/questions/18564293/main-program-work-good-but-when-put-it-into-a-function-doesnt-work-pyqt before answering, thank you Yours, mohsen -- http://mail.python.org/mailman/listinfo/python-list

Re: Using PyQT with QT Designer

2013-08-30 Thread tausciam
ou need to go to Form -> Preview... to see the actual preview. > > That said... > > 1.) You may want to ask your question on the PyQt mailing list. Though > you are talking with the undisputed PyQt expert in Phil, there are more > people on the other list who are familiar wit

Re: Using PyQT with QT Designer

2013-08-24 Thread tausciam
7;s just the regular design view. > (you can tell by the little dots in the background) > > You need to go to Form -> Preview... to see the actual preview. > > That said... > > 1.) You may want to ask your question on the PyQt mailing list. Though > you are talking with t

Re: Using PyQT with QT Designer

2013-08-23 Thread tausciam
preview. > > That said... > > 1.) You may want to ask your question on the PyQt mailing list. Though > you are talking with the undisputed PyQt expert in Phil, there are more > people on the other list who are familiar with PyQt and who may be willing > to look more closely at

Re: Using PyQT with QT Designer

2013-08-23 Thread Lee Harr
ell by the little dots in the background) You need to go to Form -> Preview... to see the actual preview. That said... 1.) You may want to ask your question on the PyQt mailing list. Though you are talking with the undisputed PyQt expert in Phil, there are more people on the other list who are f

Re: Using PyQT with QT Designer

2013-08-23 Thread tausciam
ut how to import and use my form as designed by qt designer > > > and run through pyuic4 it doesn't seem to even notice my ui file...and > > > certainly isnt acting on it. > > > > > > > I don't know PyQT, so I've kept quiet so far... &

Re: Using PyQT with QT Designer

2013-08-23 Thread Dave Angel
sign it in QT Designer. It is designed > just like I want it. The problem is, when I try to follow zetcode and other > tutorials about how to import and use my form as designed by qt designer > and run through pyuic4 it doesn't seem to even notice my ui file...and > certainly isnt

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
Again thoughI'm finished with QT Designer. I have the finished product I want exactly like I want it. But, as ive shown in the screenshots, I'm doing exactly what ive seen in zetcode and other tutorials but It doesn't seem to incorporate and act upon that ui file. The first thing you notice is

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
doesn't seem to even notice my ui file...and certainly isnt acting on it. I posted my code above where I was trying anything just to get it to use that ui I designed in qt designer.so far to no avail -- Forwarded message -- From: "Michael Staggs" Date: Aug 23, 20

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs wrote: > Right. I know that if I redesign it I have to run pyuic4 again and that I > shouldn't change that file...let qt designer do its job. > > But, that's exactly what I'm having the problem with...incorporating the > file pyuic4 gave me... an

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
Right. I know that if I redesign it I have to run pyuic4 again and that I shouldn't change that file...let qt designer do its job. But, that's exactly what I'm having the problem with...incorporating the file pyuic4 gave me... and why I posted here. If you can point me towards something I need to

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
On Fri, 23 Aug 2013 08:00:29 -0500, Michael Staggs wrote: > I tried that this morning and it destroyed my form. So, right now, that's > probably not what I'm looking for. > > But, if you look at that picture, the app isn't resized to 800x600 like it > says in the ui file. The pixmaps aren't on th

Re: Using PyQT with QT Designer

2013-08-23 Thread Michael Staggs
I tried that this morning and it destroyed my form. So, right now, that's probably not what I'm looking for. But, if you look at that picture, the app isn't resized to 800x600 like it says in the ui file. The pixmaps aren't on the buttons like I set them up in the ui file. It's not using the ui fi

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
On Thu, 22 Aug 2013 18:08:14 -0700 (PDT), tausc...@gmail.com wrote: > On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote: > >> It looks like you aren't using a layout to arrange your widgets. >> >> Explicitly specifying geometries is a bad idea. >> >> >> >> Phil > > Thanks.QT

Re: Using PyQT with QT Designer

2013-08-22 Thread tausciam
On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote: > It looks like you aren't using a layout to arrange your widgets. > > Explicitly specifying geometries is a bad idea. > > > > Phil Thanks.QT Designer uses set geometry and I'm totally lost as how to implement it. I've tried

  1   2   3   4   5   6   7   8   >