ayout and call
addStretch.
On Mon, Aug 26, 2013 at 9:36 AM, Eric Frederich wrote:
> Would appreciate some help here.
> I don't like how these stacked widgets take up all of this vertical space
> when the window is resized.
> I have tried setting a size policy to minimum on the st
Would appreciate some help here.
I don't like how these stacked widgets take up all of this vertical space
when the window is resized.
I have tried setting a size policy to minimum on the stacked widgets but no
luck.
On Fri, Aug 23, 2013 at 4:02 PM, Eric Frederich wrote:
> Here is
Here is a small example.
I tried putting a vertical spacer on the bottom yet these stacked widgets
want to take up space when resized.
#!/usr/bin/env python
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class TestWidget(QWidget):
def __init__(self, labels, parent=None):
super(
:
> On 28/06/13 15:45, Eric Frederich wrote:
>>
>> I'm having trouble working with absolute file paths in my qrc resource
>> file with PyQt.
>> Am I doing something wrong or is it just something that rcc happens to
>> support but not pyrcc4?
>>
I'm having trouble working with absolute file paths in my qrc resource
file with PyQt.
Am I doing something wrong or is it just something that rcc happens to
support but not pyrcc4?
Here is my resource file
$ cat resources.qrc
/usr/share/icons/oxygen/32x32/actions/document-save-
post
a "do it for me" email so I provided the implementation that I tried
;-)
Thanks,
~Eric
On Tue, Jun 25, 2013 at 8:22 AM, David Boddie wrote:
> On Mon Jun 24 20:24:25 BST 2013, Eric Frederich wrote:
>
>> I'm trying to tail several files graphically.
>> I have bee
ll is there
anything else wrong with my code that I should know about?
Thanks for your help.
On Mon, Jun 24, 2013 at 7:25 PM, John Lee wrote:
> On Mon, 24 Jun 2013, Eric Frederich wrote:
>
>> I'm trying to tail several files graphically.
>> I have been trying to find a way to
y are :-(
Any Qt4 help would be appreciated.
Am I cleaning up my tail processes correctly? Is it just the QThreads I'm
screwing up? Are there other hidden dangers with my implementation?
On Jun 24, 2013 7:25 PM, "John Lee" wrote:
> On Mon, 24 Jun 2013, Eric Frederich wrote:
I'm trying to tail several files graphically.
I have been trying to find a way to tail several files in a GUI
without much luck at all.
I get errors from tail saying broken pipe.
I get PyQt errors saying underlying C++ objects have been destroyed.
I get other Qt errors saying that threads are still
Hello,
I have a client application that does a long running data traversal
making a lot of server calls.
I put this operation in a QThread so that the GUI would stay responsive.
I am now using a profiler on this application trying to see which
calls to the server are taking most of the time.
The p
cfoo
def bar(char* x):
cdef int
with nogil:
cfoo.bar(x, &y)
return y
After doing this my GUI is more responsive than ever.
This is my first gripe with the GIL and I have done used the
multiprocessing module before with work queues.
Weird.
Thanks for the help.
On Tue, Aug 30
Hello all,
I am having problems with an unresponsive GUI.
I have a GUI for a client in a client / server program.
For long running operations, I implemented a QThread subclass and do
everything in the run method.
Still, I have an unresponsive GUI.
If I replace all the the server calls with a time
ug 6, 2011 at 1:14 PM, Baz Walter wrote:
> On 05/08/11 17:46, Eric Frederich wrote:
>>
>> Any takers?
>>
>> On Thu, Jul 7, 2011 at 12:38 PM, Eric Frederich
>> wrote:
>>>
>>> Hello,
>>>
>>> I am trying to create a login dialog for
Any takers?
On Thu, Jul 7, 2011 at 12:38 PM, Eric Frederich
wrote:
> Hello,
>
> I am trying to create a login dialog for my application.
> Logging in can take a couple of seconds so I wanted to show a progress
> bar during the login process.
> I think that for my QProgressBar
Hello,
I am trying to create a login dialog for my application.
Logging in can take a couple of seconds so I wanted to show a progress
bar during the login process.
I think that for my QProgressBar to animate during this time, I need
to log in on a different thread. Is this true?
So, below I hav
Hello,
I have some data that I would like to be displayed somehow.
I have a bunch of parent / child relationships.
These relationships can form loops.
Also, children can have multiple parents.
Can this be put into a tree view?
I have ran into problems trying to do this via AbstractItemModel
becau
nabled, True))
self.connect(b, SIGNAL('SLEPT'), self.sender().setText)
b.start()
def print_data(self, blah):
print blah.data
if __name__ == '__main__':
import sys
app = QApplication(sys.argv[1:])
md = MyDialog()
md.show()
sys.exit(
I was trying to get an example working with a QThread.
I wound up creating one but after running it for a while and pressing
buttons I got the error...
QPainter::end: Painter ended with 2 saved states
Am I doing something wrong?
I wanted an example where a worker thread would query a database or
s
Is there a PyQt installer built with Visual Studio?
I am embedding a Python interpreter in a 3rd party application and creating
bindings to that same 3rd party's libraries. Unless I am mistaken I am
fairly sure that I need both Python and my bindings created using Visual
Studio. I have tried to
Hey Phil,
I recently built some Python bindings (using Cython) for a 3rd party
library that had to be built using Visual Studio 2005.
Its great having these bindings and being able to use Python.
Unfortunately, to install any other Python modules I have to build
them myself as nobody offers versio
I'd like to be able to do something in PyQt that I know how to do in
Java / Swing and that is run certain processes off of the EDT (event
dispatch thread).
Normally, I lock down different parts of the gui before hand, and then
re-enable them after the operation is done.
This must be possible in P
ht context.
Any help is appreciated.
I do have it working now, but I don't like how long this is...
QCoreApplication.translate("MyContext", "My String")
Thanks,
~Eric
On Wed, Sep 29, 2010 at 12:22 PM, Baz Walter wrote:
> On 29/09/10 15:19, Eric Frederich wrote:
I have a bunch of helper functions that raise exceptions and I'd like the
messages in those exceptions to be translated.
How should I get those strings translated?
QObject.tr is not a static method, I can't just call it.
I need a QObject don't I?
What is the best practice here?
Thanks,
~Eric
Hello,
Here's a stripped down example of my problem.
I have a group of widgets that I keep together with a class called
MyWidgetGroup.
It holds a line edit and a label which together have a meaning (getMeaning)
but by themselves mean nothing.
I need to make connections to a method so it'll get ca
I'm having some trouble trying to figure out how to get two line edits to
constantly be in sync including cursor position.
I'm sure its simple, or a matter of creating the right connections, but I
can't seem to figure it out.
I'm hooking two line edits textChagned signal up to the other's setText
s
On Thu, Sep 16, 2010 at 1:27 PM, fpp wrote:
> On Thu, Sep 16, 2010 at 7:24 PM, Eric Frederich
> wrote:
> >
> > So if I connect the tab bar's currentChanged(int) signal to a dock
> widget's
> > method, where does the dock widget get the data from?
> >
On Thu, Sep 16, 2010 at 11:55 AM, fpp wrote:
> On Thu, Sep 16, 2010 at 5:02 PM, Eric Frederich
> wrote:
> > Trying to get my first PyQt MainWindow application going.
> > Its going to be to edit multiple [we'll just call them] documents in
> tabs.
> > I will have
Trying to get my first PyQt MainWindow application going.
Its going to be to edit multiple [we'll just call them] documents in tabs.
I will have several dockwidgets that need to correspond to the currently
selected tab.
So when the tab changes, or the data within the document changes, several
dock
I looked at the example with PyQt for system tray icons and tried to use it
in my application.
I couldn't get it to work.
I couldn't find what the example was doing that I wasn't doing. I even did
the stuff in the same order.
I wound up taking the example and in-lining a bunch of functions then b
I constantly find myself with options like...
a) create a connection from foo's custom signal to bar's slot or
b) when creating the foo object, give it a reference to bar, and instead of
emitting a custom signal, just call bar's slot directly.
What is more lightweight an instance variable
If I find myself subclassing a widget just to get something to happen on an
event am I doing something wrong?
Is there another way to accomplish this?
Is there a way to use an event like a signal in a self.connect?
For example... If I want so do something when a label is clicked I have done
the fo
Whoops, didn't realize I took this conversation off the mailing list.
So, does this mean it is not possible then to have a validator in Python2
fix the string?
On Sat, Aug 14, 2010 at 7:12 AM, Phil Thompson
wrote:
> On Fri, 6 Aug 2010 14:57:45 -0400, Eric Frederich
> wrote:
> &
Reading the documentation here...
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qvalidator.html
... I see that the validate() function is listed twice.
One returning (State, QString, int) and another returning just (State, int)
I would think this means I have the choice to return eit
33 matches
Mail list logo