[PyQt] (no subject)

2008-09-06 Thread projetmbc
Title: Flashmail Hello, I do not know how to have the same size for a QGraphicsScene and the graphicsView that contains the QGraphicsScene. When I launch my code there is two scroll bares and I just want the QGraphicsSceneexactly in the graphicsView. Sommeone can help me. Best regards. I

[PyQt] Splash Screen

2008-10-03 Thread projetmbc
Title: Flashmail Hello, I would to know how to do a Splash Screen with PyQT. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Add some text in QFileDialog

2009-02-02 Thread projetmbc
Hello, I would like to add some informations in a TextEdit or a Label in QFileDialog to help the users to know what it must searchs. How can I do that ? Best regards. Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: Re: [PyQt] Add some text in QFileDialog

2009-02-03 Thread projetmbc
Title: Flashmail Something like this? self.upgfile = QFileDialog.getOpenFileName(\ None, self.trUtf8("Select the UPG file"), self.upgfile, self.trUtf8("*.upg"), None) Thanks but indeed I would like to embed a QFileDialg in a pesronnal Dialog with a TextEdit just upon the QFileDialog.

[PyQt] MatplotLib and PyQt

2009-02-07 Thread projetmbc
Title: Flashmail Hello,I'm looking for examples of little PyQt applications embending MatplotLib.Best regards.Christophe ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Mayavi, VTK and PyQt

2009-02-07 Thread projetmbc
Title: Flashmail Hello,I'm looking for examples of little PyQt applications embending Mayavi.Best regards.Christophe ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: Re: [PyQt] MatplotLib and PyQt

2009-02-08 Thread projetmbc
Hello, I'm looking for examples of little PyQt applications embending MatplotLib. Here is a good example: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_q t4.html. The matplotlib mailing list is probably a better place to follow up if you have additional questions

[PyQt] (no subject)

2009-02-08 Thread projetmbc
I once addapted the QVTKRenderWindowInteractor to work with the latest release of pyqt. Unfortunately it's not perfect yet and it does work only on my windows machine. I'll look at your code and then try to understand what's wrong. If I find the answer, I'll send it here. So should you make

Re: Re: [PyQt] Mayavi, VTK and PyQt

2009-02-08 Thread projetmbc
Hello, I'm looking for examples of little PyQt applications embending Mayavi. ETS from Enthought integrates Mayavi, VTK and PyQt (and wx). Phil Thanks but the problem is that there is no simple example in the official documentation of a very simple application embending Mayavi. That's what

[PyQt] (no subject)

2009-02-08 Thread projetmbc
Title: Flashmail Here's a relatively advanced example featuring many things you may want from the integration of PyQT and matplotlib: * Using the maplotlib navigation toolbar * Adding data to the plot dynamically * Dynamically modifying the plotâ??s properties * Processing matplotlib

[PyQt] ContextMenu for a TreeView

2009-02-16 Thread projetmbc
Hello, is it possible to define a ContextMenu for a TreeView ? Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] (no subject)

2009-02-17 Thread projetmbc
Hello, is it possible to define a ContextMenu for a TreeView ? Yes, just override QWidget.contextMenuEvent for the view. Doug. Thanks but then I have a problem. How can I know that the mouse is over the TreeView ? Christophe. ___ PyQt

[PyQt] Re : ContextMenu in TreeView

2009-02-17 Thread projetmbc
Hello, is it possible to define a ContextMenu for a TreeView ? Yes, just override QWidget.contextMenuEvent for the view. Doug. Thanks but then I have a problem. How can I know that the mouse is over the TreeView ? Christophe. ___ PyQt

Re: Re: [PyQt] pygments patch for Scintilla

2009-02-18 Thread projetmbc
Title: Flashmail Thanks for the answer. Best regards. Christophe. PS for Phil : my proposition is to a future new release of PyQt. I know that you have a lot of works. Hello, I would like to know if the pygments patch of the software Eric could be add to the standard PyQt

Tr: [PyQt] Problems with QSystemTrayIcon

2009-02-19 Thread projetmbc
I'm under Windows XP with PyQt for Python 2-6 and your example works very well. I see the icon in the SysTray with the message. Christophe. Hi, I am having problem to get QSystemTrayIcon to work. I am running on windows XP and I never see any notification messages. My setup: windows XP, PyQt

