Hello,
I know that the author of this project
http://www.henning-schroeder.de/codeaide/ is on this list.
I would like to know the method used for implementing FOLDING in a
QPlainTextEdit. I'm just interested with the way to hide-show some special
lines, and not with the way to find the line to
Hello,
elif construct(Even...) had no effect.
You could try some uggly thing like the following one :
==
def onTrayIconActivated(self, reason):
clickDetected = 0
if reason == QSystemTrayIcon.DoubleClick:
clickDetected
Hello,
>>> I tried installing PyQT 4.8 unsuccessfully. I think the main problem is
>>> that I am using Python(x,y) (Windows XP).
pythpn(xy) uses PyQt so this can be a reason of your problem. You can try to
post your problem here to have some informations about possible conflicts.
Regards.
C.
_
Hello.
Sorry for this 142345th version about this feature , but I'm
looking for "folding" and also "line numbering" usable with QtextEdit.
Regards.
Christophe.
PS : I know how to do that with QScintilla, but I would like to also have the
possibility to see pictures and at the same
Envoyé depuis Ma Messagerie SFR. 10 Go de stockage - en savoir plus.
Message du : 07/10/2010
De : projet...@club-internet.fr
A : "Hans-Peter Jansen"
Copie à :
Sujet : Re: Re: [PyQt] Mac OS-Looking for the official examples
Thanks. I've found the C+
Hello,
I've build PyQt on my mac and do not know where to look for the official
examples proposed by PyQt if there are ones.
Christophe
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Hello,
CodeAide looks interesting.
I've two questions :
Is it to add other languages that Python ?
How do you treat the line numbering and the folding ?
>>> auto-complete
You can find a method here :
http://www.developpez.net/forums/d921494/autres-langages/python-zope/general-python/naturel-
Hello,
I would lik to know if there are risks to install pySide and PyQt on the same
computer.
I'm developing with PyQt but pySide proposes a package, so I will propose it to
users on Mac so as to have an easy way to install my freeware.
Any information is welcome.
Christophe.
Hello,
>>> I certainly hope to cover WebKit.
You'll make an happy man... ;-)
>>> You mean a binary package I guess... that's one for Phil:-)
Yes.
Christophe
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailm
Hello,
>>> I would very much like to do a new edition of the PyQt book,
>>> but it will probably not be for another year or two due
>>> to other commitments.
I'll be patient... :-( I hope that the new edition will show new feature like
playing with WebKit and JavaScript.
>>> I want the next edi
Hello,
I would ike to have infos about the future new version for Python 3 of this
great book. Is there a publication date ?
C.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
where to download dip?
Maybe here : http://www.riverbankcomputing.com/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Hello.
The official doc. gives the following instructions to install
QScintilla. This works well with PyQt4 installed for Python 3.
= 1ST STEP =
cd path_dir_Qt4_in_unzipped_Qscintilla_source
qmake qscintilla.pro -spec macx-g++
make
sudo mak
Hello,
Daniele Esposti, do you know how to compile Scintilla and QScintilla for a Mac ?
>>> I wrote some instructions to compile SIP and PyQt4 under Mac OS X Snow
>>> Leopard, here the link
>>> http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard .
That's a good thing.
You could add
>>> It's easy to make pyenchant work with pyqt. Check this out:
>>> http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor
The problem is that this project is a small one and doesn't work on Snow
Leopard, even after enchant has been installed via MacPort.
>>> It's a generic
>>> It's easy to make pyenchant work with pyqt. Check this out:
>>> http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor
The problem is that this project is a small one and doesn't work on Snow
Leopard, even after enchant has been installed via MacPort.
>>> It's a generic "edit
Hello,
is there some chance that PyQt to have a spelling tool one day ? It could be
very usefull to have such a library which could work similarly to pyenchant for
example.
Best regards.
C.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://w
Thanks for all.
There is a very simple example here :
http://pysnippet.blogspot.com/2010/01/calling-python-from-javascript-in-pyqts.html
I think it could be helpfull.
Christophe
Message du : 07/06/2010
De : "David Boddie "
A : pyqt@riverbankcomputin
Hello,
>>> QtWebKit, not PyQt, provides the bridge between C++ and JavaScript. PyQt
>>> integrates Python with Qt's meta-object system
>>> which gives you the bridge between Python and JavaScript for free.
Are there simple and not so simple examples of this kind of functionnalities
somewhere ?
C
Hello,
>>> you would do well to take a look at the experimental pyjd pyqt4,
>>> ...
>>> you have a couple of source code bundles to choose from:
>>> http://pyjamas-dev.googlegroups.com/web/pyjamas_pyqt.tgz
>>> or http://sf.net/projects/pyjamas and go to the git repository.
Thanks I'll take a look a
Hello,
I would like to use WebKit so as to work with dynamic JavaScript HTML page.
For exemple, I would like to have an HTML page in the WebKit, the HTML page
havine a JavaScript that could load and send a string for example.
My problem is that I do not know how to communicate from PyQt with the
Hello,
I would like to build QScintilla on my Mac Book Pro Snow Leopard. What I have
to do ?
I'have already build pyqt for Python 3, with Python 2-6 still existing on my
Mac, using the following commands :
--
Hello,
I'm intesresting to see how you use VTK with PyQt. Is your code visible
somewhere on the web ?
Best regards and sorry for not ansewering your question.
Christophe
My Windows application uses PyQt and VTK. When I try to build an executable
with py2exe, the following modules appear to be
Hello,
I would like to add a tab-completion in TextEdit or/and in "Qscintilla
TextEdit". What I mean is something that when you type "riv" will propose in a
combobox a list like ["river", "riverbank"], and when the user chooses one of
the word, then "riv" become the word choosen.
Is there s
Thanks for this information and for the link.
C.
==
When making Qt 32 bit builds on snow leopard, you probably also want to set
this environment variable:
export VERSIONER_PYTHON_PREFER_32_BIT=yes
Note that if you want to build python 3.x 64 bit on Snow Leopard, your best bet
is
>>> This assumes a 64-bit python-3 installation. How was python installed?
>>> My understanding is that the universal Mac binaries provided at
>>> python.org do not include support for x86_64.
In that case, how can I use PyQt on Snow Leopard ?
___
PyQt m
Hello,
I've downloaded qt-sdk-mac-opensource-2010.02.dmg . I've installed it.
Then I've downloaded PyQt-mac-gpl-4.7 and sip-4.10.
I've compiled sip using the following commands :
python3.1 configure.py
make
sudo make install
No problem.
Then I decide, because I'm a crazy man :-) to compile pyq
Hello,
I'm looking of examples showing how to use JavaScript programs (like for
example jQuery) in a WebView.
Every kinds of clues are welcome.
Best regards.
Christopĥe
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing
Hello,
in the following code the JavaScript is launched before the loading of the HTML
page.
Is there a way to call a JavaScript only when the whole page is loaded in the
QWebView ?
Best regards.
Christophe.
==
# -*- coding: utf-8 -*-
#!/us
Indeed in the code there is evaluateJavaScript instead of
evaluatejava-script .
Christophe.
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# Sources
# http://www.mail-archive.com/pyqt@riverbankcomp
Hello,
I have joined a file simpleHtmlPageColorViaJS.html which use a very simple
script and jQuery : http://jqueryjs.googlecode.com/files/jquery-1.3.2.js .
I would like to do something similar via pyQt by adding some JS code to
simpleHtmlPage.html.
I have used the following code jqueryFromPyqt
Hello,
I'm looking for a tutorial about the use of JavaScript inside a pyQt
application.
Every kind of clue is welcome.
Christophe.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Cezary Krzyżanowski a écrit :
It would be even nicer if binary distributions of PyQt and Sip would
be available on the website, so compound with the UB build of Qt for
Mac a developer would have instantly a toolchain for building and
shipping UB apps.
Yes it would be very great because compilin
Hello,
I've bought a Mac and this is my first one. So I do not how to install
pyQt on a Mac. Is there an easy way to do that ?
Best regards.
Christophe.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/li
Baz Walter a écrit :
projetmbc wrote:
Baz Walter a écrit :
hello christophe
i expanded my earlier example to include folding. this is a complete
config files lexer based on the lexer for properties files in
src/LexOthers.cpp.
Thanks for this. Santa Claus exists... ;-)
I'll look a
Hello,
in some language like HTML there are PhP codes and/or JavaScript code
embeded. It could be usefull to have a way to tell to Scintilla to use
some specific Lexer for specific lines.
With this kind of feature, it could be easy to make custom lexers that
call general ones for some part of t
Baz Walter a écrit :
projetmbc wrote:
Baz Walter a écrit :
hello christophe
i expanded my earlier example to include folding. this is a complete
config files lexer based on the lexer for properties files in
src/LexOthers.cpp.
Thanks for this. Santa Claus exists... ;-)
I'll look a
Baz Walter a écrit :
projetmbc wrote:
I still have a little problem because I only want to have the
comments in bold font in my example. Indeed all is in bold font. I
don't understand why.
the problem is this line:
if style == self.Comment or self.Comment_End:
i think you
Thanks to Baz WALTER, I've finally done a very simple example of folding
with QScintilla.
I still have a little problem because I only want to have the comments
in bold font in my example. Indeed all is in bold font. I don't
understand why.
Every kinf of help will be appreciated.
Christophe
Lukas Hetzenecker a écrit :
I tried to embed a Matplotlib FigureCanvas into a QTabWidget.
But at the first start of my script - the main.py in the attatched example -
the widget in the Tab is incorrectly sized.
If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put
it in
Baz Walter a écrit :
hello christophe
i expanded my earlier example to include folding. this is a complete
config files lexer based on the lexer for properties files in
src/LexOthers.cpp.
Thanks for this. Santa Claus exists... ;-)
I'll look at and study your code to see how to do my simple
projetmbc a écrit :
Maybe I've forgotten to send something.
Christophe
Maybe I've forgotten to send something **to QScintilla**.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Hello
Baz Walter gives me somethiong to start with QScintilla but I don't
uderstand why the joined code doesn't make possible to reduce or expand
the folders.
Maybe I've forgotten to send something.
Christophe
#!/usr/bin/env python
#coding=utf-8
import sys
from PyQt4 import QtCore, QtGui, Qsc
Hello,
normally,
self.editor.setFolding(Qsci.QsciScintilla.BoxedTreeFoldStyle) asks to
the QScintilla widget to reduce or expand foldings by using the mouse.
This doesn't work in the joined code even if foldings are marked by a
vertical line.
What's the problem with the way I define option
Hello,
I've seen some C++ lexers using styler.SetLevel(nbLine,nbLevel) so
as to do folding. Is there an equivalent of it ?
Best regards.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Baz Walter, I don't know if you are in the riverbanks'team but it could
be very usefull to put your example in the official documentation.
Regards.
Christophe.
projetmbc a écrit :
Your example is great. Easy to understand. Thanks a lot ! :-)
With this, I could start to study
Your example is great. Easy to understand. Thanks a lot ! :-)
With this, I could start to study how to do more sophisticated things
like folding.
Christophe an happy man. :-D
Baz Walter a écrit :
>> I hope that someone can help me.
>>
>> Best regards.
>> Christophe
hello christophe
here'
Hello,
I would like to know if someone has already made a console so as to see
the execution step by step of a Python script launched via a process.
Best regards.
Christophe
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcom
A little error but the code still not works :
if self.editor.text()[1] == '#':
must be changed to
if self.editor.text()[0] == '#':
projetmbc a écrit :
After the long struggle of the newbie, I read part of code of Eric so
I can start something.
I don
After the long struggle of the newbie, I read part of code of Eric so I
can start something.
I don't understand what's wrong in the following lines (a line begining
by # must be red in the editor but it's blue) :
=
class myLexer(Qsci.QsciLexerCustom):
def des
Hello,
I'm trying to do a very simple lexer wich only detects a python single
line comment :
ID_DEFAULT = 0
ID_COMMENT = 1
class myLexer(Qsci.QsciLexerCustom):
def description(self, style):
if style == 0:
print 'ID_DEFAULT'
return
projetmbc a écrit :
H'ello,
it is too hard to understand what it must be done sucha built with a
custom lexer which could be recalled the harder lexer... :-)
I want to say :
"it is too hard to understand what it must be done such as to build a
custom lexer which could be recalled
H'ello,
it is too hard to understand what it must be done sucha built with a
custom lexer which could be recalled the harder lexer... :-)
More seriously, I would like to know where I can do suggestions for a
more easy use of it. There is a big incoherence to propose something so
easy to use s
Hello,
I would like to know if QSyntaxHighlighter can work with folding. I
don't think so but...
Best regards.
Christophe
PS : Indeed I've tried to use QSciScintilla and its custom lexer but
with no simple examples to start it becomes to be very boring to try to
find an hypothetical clue. I d
Hello,
why the following code doesn't print anything in the console ?
Best regards.
Christophe
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Documents and
Settings\Christophe\Mes
documents\2,pyBaNaMa\DebuterAvecPythonEtPyQT\CodesProjets\04-Proj4_MiniEditHTM
Phil Thompson a écrit :
On Mon, 15 Jun 2009 19:02:58 +0200, projetmbc
wrote:
Hello,
I'm always trying to make my own lexer but I don't have enough
informtaion to start easily.
I have to implement some methods but what have I to do with the method
description.
Wh
Greg Smith a écrit :
Awesome! Merci beaucoup. That did the trick!
Greg
-Original Message-
From: projetmbc [mailto:projet...@club-internet.fr]
Sent: Thursday, June 25, 2009 3:56 AM
To: projetmbc
Cc: Greg Smith; PyQt
Subject: Re: [PyQt] Using a QCompleter with a QLineEdit
projetmbc a
projetmbc a écrit :
Try to do the following change :
OLD
lineEditCompleter = QtGui.QCompleter(completerList)
NEW
lineEditCompleter = QtGui.QCompleter(completerList)
END
Sorry, I've forgot to do the changes. Here there are.
OLD
lineEditComp
Hello,
can you give a LFE aka a little functiunal example ?
C.
Greg Smith a écrit :
Hey Everyone,
I’m trying to get a LineEdit I have in a tool I am writing to have the
ability to auto complete the user’s entry based on what they have
typed. From the sounds of it, QCompleter is exactly wha
Mads Ipsen a écrit :
If you change 'QDialog' to 'QWidget' the problem disappears. But I
have no idea why. Anybody?
Best regards,
Mads
In the first example proposed that did not work, you can see that the
button has the focus even if the cursor is in the lineedit. I think that
the problem com
projetmbc a écrit :
dial_project_2 is just my GUI class. For example, the example that I
give comes frome something like that
class dial_Projet2(QtGui.QDialog, Ui_dial_Projet2):
Ui_dial_Projet2 is a Python file created from a Dialog built with Qt
Designer.
I hope that I'm
Gabriel Hahmann a écrit :
On Wed, Jun 17, 2009 at 11:33 AM, projetmbc wrote:
Gabriel Hahmann a écrit :
Hi,
I'm new to the list and new to programming in python QT and I'm having
a little problem dealing with accent characters.
I have a little program that have the text s
Gabriel Hahmann a écrit :
Hi,
I'm new to the list and new to programming in python QT and I'm having
a little problem dealing with accent characters.
I have a little program that have the text sent to the user interface
using something like this:
QtGui.QPushButton(self.tr('&Next >'))
self.set
Phil Thompson a écrit :
Indeed, I've understood that this number are the default lexers. The
following seems to work :
===
def description(self, style):
if style == 7:
return 'myLexer'
return ''
===
Is-it what I'm supposed to d
I've tired to implement that :
=
def description(self, style):
print '(style)'
print (style)
return ''
=
Then numbers from 0 to 30 has been catched by the method. What is the
meaning of this numbers ? Sorry for beeing such a newb
Indeed I've typed the code given with this message. I have the folowing
Error :
" QsciLexerCustom.description() is abstract and must be overridden. "
What's wrong ?
I don't think the error message can be clearer - you need to reimplement
description() in your sub-class as described in t
Phil Thompson a écrit :
On Mon, 15 Jun 2009 19:02:58 +0200, projetmbc
wrote:
Hello,
I'm always trying to make my own lexer but I don't have enough
informtaion to start easily.
I have to implement some methods but what have I to do with the method
description.
Wh
Hello,
I'm always trying to make my own lexer but I don't have enough
informtaion to start easily.
I have to implement some methods but what have I to do with the method
description.
=== My code ===
class monLexer(Qsci.QsciLexerCustom):
# Obtenu patr tatons :
http://
15:12:03 +0200, projetmbc
wrote:
Hello,
I would like to use QsciLexerCustom so as to define my own lexer. The
documentation says :
"All that is necessary to implement a new lexer is to
define appropriate
styles and to re-implement the styleText()
method.&
Phil Thompson a écrit :
On Wed, 10 Jun 2009 15:12:03 +0200, projetmbc
wrote:
Hello,
I would like to use QsciLexerCustom so as to define my own lexer. The
documentation says :
"All that is necessary to implement a new lexer is to
define appropriate
styles a
Hello,
I would like to use QsciLexerCustom so as to define my own lexer. The
documentation says :
"All that is necessary to implement a new lexer is to
define appropriate
styles and to re-implement the styleText()
method."
This sounds very abstract to me. How can I col
Hello,
I would like to know what is planed about JavaScript and PyQt. I know
that for the moment it is possible to call a JS program from PyQt, but
what about the use of a JS constant in a web page in a PyQt application.
I also would like if the use of applet is, or will be, possible in a
QWe
For your point of view but none for mine. Indeed I'd like examples which
are very small.
Why don't you give this kind of example ?
Best regards.
Christophe
Detlev Offenbach a écrit :
Hi,
the simple example is eric. ;-)
Detlev
On Dienstag, 26. Mai 2009, projetmbc wrote:
T
That's very cool. I hope that there will be a simple example showing how
to use it.
Christophe.
Phil Thompson a écrit :
On Tue, 26 May 2009 11:48:52 +0200, projetmbc
wrote:
Hello,
I would like to know if the patch of Eric Software which allows to use
pygments with QScintilla wi
Hello,
I would like to know if the patch of Eric Software which allows to use
pygments with QScintilla will be with this new release.
Best regards.
Christophe
Phil Thompson a écrit :
I plan to release new versions of SIP, PyQt3, PyQt4 and QScintilla at the
end of the week based on the curre
I really appreciate that kind of simple examples. This is the best way
to learn how to use PyQt.
Thanks a lot.
Christophe
Darryl Wallace a écrit :
Hello Everyone,
Since I was interested in the FetchMore example (included in Qt4.5)
and extending it for myself, I just decided to port the Fetc
Giovanni Bajo a écrit :
On lun, 2009-04-27 at 18:42 +0200, projetmbc wrote:
Thanks a lot, your solution works fine. :-) Here is the complete
minimal code :
#!/usr/bin/env python
#coding=utf-8
import sys
from PyQt4 import QtGui, QtCore
app
Thanks a lot, your solution works fine. :-) Here is the complete
minimal code :
#!/usr/bin/env python
#coding=utf-8
import sys
from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv)
clipboard = app.clipboard()
clipboard.setText('The text that mu
The clipboard will empty when your program exits. Afaik this is normal
behavior with Qt and clipboard access.
I know if I use wxWindows the text in the clipboard stays even if I close my
app, however I am not sure if it's possible to do this in Qt.
And use sys.exit(app.exec_()) instead.
argv)
clipboard = app.clipboard()
clipboard.setText('texte')
app.exec_()
=
Darren Dale a écrit :
Have you tried constructing a QApplication first?
On Sat, Apr 25, 2009 at 8:24 PM, projetmbc <mailto:projet...@club-internet.fr>> wrote:
I've already tr
I've already try that but I have the following message :
QWidget: Must construct a QApplication before a QPaintDevice
Christophe.
Demetrius Cassidy a écrit :
from PyQt4.QtGui import QApplication
clipboard = QApplication.clipboard()
clipboard.setText('mytext')
see http://doc.trolltech.com/4.5
Hello,
here is an example for using the clipboard of Tkinter :
from Tkinter import *
root = Tk()
root.clipboard_clear()
root.clipboard_append('A text in the clipboard...')
root.withdraw()
I would like to do the same with PyQt. Is it possible ?
Christophe
Marcell Mars a écrit :
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
myWebKit = QWebView()
myWebKit.show()
myWebKit.setUrl(QUrl("http://www.google.com";))
myWebKit.page().mainFrame().evaluateJavaScript(open('jquery.js').read())
myWebKit.page().mainFrame().e
Hello, I give a very simple HTML page with a very little Javascript. I
would klike to do two things :
1) Read in a PyQt application the javascript variable nom.
2) Define a slot wich will tell to the PyQt application that the
function affiche() has been called.
Best regards and sorry for
Hello,
I would like to know if it is possible to know when the
QSyntaxHighlighter does some chnages in the coloration of a text. Is-it
possible or not ?
C.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailma
I've forgot the gui file. Here is it.
Christophe.
:
Marcell Mars a écrit :
the simplest example of loading jquery.js (geti it from
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to ch
Marcell Mars a écrit :
the simplest example of loading jquery.js (geti it from
http://jqueryjs.googlecode.com/files/jquery-1.3.2.js and put it in the
same directory with the snippet below) after loading html and then
using jquery syntax to change the background color into red:
run it in python i
David Boddie a écrit :
The porting of the C++ Qt examples to Python has fallen behind since Qt 4.3
so there aren't any simple WebKit examples included with PyQt.
I'm not lucky... :-\
David Boddie a écrit :
The recent Monster Evolution experiments on Qt Labs include a Python version
of a p
Wolfgang Rohdewald a écrit :
let me restate what I observed:
if the tip click here... appears, the tips "tooltip 0" etc will never appear
unless
the program is restarted
if the tip click here... does not appear, the tips "tooltip 0" etc will appear
this is inconsistent behaviour.
You're
Simon Edwards a écrit :
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
Indeed I'm looking for a simple example rather than an abstract o
Simon Edwards a écrit :
projetmbc wrote:
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
QWebFrame's evaluateJavaScript() might be a start.
I also found a whitepaper of QT. I'll try to test that.
Thanks for showing me the directi
Hello,
I'm seeking for information about how to comunicate from PyQt with a
JavaScript program.
All kind of information is welcome.
Christophe.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/
This is normal. When the menu is activated ther is no reason to give a
tooltip about it because we know wath is in.
Christophe.
Wolfgang Rohdewald a écrit :
this code works here too - but not always.
First place the mouse over the menu and wait until the
tooltip "Click here..." appears
now
V. Armando Solé is right. With this solution the tooltips come quickly
in my computer. The corresponding PyQt code is :
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtCore, QtGui, uic
class MainWindow(QtGui.QWidget):
def __init__(self, parent=None):
super
Hello,
I would like to know when the user uses at the same time the left button
of the mouse and the key CTRL for example.
Is-it possible ?
Christophe.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/li
Hello,
the fllowing code doesn't work.
Best regards.
class MyFrame(QtGui.QFrame):
def __init__(self, parent, titre, pixmapfile):
QtGui.QFrame.__init__(self, parent, QtCore.Qt.Tool)
self.setWindowTitle(titre)
rect = QtCore.QRect(QtGui.QCur
Sorry for the indentation of the code but the problem is not there.
My problem is that nothing is printed when the focus of the frame changes.
Christophe.
Hello,
I would like to catch the events when my frame has the focus or losts
it. I don't understand why the following code doesn't work.
Hello,
I would like to catch the events when my frame has the focus or losts
it. I don't understand why the following code doesn't work. Indeed, I
would like the frame to have a 0.5 opacity when the focus is out and 1.0
when it is in the frame.
Every tip or clue is welcome.
Christophe.
=
Hello. Finaly here is the solution to have a frame where the cursor is.
We have to use setGeomtry and not setRectangle.
Best regards.
Christophe.
==
THE CODE
==
class MyFrame(QtGui.QFrame):
def __init__(self, parent, titre, pixmapfile):
QtGui.QFrame.__init__(self, pare
Christian Aubert a écrit :
I currently have a context menu for the whole QTreeWidget but I need
finer-grained control on a per item basis. Has anyone implemented
context menus for QTreeWidgetItems? Any pointers?
Christian
___
PyQt mailing listPy
1 - 100 of 136 matches
Mail list logo