On Saturday 23 July 2011 07:41:18 Vincent Vande Vyvre wrote:
> It's normal, lineedit.text() returns a QString and Python don't like that.
>
> Use : os.path.split(str(self.lineedit.text()))
>
> --
> Vincent V.V.
> Oqapy . Qarte+7 . PaQager
Aha, thats got it, thankyou very much
Martin
_
hi Yaşar,
aah sorry , yes its fails when assigning it to its own string, so it's a split
problem? rather than QFileDialog
Martin
On Saturday 23 July 2011 08:07:42 Yaşar Arabacı wrote:
> -- Yönlendirilmiş ileti --
> Kimden: Yaşar Arabacı
> Tarih: 23 Temmuz 2011 08:07
> Konu: Re:
Le 23/07/11 07:07, Yaşar Arabacı a écrit :
-- Yönlendirilmiş ileti
--
Kimden: Yaşar Arabacı
Tarih: 23 Temmuz 2011 08:07
Konu: Re: [PyQt] QFileDialog error
Kime: Martin Airs
Le 23/07/11 03:12, Phlip a écrit :
On Fri, Jul 22, 2011 at 1:14 PM, BJ wrote:
I have a webpage containing quite a bit of _javascript_ to display Google
Maps.
It seems to run well on IE and Firefox browsers but is unable to run in a
QWebView.
C
-- Yönlendirilmiş ileti --
Kimden: Yaşar Arabacı
Tarih: 23 Temmuz 2011 08:07
Konu: Re: [PyQt] QFileDialog error
Kime: Martin Airs
What happens when you assign it to its own string. Do you get error while
assigning it to string or when using that string with file dialog?
2011/7
Good day all,
In this test case script I have added at the bottom, It bombs with this error...
[martin@desktop python]$ python testcase.py
Traceback (most recent call last):
File "testcase.py", line 17, in pressed
filename = QtGui.QFileDialog.getOpenFileName(self, 'Open file',
os.path.spl
On Fri, Jul 22, 2011 at 1:14 PM, BJ wrote:
> I have a webpage containing quite a bit of javascript to display Google
> Maps.
> It seems to run well on IE and Firefox browsers but is unable to run in a
> QWebView.
Can you report any error messages, or logging? Can you survey other
Ajax sites & se
>> in long-running
>> programs
>>
>> when many many items have been added, the
>> scene
>>
>> starts to slow down.
> Did you checked the na
hello,
I'm having trouble finding tag-less elements in the dom tree.
Can someone explain what I'm doing wrong ?
# web2 is a QtWebView, and here it's filled with some contents
frame = self.web2.page().mainFrame()
frame.setHtml ( """
This is the Titls
first line with p-ta
Hi,
I was looking at SIP documentation and trying simple c++ example when I got:
g++ -c -O2 -g -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o
sipwordcmodule.o sipwordcmodule.cpp
g++ -c -O2 -g -fPIC -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o
sipwordWord.o sipwordWord.cpp
g++ -sh
On Friday 22 July 2011, 21:04:44 Lee Harr wrote:
> I work on a turtle graphics application written using
> PyQt (pynguin.googlecode.com) and I am stuck on one
> particular feature that I would like to add.
>
> Right now, I am using QGraphicsScene and when the
> turtle draws, it uses QGraphicsItem b
On 22-07-2011 11:49, Phil Thompson wrote:
> On Thu, 21 Jul 2011 18:12:03 +0200, Stef Mientki
> wrote:
>> hello,
>>
>> I use CodeMirror as an editable codeeditor in a QWebView.
>> After creating an inserting CodeMirror, I get a reference to that
>> CodeMirror object.
>> Now I want to execute some o
I have a webpage containing quite a bit of javascript to display Google
Maps.
It seems to run well on IE and Firefox browsers but is unable to run in a
QWebView.
bob
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.
On Monday 18 July 2011, 20:36:53 Jeremy Sanders wrote:
> Hi - I'm having problems with the following code where a QRunnable
> emits a signal then ends. If you click the button it should print
> 1,2,3. It sometimes works for the first few times but the wrong
> number of arguments is given to the slo
I work on a turtle graphics application written using
PyQt (pynguin.googlecode.com) and I am stuck on one
particular feature that I would like to add.
Right now, I am using QGraphicsScene and when the
turtle draws, it uses QGraphicsItem based objects to
show the results. Mostly QGraphicsPathItem,
On Fri, 22 Jul 2011 23:08:51 +0800, zhang jian
wrote:
> I can retrieve the PyQt widget via Python C API, but it is a PyObject*,
so
> how to convert PyObject* to a QObject* ? Once I have the QObject*, the
rest
> should be easy in C++.
>
> zhang
http://www.riverbankcomputing.com/static/Docs/sip4/c
I can retrieve the PyQt widget via Python C API, but it is a PyObject*, so
how to convert PyObject* to a QObject* ? Once I have the QObject*, the rest
should be easy in C++.
zhang
On Fri, Jul 22, 2011 at 5:21 PM, Phil Thompson
wrote:
> On Tue, 19 Jul 2011 04:26:52 +0800, zhang jian
> wrote:
> >
2011/7/19 Jeremy Sanders :
> Is there an easy way to signal a result from a QRunnable? I've worked
> around this problem by replacing the code with a worker thread and a
> semaphore.
It works for me with a separate QObject-derived class, which properly
declares the signal using the new-style signa
Hello! I have a question.
I want to add statusbar tip of menu not a action in menu.
So, I just set a statustip to QMenu returned by
"self.menuBar().addMenu(...)"
I thought it should work because QMenu inherits QWidget has
'setStatusTip' method.
But, it does not work, instead, some widgets (ex,
On Thu, 21 Jul 2011 18:12:03 +0200, Stef Mientki
wrote:
> hello,
>
> I use CodeMirror as an editable codeeditor in a QWebView.
> After creating an inserting CodeMirror, I get a reference to that
> CodeMirror object.
> Now I want to execute some of the methods of the CodeMirror object.
> Is that p
On Thu, 21 Jul 2011 13:41:32 +0200, Linos wrote:
> Hi,
> i am trying to do my first library wrapper to the libfprint c lib
> (http://www.freedesktop.org/wiki/Software/fprint/libfprint) using SIP, i
> have
> any doubts, sorry if any or all of them are pretty obvious but i develop
> nearly
On Tue, 19 Jul 2011 00:05:44 -0700, "Vivek Narvekar"
wrote:
> Hello,
>
>
>
> I am badly stuck up with some SIP syntax. Please help.
>
> I am trying to upgrade SIP files, which were originally written for SIP
> version 3.3, to a newer version SIP 4.7.9
>
>
>
> 1) I have a class membe
On Tue, 19 Jul 2011 04:26:52 +0800, zhang jian
wrote:
> Hi,
>
> I have a question about embedded PyQt inside a Qt (C++) app. For now I
have
> an app totally written in PyQt, then I want to embed it inside a Qt app
> written in C++. I have no problem putting PyQt ui stuff inside a Qt
Widget.
> I c
I'm attempting to use flot, a jquery/javascript plotting library to draw
plots in a QWebView. Everything goes well except that I need to resize the
plot as the window resizes. I'm doing this in Javascript, of course. Once
the resize occurs and my redraw callback fires, I get a warning over and
o
David Boddie wrote:
>> I switched to a vertically scrolling layout, and I'll just stuff what
>> I need into it, one by one.
> Have you thought about just using a layout and putting rich text QLabel
> widgets and buttons into it?
C-;
> Call the findChildren() method, optionally passing the class
> I changed the code for the text object to use the widget's size hint.
Awesome, thanks, but..!
I can't click on the form; the point was simulating a web page's form.
I switched to a vertically scrolling layout, and I'll just stuff what
I need into it, one by one.
(I'm going for a chat scroll, l
hello,
I use CodeMirror as an editable codeeditor in a QWebView.
After creating an inserting CodeMirror, I get a reference to that CodeMirror
object.
Now I want to execute some of the methods of the CodeMirror object.
Is that possible from within Python ?
# get the webframe
frame = self
Hi,
i am trying to do my first library wrapper to the libfprint c lib
(http://www.freedesktop.org/wiki/Software/fprint/libfprint) using SIP, i have
any doubts, sorry if any or all of them are pretty obvious but i develop nearly
ever on python, a bit on Qt C++ so all of this it is a bit strange
Hi - I'm having problems with the following code where a QRunnable emits
a signal then ends. If you click the button it should print 1,2,3. It
sometimes works for the first few times but the wrong number of
arguments is given to the slot after that.
I'm using 4.8.3 on Linux (x86).
Is this a PyQt
Hello,
I am badly stuck up with some SIP syntax. Please help.
I am trying to upgrade SIP files, which were originally written for SIP
version 3.3, to a newer version SIP 4.7.9
1) I have a class member function, written in one of the SIP file,
which looks as below.
double* GetIcValue
On Sun Jul 17 04:57:00 BST 2011, Phlip wrote:
> Hi, group. I'm trying to embed an object into a QTextEdit which is NOT
> (shocked gasp!) an SVG image.
>
> Foundational for embedding a panel, I'm trying to embed a widget. But
> I can't seem to get the size right. Here's the sauce:
[...]
> If you
Hi,
I have a question about embedded PyQt inside a Qt (C++) app. For now I have
an app totally written in PyQt, then I want to embed it inside a Qt app
written in C++. I have no problem putting PyQt ui stuff inside a Qt Widget.
I can call stuff in PyQt from Qt using PyObject_CallMethod(), but I do
Hi - I'm having problems with the following code where a QRunnable emits a
signal then ends. If you click the button it should print 1,2,3. It
sometimes works for the first few times but the wrong number of arguments is
given to the slot after that.
Is this a PyQt bug? I'm using 4.8.3 on Ubuntu
I'm trying to save the custom colors of QColorDialog using QSettings. On
Windows this is working correctly, but on Mac I'm having some problems:
1. QColorDialog.customColor() returns a long instead of an int
2. When I save that long using QSettings, it comes back as an int with a
value of -1
34 matches
Mail list logo