[PyQt] Subclass Undo of a QTextEdit

2009-03-01 Thread projetmbc
Title: Flashmail Hello,when I copy a text twice in a QTextEdit and I use CTRL+Z to use UNDO, I would like to go back just after the first copy and not before the first copy.So I would like to subclass the method UNDO of a QTextEdit but I don't know how to do that, how to catch a change.Best

[PyQt] Is there a signal sended by HighLight ?

2009-03-06 Thread projetmbc
Hello, I would like to know if there is a signal sended by the SyntaxHiglighter when it catches a change in the text ? Best regards. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re : Signal and SyntaxHiglight

2009-03-08 Thread projetmbc
I would like to know if there is a signal sended by the SyntaxHiglighter when it catches a change in the text ? That class is designed to be subclassed rather than connected up with signals and slots, but you could emit your own signals when you handle the changes in format.

[PyQt] Reach a line in a QTextEdit

2009-03-29 Thread projetmbc
Hello, I would like to go for example to the fourth line in a QTextEdit. Is-it possible to do that directly or must I have to walk along the three first lines so as to go to the start of the fourth one ? Best regards. Christophe ___ PyQt mailing

Re: Re: [PyQt] Reach a line in a QTextEdit

2009-03-29 Thread projetmbc
The first method works very well. Thanks a lot ! Christophe. I would like to go for example to the fourth line in a QTextEdit. Is-it possible to do that directly or must I have to walk along the three first lines so as to go to the start of the fourth one ? Use either: 1.

[PyQt] Search for a simple example using OpenGL

2009-04-03 Thread projetmbc
Title: Flashmail Hello, I would like to draw for example a 3D triangle in an OpneGL.Best regards. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Help about the use of OpenGL with PyQt

2009-04-04 Thread projetmbc
Hello, I would like to draw for example a 3D triangle with OpenGL. I've tried to play with the example Hello GL proposed by PyQt. In the following code I would like to draw a red triangle and then a blue one. I also would like to set the xMin, xMax, yMin, yMax, zMin, zMax, for the point of

Re: [PyQt] Help about the use of OpenGL with PyQt

2009-04-04 Thread projetmbc
Your problem is with your OpenGL syntax. Simply change GL.GL_QUADS (which draw quadrilaterals) with GL.GL_TRIANGLES (self evident). Also, it would be better to move those declarations into your triangle routine as follows Thanks and sorry for this simple problem but I'm a real newbie with

Re: [PyQt] Help about the use of OpenGL with PyQt

2009-04-05 Thread projetmbc
That seems to be very good. Thanks a lot. Christophe David Boddie a écrit : On Sat Apr 4 17:43:29 BST 2009, Jamie Riotto wrote: OpenGL Tutorial: http://cs.uccs.edu/~semwal/indexGLTutorial.html Also NeHe productions does a realy great job breaking down OpenGL into lessons: My favorite!

[PyQt] [TreeWidget] Text and/or image over a node

2009-04-05 Thread projetmbc
Hello, I would like to show a text or a little picture (and why not the both at the same time) when the mouse is over a node of a TreeWidget. How can I try to do that ? Thanks a lot. Christophe. # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Program

Re: [PyQt] Help about the use of OpenGL with PyQt

2009-04-06 Thread projetmbc
Thanks a lot. I will look at that but it seems that there is no Windows version for Python 2-6. Christophe. There are also the QGLViewer/PyQGLViewer couple. Basically QGLViewer is build on top of the Qt4 OpenGL widget and PyQGLViewer is its python bindings. http://www.libqglviewer.com/

[PyQt] How to show just a picture upon a window

2009-04-06 Thread projetmbc
Hello, I would like to show just a picture upon my window. I've find the following method. pixmap = QtGui.QPixmap(Collines.jpg) splash = QtGui.QSplashScreen(pixmap) splash.setMask(pixmap.mask()) splash.show() splash.showMessage(u'') t = time.sleep(1)

[PyQt] Question about QFrame

2009-04-07 Thread projetmbc
Hello, I would like to make a frame that contains a QTextEdit and a picture, and then I would like to show it. Is-it possible ? Best regards. Christophe. ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] Re: SplashScreen and mousePressEvent

2009-04-08 Thread projetmbc
projetmbc a écrit : Hello, I would like to close a splashscreen if the user clicks on it. I decide to subclass QtGui.QSplashScreen to do that but the following code doesn't catch the mouse press event. Why ? Best regards. Christophe == The code == class mySplashScreen

[PyQt] SplashScreen and mousePressEvent

2009-04-08 Thread projetmbc
Hello, I would like to close a splashscreen if the user clicks on it. I decide to subclass QtGui.QSplashScreen to do that but the following code doesn't catch the mouse press event. Why ? Best regards. Christophe == The code == class mySplashScreen(QtGui.QSplashScreen): def

Re: [PyQt] SplashScreen and mousePressEvent

2009-04-08 Thread projetmbc
may need to kill it afterwards) from PyQt4 import QtGui import sys app = QtGui.QApplication(sys.argv) pixmap = QtGui.QPixmap(splash.png) splash = QtGui.QSplashScreen(pixmap) splash.show() app.exec_() On 4/8/09 7:56 AM, projetmbc projet...@club-internet.fr wrote: Hello, I would like

Re: [PyQt] SplashScreen and mousePressEvent

2009-04-08 Thread projetmbc
this window. To place it you can get the mouse’s x,y position when right clicking on the tree node and create the frame (with the appropriate images inside) and then place it appropriately. Brian On 4/8/09 8:41 AM, projetmbc projet...@club-internet.fr wrote: Ok. Thanks a lot

Re: [PyQt] context menus for QTreeWidgetItem?

2009-04-09 Thread projetmbc
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 list

Re: [PyQt] SplashScreen and mousePressEvent

2009-04-09 Thread projetmbc
(), p)); raise(); if (_hidden) show(); else update(); _hidden = false; } } On 4/8/09 11:40 AM, projetmbc projet...@club-internet.fr wrote: Brian Kelley a écrit : You can have the same effect using a timer: class MyFrame(QFrame): def

Re:Re: [PyQt] context menus for QTreeWidgetItem?

2009-04-09 Thread projetmbc
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 list

Re: [PyQt] SplashScreen and mousePressEvent - SOLVED

2009-04-09 Thread projetmbc
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,

[PyQt] Changing the opacity of a frame when it doesn't have the focus

2009-04-10 Thread projetmbc
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.

Re: [PyQt] Changing the opacity of a frame when it doesn't have the focus

2009-04-10 Thread projetmbc
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

[PyQt] Bug with eventFocus

2009-04-10 Thread projetmbc
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 =

[PyQt] How to catch a mouse event and a key event at the same time

2009-04-14 Thread projetmbc
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

Re: [PyQt] tooltips in menu: how?

2009-04-18 Thread projetmbc
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):

Re: [PyQt] Re: tooltips in menu: how?

2009-04-19 Thread projetmbc
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

[PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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 direction. Christophe

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-19 Thread projetmbc
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 one. Christophe

Re: [PyQt] Re: tooltips in menu: how?

2009-04-20 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-20 Thread projetmbc
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

[PyQt] How to survey the activity of the QSyntaxHighlighter ?

2009-04-20 Thread projetmbc
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

[PyQt] Problem with a simple JavaScript cionnection

2009-04-23 Thread projetmbc
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

Re: Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-24 Thread projetmbc
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())

[PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-25 Thread projetmbc
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 ?

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-25 Thread projetmbc
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

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-25 Thread projetmbc
= 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 projet...@club-internet.fr mailto:projet...@club-internet.fr wrote: I've already try that but I have

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-26 Thread projetmbc
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. projetmbc wrote: I've tried

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-27 Thread projetmbc
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

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-05-03 Thread projetmbc
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

Re: [PyQt] FetchMore Example

2009-05-08 Thread projetmbc
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

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
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

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
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 projet...@club-internet.fr wrote: Hello, I would like to know if the patch of Eric Software which allows to use pygments

Re: [PyQt] Next Releases

2009-05-26 Thread projetmbc
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: That's very

[PyQt] Evolution of QWebView

2009-05-30 Thread projetmbc
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

[PyQt] Question about QsciLexerCustom

2009-06-10 Thread projetmbc
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()

Re: [PyQt] Question about QsciLexerCustom

2009-06-10 Thread projetmbc
Phil Thompson a écrit : On Wed, 10 Jun 2009 15:12:03 +0200, projetmbc projet...@club-internet.fr 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

Re: [PyQt] Question about QsciLexerCustom

2009-06-12 Thread projetmbc
15:12:03 +0200, projetmbc projet...@club-internet.fr 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

[PyQt] Probleme with the metho description of QSciScintlla

2009-06-15 Thread projetmbc
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 :

Re: [PyQt] Probleme with the metho description of QSciScintlla

2009-06-15 Thread projetmbc
Phil Thompson a écrit : On Mon, 15 Jun 2009 19:02:58 +0200, projetmbc projet...@club-internet.fr 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

Re: [PyQt] Probleme with the metho description of QSciScintlla

2009-06-15 Thread projetmbc
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

Re: [PyQt] Probleme with the metho description of QSciScintlla

2009-06-15 Thread projetmbc
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

Re: [PyQt] Using Unicode

2009-06-17 Thread projetmbc
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 '))

Re: [PyQt] Pressing enter in QLineEdit clicks QPushButton?

2009-06-22 Thread projetmbc
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

Re: [PyQt] Using a QCompleter with a QLineEdit

2009-06-24 Thread projetmbc
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

Re: [PyQt] Using a QCompleter with a QLineEdit

2009-06-25 Thread projetmbc
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 lineEditCompleter

Re: [PyQt] Using a QCompleter with a QLineEdit

2009-06-25 Thread projetmbc
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

Re: [PyQt] Probleme with the metho description of QSciScintlla

2009-06-25 Thread projetmbc
Phil Thompson a écrit : On Mon, 15 Jun 2009 19:02:58 +0200, projetmbc projet...@club-internet.fr 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

[PyQt] Problem with QSciScintlla

2009-06-25 Thread projetmbc
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

[PyQt] QSyntaxHighlighter and folding

2009-06-29 Thread projetmbc
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

[PyQt] QsciScintilla

2009-06-29 Thread projetmbc
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

[PyQt] A first simple lexer for QSciScintilla ?

2009-07-10 Thread projetmbc
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'

[PyQt] Make a command prompt to see the execution of a Python script

2009-07-11 Thread projetmbc
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

Re: [PyQt] Problem with colors and QSciScintilla

2009-07-12 Thread projetmbc
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's a

Re: [PyQt] Problem with colors and QSciScintilla

2009-07-12 Thread projetmbc
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 how to do

[PyQt] Is there a logical link bewtween C++ methods and Python methods for QScintilla ?

2009-07-14 Thread projetmbc
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

[PyQt] Problem to make the use of folder with QScintilla (even with traditional lexer)

2009-07-14 Thread projetmbc
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

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-17 Thread projetmbc
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,

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-17 Thread projetmbc
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

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-18 Thread projetmbc
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

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread projetmbc
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

Re: [PyQt] Setting font for QScintilla

2009-07-23 Thread projetmbc
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 meant

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-27 Thread projetmbc
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

[PyQt] Request-QSciScintilla

2009-07-27 Thread projetmbc
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

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-27 Thread projetmbc
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

[PyQt] How to install pyQt on a Mac ?

2009-08-31 Thread projetmbc
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

Re: [PyQt] Building OSX universal Sip and PyQt packages

2009-09-08 Thread projetmbc
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

[PyQt] Tutorial about the use of JavaScript

2009-12-06 Thread projetmbc
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

[PyQt] Problem with a very simple JavaScript

2009-12-10 Thread projetmbc
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

[PyQt] Laucnh a JavaScript after and not before the loading of a page in QWebView

2009-12-11 Thread projetmbc
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 -*-

[PyQt] JavaScript in WebView-Looking for C++ examples

2009-12-21 Thread projetmbc
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

[PyQt] 64 bits and Snow Leopard make me crazy

2010-02-25 Thread projetmbc
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

  1   2   >