Re: [PyQt] Question related to tabbed widgets...

2009-12-03 Thread Vincent Vande Vyvre
Ville M. Vainio a crit: On Thu, Dec 3, 2009 at 8:33 PM, Jebagnana Das jebagnana...@gmail.com wrote: 1) Is it possible for us to create tabbed windows by having images as tab headers.. If u r not getting the point it's like add/remove programs in windows or tools-preferences in

Re: [PyQt] Best way to implement an Image Viewer?

2010-03-09 Thread Vincent Vande Vyvre
attachement, it's an images viewer + zoom with QGraphicScene. Before use, change the line 63 Vincent #!/usr/bin/env python # -*- coding: utf-8 -*- # Example of an image viewer with zoom # # Created: Thu Feb 25 19:54:49 2010 # by: PyQt4 UI code generator 4.4.4 # # Author: Vincent Vande Vyvre v

Re: [PyQt] Best way to implement an Image Viewer?

2010-03-09 Thread Vincent Vande Vyvre
TP a crit: On Tue, Mar 9, 2010 at 3:54 PM, TP wing...@gmail.com wrote: On Tue, Mar 9, 2010 at 9:27 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: TP a crit : I'm using Windows XP, Python 2.6.4, and PyQt 4.7.1. While trying out

Re: [PyQt] Icon Sub Menu support

2010-03-29 Thread Vincent Vande Vyvre
AON LAZIO a crit: Hi, Doesn't Qt have icon submenu support? It's pretty basic stuff. -- Passion is my style ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt Hi, look here

[PyQt] DockWidget hide title bar

2010-04-13 Thread Vincent Vande Vyvre
Hi, There's a way to hide the title bar in a dock widget ? I see in : http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qdockwidget.html#setTitleBarWidget ...If widget is 0, the title bar widget is removed, but not deleted. Argument 0 return an error, if I replace it by None,

Re: [PyQt] Cannot get any SIGNAL from QTreeWidget

2010-04-13 Thread Vincent Vande Vyvre
Try with "itemClicked(QTreeWidgetItem*, int) also: self.connect(self.projectTree, SIGNAL("itemSelectionChanged()"), self.showEvents) def showEvents(self): item = self.projectTree.currentItem() Bjorn Egil Ludvigsen a crit: Hi, I cannot get any signal from QTreeWidget and

[PyQt] dockWidget closed without reason.

2010-04-30 Thread Vincent Vande Vyvre
Hi, I have a window with a dockWidget instancied like this: self.properties_dock = QtGui.QDockWidget(MainWindow) self.properties_dock.setFeatures(QtGui.QDockWidget.DockWidgetClosable| QtGui.QDockWidget.DockWidgetMovable) When I make reappear the

Re: [PyQt] [Help] blockSignal for QTableWidget

2010-06-24 Thread Vincent Vande Vyvre
Le 24/06/10 15:24, He Jibo a crit: Hello, could someone tell me how to block signal for QTableWidget? I have a class called CustomTable. CustomTable inherents QTableWidget. I hope to block the signal of CustomTable when I load data into it. I first used the following line to create a

Re: [PyQt] Keypressevent

2010-09-08 Thread Vincent Vande Vyvre
Le 08/09/10 11:06, lucabe...@libero.it a crit: hello i need to intercept the return and the enter key in a plaintextedit and i have write this def keyPressEvent(self, event): self.plainTextEdit.keyPressEvent(event) if event.key() == QtCore.Qt.Key_Return :

Re: [PyQt] Image type RAW destroyed by PyQt

2010-09-16 Thread Vincent Vande Vyvre
Le 16/09/10 12:59, Dan Halbert a crit: On 9/16/2010 4:02 AM, Vincent Vande Vyvre wrote: If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff is automatically created and replace the RAW file. The original file is lost. Could you give a short test

Re: [PyQt] Bye bye segmentation fault

2010-09-20 Thread Vincent Vande Vyvre
version : 4.6.2 PyQt version : 4.7.2 Just after exec_ ... Erreur de segmentation I note the same behaviour on x86_64-with-Ubuntu-10.04-lucid Regards, Cyril. Le 20/09/2010 11:04, Vincent Vande Vyvre a crit: Le 20/09/10 10:07, Cyril Giraudon a crit: Hello

Re: [PyQt] Skinning the title bar and window border

2010-09-22 Thread Vincent Vande Vyvre
Le 22/09/10 13:31, Hans-Peter Jansen a crit: [Sorry for mangling the receiver list - I prefer to keep this discussion on this list] On Wednesday 22 September 2010, 12:47:54 pard wrote: Hi Pete I understand why it is not popular. However, this is a requirement for work purposes.

Re: [PyQt] QThread - how to comunicate between gui widget and Qthread

2010-09-26 Thread Vincent Vande Vyvre
Le 25/09/10 18:55, Massimo Di Stefano a crit: Hello All i'm tring to learn how to use Qthreads inside my app, so i wrote this example : (it print out the text from the lineEdit widget, at any "text-changes") import sys from PyQt4 import QtCore, QtGui import time

[PyQt] QListWidgetItem appearance.

2010-10-16 Thread Vincent Vande Vyvre
Hi, I just upgraded from Ubuntu 10.04 to 10.10, therefore, python 2.6.5/PyQt 4.7.4 to python 2.6.6/Pyqt 4.7.4 It seems that the appearance of the QListWidgetItem changed. In this case, I apply a styleSheet on the QlistWidget (color: white; background: black), I've tried with other

Re: [PyQt] QListWidgetItem appearance.

2010-10-16 Thread Vincent Vande Vyvre
Le 16/10/10 08:52, Vincent Vande Vyvre a crit: Hi, I just upgraded from Ubuntu 10.04 to 10.10, therefore, python 2.6.5/PyQt 4.7.4 to python 2.6.6/Pyqt 4.7.4 It seems that the appearance of the QListWidgetItem changed. In this case, I apply a styleSheet on the QlistWidget (color

Re: [PyQt] QGraphicsView.setBackgroundBrush don't work

2010-10-23 Thread Vincent Vande Vyvre
Le 23/10/10 09:09, leo kirotawa a écrit :  Hi, I  have the piece of code   view = QtGui.QGraphicsView(scene)         view.setRenderHint(QtGui.QPainter.Antialiasing)     view.setRenderHint(QtGui.QPainter.Antialiasing)     pixmap =

[PyQt] Documentations disappeared

2010-10-23 Thread Vincent Vande Vyvre
What's does with documentation? http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html All detailed, type and method documentations disappeared Did the link change? -- Vincent V.V. Oqapy ___ PyQt mailing list

Re: [PyQt] simple charts with PyQT

2010-11-05 Thread Vincent Vande Vyvre
Le 05/11/10 12:46, bar tomas a crit: Hi, I was just wondering if someone could advise me on the simplest way of integrating a few simple charts (pie chart, time series chart, etc) into my PyQT application. Are there any chart widget libraries accessible through PyQT? Can they be used

Re: [PyQt] Translation troubles

2010-11-08 Thread Vincent Vande Vyvre
Le 08/11/10 22:27, Mikael Modin a crit: Hi, I'm trying to translate a UI created using QDesigner, but I could never get it working so I wrote a quick minimal non-working sample in the hope that one of you could tell me what I'm doing wrong. main.py

Re: [PyQt] How to trigger refresh of background window

2010-12-02 Thread Vincent Vande Vyvre
Le 02/12/10 00:32, Ian a crit: Hi all, How can I cause a repaint event on a window that is not the current focus? When I click on the window it comes to the front, repaints itself and shows the (changed) data correctly. However in my use case, data shown in the background

Re: [PyQt] Incorrect support of QButtonGroup in pyuic4

2010-12-13 Thread Vincent Vande Vyvre
Hi, In a .ui file created with QDesigner, I have one QButtunGroup with three radio-buttons : ... item widget class="QRadioButton" name="camera_is_local_rdo" property name="text" stringTime of camera is local time./string /property attribute name="buttonGroup" stringbuttonGroup/string

Re: [PyQt] Different png formats?

2011-01-10 Thread Vincent Vande Vyvre
Le 10/01/11 09:16, Mikael Modin a crit: Hi, I'm trying to get my application working fully after freezing it with cx_Freeze, but I'm having weird troubles with images. Some png's load fine, others stop working after freezing. I'm attaching two examples. Ar there different

Re: [PyQt] Different png formats?

2011-01-10 Thread Vincent Vande Vyvre
2011 20:30, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Le 10/01/11 09:16, Mikael Modin a crit: Hi, I'm trying to get my application working fully after freezing it with cx_Freeze, but I'm having weird troubles with images. Some png's load fine, others stop working after

[PyQt] pyuic4 : error with QToolBox

2011-01-13 Thread Vincent Vande Vyvre
Hi, Using pyuic4, the text in tabs in a QToolBox is not string instance. e.g. : self.tool_box.setItemText(self.tool_box.indexOf(self.project_page), Project - Stage 0) instead :

Re: [PyQt] pyuic4 : error with QToolBox

2011-01-13 Thread Vincent Vande Vyvre
Le 13/01/11 14:27, Vincent Vande Vyvre a crit: Hi, Using pyuic4, the text in tabs in a QToolBox is not string instance. e.g. : self.tool_box.setItemText(self.tool_box.indexOf(self.project_page), Project

Re: [PyQt] pyuic4 : button without text

2011-01-14 Thread Vincent Vande Vyvre
If a button has no text but only icon and the property Translable is unchecked, pyuic4 add the text "None" on the button. PyQt4-4.7.2 on Ubuntu 10.04 PyQt4-4.7.4 on Ubuntu 10.10 buttons.ui joined Cheers. -- Vincent V.V. Oqapy

Re: [PyQt] Rename Tab text in QTabWidget

2011-01-23 Thread Vincent Vande Vyvre
Le 23/01/11 07:36, AON LAZIO a crit: Hi folks, Anyone know how to rename the text of tab (tab name) in real-time? (not in qt designer) I cannot find the method there. Thanks in advance. -- Aonlazio 'Peace is always the

Re: [PyQt] Pyqt, repainting on a customize widget.

2011-03-14 Thread Vincent Vande Vyvre
Le 14/03/11 03:42, jp984 a crit: Hello there. Im learning pyqt using "rapid gui programing with pyqt" book, Im making a change on the chapter's 11 exercise solution given by the book. I want the widget to change the focus on each rectangle automatically every half of a

Re: [PyQt] discard button presses while some function is running

2011-03-15 Thread Vincent Vande Vyvre
Le 15/03/11 10:47, Samuele Carcagno a crit: Hi list users, I'm building a program to perform some auditory tests. The user is presented with some sounds and then has to press a button on the numeric keypad depending on which sound was presented. I would like that button

Re: [PyQt] translation on QMessageBox

2011-03-26 Thread Vincent Vande Vyvre
Le 26/03/11 13:36, Frank Xu a crit: Hi all: I use python's method to translate ( I mean use "_" method ), no problem in most cases, but for example, I can't translate the OK button in QMessageBox. Thank you.

Re: [PyQt] mainwindow and dialog question

2011-03-28 Thread Vincent Vande Vyvre
Le 28/03/11 13:48, Jason Rahm a crit: Python 2.7.1 / PyQt 4.8.3 / Qt 4.7.2 I have a mainwindow and a dialog designed in Qt Designer and converted to python code via pyuic4: Mainwindow Ui_editor.py

[PyQt] What is QtCore.qPow() ?

2011-04-15 Thread Vincent Vande Vyvre
Hi, Trying svgViewer.py example I have this error: Traceback (most recent call last):   File "svgviewer2.py", line 236, in wheelEvent     factor = QtCore.qPow(1.2, event.delta() / 240.0) AttributeError: 'module' object has no attribute 'qPow'

Re: [PyQt] Styling an QMdiArea widget

2011-04-17 Thread Vincent Vande Vyvre
Le 17/04/11 15:17, Sarah Mount a crit: Hi everyone, I have a main application window that I want to style with a style sheet like this: #mywidget { background : white; background-image : url(:/images/images/EfDChancoComposite.jpg); background-repeat :

Re: [PyQt] Styling an QMdiArea widget

2011-04-17 Thread Vincent Vande Vyvre
Le 17/04/11 16:36, Sarah Mount a crit: On Sun, Apr 17, 2011 at 15:28, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Le 17/04/11 15:17, Sarah Mount a crit: Hi everyone, I have a main application window that I want to style with a style sheet like

Re: [PyQt] Using layouts in a tab widget

2011-04-24 Thread Vincent Vande Vyvre
Le 24/04/11 08:10, Sarah Mount a crit: Sorry if this is an obvious question, but I couldn't find an answer to it on the using-containers page or on StackOverflow. I have a bunch of tab widgets that need to have appropriate layouts applied to them and to the tabs they

Re: [PyQt] get item in a QlistWidget after a drag and drop

2011-05-25 Thread Vincent Vande Vyvre
Le 25/05/11 20:28, Anne-Laure Terrettaz-Zufferey a crit: Hello, I would like to drag and drop items from a Qlistwidget to

[PyQt] Installation on Debian

2011-06-04 Thread Vincent Vande Vyvre
Hi, Trying install PyQt 4.8, I encounter this Error: Determining the layout of your Qt installation... Error: Failed to determine the layout of your Qt installation. Try again using the --verbose flag to see more detail about the problem. On

[PyQt] Argument sended with pyqtsignal

2011-06-08 Thread Vincent Vande Vyvre
Hi, I've a strange result with pyqtsignal, the argument transmit with the signal, an instance of QImage, is not the same in the slot. Exemple with this code: - # -*- coding: utf-8 -*- import

Re: [PyQt] Image doesn't show up

2011-06-24 Thread Vincent Vande Vyvre
Le 25/06/11 03:39, Albert Cervera i Areny a écrit : A Dissabte, 25 de juny de 2011 02:50:42, Yaşar Arabacı va escriure: Hi, I am beginning to learn PyQt, I am sorry if this is a bit newbie question but I can't make

Re: [PyQt] Are theer limits to the ability of QWebView to process javascript?

2011-07-22 Thread Vincent Vande Vyvre
Le 23/07/11 03:12, Phlip a crit: On Fri, Jul 22, 2011 at 1:14 PM, BJ bjte...@swbell.net 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.

Re: [PyQt] Fwd: QFileDialog error

2011-07-22 Thread Vincent Vande Vyvre
Le 23/07/11 07:07, Yaşar Arabacı a écrit : -- Yönlendirilmiş ileti -- Kimden: Yaşar Arabacı yasar11...@gmail.com Tarih: 23 Temmuz 2011 08:07 Konu: Re: [PyQt] QFileDialog error Kime: Martin Airs

Re: [PyQt] populate Qcombobox

2011-07-28 Thread Vincent Vande Vyvre
Le 28/07/11 20:22, Tony Peña a écrit : Hi.  I have some data into DB and i want to populate that into Combobox and get some errors        for countries in cursor.execute("SELECT Country FROM iata_icao_codes;"):

Re: [PyQt] signal issue with qbuttongroup

2011-08-04 Thread Vincent Vande Vyvre
Le 04/08/11 17:24, Di Zou a crit: I have a bunch of buttons in a button group. Here is my code: def Function(): addAppButtonGroup = QButtonGroup()

Re: [PyQt] Trying insert image into QTableWidget

2011-08-04 Thread Vincent Vande Vyvre
Le 04/08/11 18:06, Tony Peña a écrit : Hi i trying set logoimage into cell of QtableWidget all code runs ok but can't see the image in the table i try with .gif and .png files any idea? heres the code:

[PyQt] QGraphicsPixmap and hover events

2011-08-15 Thread Vincent Vande Vyvre
Hi, I have a strange effect with hover events and QGraphicsItem. The example below demonstrate the problem, the hover events are emitted only on the border of the item but not on the item himsef. If I don't draw a border, events are never emitted.

Re: [PyQt] QGraphicsPixmap and hover events

2011-08-15 Thread Vincent Vande Vyvre
Le 15/08/11 10:51, Vincent Vande Vyvre a crit: Hi, I have a strange effect with hover events and QGraphicsItem. The example below demonstrate the problem, the hover events are emitted only on the border of the item

[PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Hi, I encounter this problem on Linux Ubuntu from PyQt4 import QtCore, QtGui ImportError: /usr/lib/libQtGui.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv I guess the problem is in the debian package

Re: [PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Le 22/08/11 11:29, Jonathan Riddell a crit: On 22 August 2011 10:13, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from PyQt4 import QtCore, QtGui ImportError: /usr/lib/libQtGui.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv

Re: [PyQt] Error in libQtGui.so.4

2011-08-22 Thread Vincent Vande Vyvre
Le 22/08/11 11:46, Vincent Vande Vyvre a crit: Le 22/08/11 11:29, Jonathan Riddell a crit: On 22 August 2011 10:13, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: from PyQt4 import QtCore, QtGui ImportError: /usr/lib

Re: [PyQt] removeWidget

2011-08-25 Thread Vincent Vande Vyvre
Le 25/08/11 07:59, uahmed a crit: Hi I want to add widget in (f1) function and want to remove the widget from (f2) function . I tried the same thing in same function it do work but when i try to remove the widget from another it doesnt . Any help ?

Re: [PyQt] What is difference between partial and lambda in connect slot?

2011-08-28 Thread Vincent Vande Vyvre
Le 28/08/11 15:11, bluekyu a crit: Hello. I have a question about "partial" and "lambda" in connect slot. I learned that "partial" and "lambda" can have arguments in connect slot. So, I usually use lambda function, however, it does not

Re: [PyQt] Icon size and label position in QPushButton?

2011-09-09 Thread Vincent Vande Vyvre
Le 09/09/11 16:05, Maxwell, Thomas P. (GSFC-606.2)[SCIENCE APPLICATIONS INTL CORP] a crit: I am creating a button with an icon: icon = QIcon ( iconFile ) button = QPushButton( icon, label, parent ) The icon as saved in the file is rather large, but is

[PyQt] Bug with QButtonGroup in pyuic4

2011-09-10 Thread Vincent Vande Vyvre
Hi, example files attached Regards -- Vincent V.V. Oqapy . Qarte+7 . PaQager # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'radio_button.ui' # # Created: Sat Sep 10 21:17:17 2011 # by: PyQt4 UI code

Re: [PyQt] Bug with QButtonGroup in pyuic4

2011-09-12 Thread Vincent Vande Vyvre
Le 12/09/11 11:52, simozack a crit: 2011/9/10 Vincent Vande Vyvre vincent.vandevy...@swing.be: example files attached No problem here with PyQt 4.8.4. Bye, Simone OOps, forget my version: Qt 4.6.2 Python 2.6.5

Re: [PyQt] highlighting different language in one document

2011-09-22 Thread Vincent Vande Vyvre
Le 23/09/11 07:49, a crit: can I highlight dfferent language(python, c, fortran) in one document? for example, #_begin_python_ -- set python lexer

[PyQt] Fwd: Re: highlighting different language in one document

2011-09-23 Thread Vincent Vande Vyvre
Vande Vyvre vincent.vandevy...@swing.be Pour : 최원준 wonjunchoi...@gmail.com Le 23/09/11 08:15, 최원준 a écrit : Is there any python example? 2011/9/23 Vincent Vande Vyvre vincent.vandevy...@swing.be

Re: [PyQt] PyQt4.Gui.QFileDialog

2011-10-31 Thread Vincent Vande Vyvre
Le 31/10/11 09:32, Matteo Boscolo a crit: Try this after instantiate the application: app.setQuitOnLastWindowClosed(False) and this after closing the dialog: app.closeAllWindows() I use this in some case in my

Re: [PyQt] PyQt4.Gui.QFileDialog

2011-10-31 Thread Vincent Vande Vyvre
Le 31/10/11 10:07, Vincent Vande Vyvre a crit: Le 31/10/11 09:32, Matteo Boscolo a crit: Try this after instantiate the application: app.setQuitOnLastWindowClosed(False) and this after closing the dialog

Re: [PyQt] Create a start Button

2011-12-21 Thread Vincent Vande Vyvre
Le 21/12/11 15:36, Fabien Lafont a crit: Hello everyone, I'm trying to create a Start button on my soft. My software just plot live datas. When I run the program it display only a pristine graph and I want to start the first action of my program when I click on start. But

[PyQt] Documentation inaccessible

2012-01-03 Thread Vincent Vande Vyvre
Hi all, Hi Phil, The site www.riverbankcomputing.co.uk has been inaccessible for several hours, you know ? Cheers -- Vincent V.V. Oqapy . Qarte+7 . PaQager

Re: [PyQt] How to use a QCheckBoX

2012-01-11 Thread Vincent Vande Vyvre
Le 11/01/12 19:03, Fabien Lafont a crit: Hello everyone, I'm trying to use a QCheckBox. I manage to connect it to a "def" but I want that when I "Uncheck" the QCheckBox it cancel the last action. In fact I'm adding a line to my code and I want to "comment it" when I

Re: [PyQt] How to use a QCheckBoX

2012-01-11 Thread Vincent Vande Vyvre
Le 11/01/12 19:38, Fabien Lafont a crit: And How can I undo the last action? 2012/1/11 Vincent Vande Vyvre vincent.vandevy...@swing.be: Le 11/01/12 19:03, Fabien Lafont a crit: Hello everyone, I'm trying to use a QCheckBox. I manage to connect it to a &quo

Re: [PyQt] How to disable a QPushButton?

2012-01-13 Thread Vincent Vande Vyvre
Le 13/01/12 15:11, Fabien Lafont a crit: I can I disable a QPushButton? I've tried Button.setEnabled(False) but the button only becomes grey and I can click on it again. Thanks, Fabien

[PyQt] QtWebKit truncate url if url is file.

2012-01-17 Thread Vincent Vande Vyvre
Hi, After an update of QtWebKit on ArchLinux, I've a strange behaviour with the QWebView. When I set an url, only the basename of the url is setted and nothing appears in the viewer. On Ubuntu 10.04 no problem, works fine:

Re: [PyQt] Installing on Ubuntu non default Python

2012-02-15 Thread Vincent Vande Vyvre
Le 15/02/12 17:49, Tom Brander a crit: Installed SIP with configure.py, make and make install for Python2.7 but when I went to configure.py for pyqt I get tom@tom-Satellite-A105:~/Downloads/PyQt-x11-gpl-4.9.1$ sudo python2.7 configure.py -w

Re: [PyQt] pylupdate4 issue

2012-02-19 Thread Vincent Vande Vyvre
Le 19/02/12 19:55, ad...@mbnoimi.net a écrit : On 19/02/2012 08:22 م, ad...@mbnoimi.net wrote: Hi all, I tried to create *.ts file for my project by using pylupdate4 so I tried the following

Re: [PyQt] pylupdate4 issue

2012-02-26 Thread Vincent Vande Vyvre
Le 26/02/12 15:16, ad...@mbnoimi.net a écrit : On 19/02/2012 09:55 م, Vincent Vande Vyvre wrote: Le 19/02/12 19:55, ad...@mbnoimi.net a écrit : On 19/02/2012 08:22 م, ad

Re: [PyQt] Organize the components in window (Qt-Designer)

2012-04-01 Thread Vincent Vande Vyvre
Le 01/04/12 05:57, Alfredo Junior a écrit : Hi I'm creating a Mame(mamedev.org) Front-end in PyQt4 and using Qt-Designer to build my windows. This (Qt-Designer) is a little bit new to me and I have a problem to manage the layout components in the window. As you can see in a video below, I

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Vincent Vande Vyvre
Le 11/04/12 15:46, Alfredo Junior a écrit : OK, I'll try. Thank you. - Original Message - From: Andreas Pakulat ap...@gmx.de To: pyqt@riverbankcomputing.com pyqt@riverbankcomputing.com Cc: Sent: Wednesday, April 11, 2012 10:28 AM Subject: Re: [PyQt] QGraphicsView item select

Re: [PyQt] QGraphicsView item select

2012-04-11 Thread Vincent Vande Vyvre
Le 11/04/12 17:00, Andreas Pakulat a écrit : On 11.04.12 16:13:09, Vincent Vande Vyvre wrote: You'll be more easy if you subclass your QGraphicsPixmapItem. Example: the item can return his index, or name or identifier, etc. This example will still not emit a selection-change signal so won't

Re: [PyQt] accessing variables of class

2012-05-11 Thread Vincent Vande Vyvre
On 11/05/12 15:13, Enes Albay wrote: Hi, when i change class A(QtGui.QMainWindow): def setupUI(self): self.lineEdit = QtGui.QLineEdit() self.b = B() self.b.c.clicked.connect(self.handleLetter) ... def handleLetter(self):

Re: [PyQt] QStateMachine won't start

2012-07-08 Thread Vincent Vande Vyvre
On 08/07/12 00:37, Itay Brandes wrote: Hey, I'm trying to start a QStateMachine and seem to fail. Here is my code: http://pastebin.com/mQmyva9K Where am i wrong? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] QStateMachine won't start

2012-07-08 Thread Vincent Vande Vyvre
, geometry, QtCore.QRectF(0, 0, 100, 50)) where am i wrong this time? thanks :) On Sun, Jul 8, 2012 at 10:00 AM, Itay Brandes akari...@gmail.com mailto:akari...@gmail.com wrote: Thanks! On Sun, Jul 8, 2012 at 9:30 AM, Vincent Vande Vyvre vincent.vandevy...@swing.be

Re: [PyQt] Using self.tr() with python string formatting

2012-08-03 Thread Vincent Vande Vyvre
On 03/08/12 12:55, Itay Brandes wrote: right now for using self.tr http://self.tr() with python string formatting, i do the following thing: unicode(self.tr http://self.tr(%d out of %d completed)) % (i, n) is there a way to somehow combine the unicode self.tr http://self.tr, or make them

Re: [PyQt] Displaying 2nd Window Problem

2012-08-17 Thread Vincent Vande Vyvre
On 16/08/12 22:56, uahmed wrote: Hi I am dealing with 2 windows . One is created by Qt Designer and i import it on test.py program . what i did i make a Widget on the test program and than add a button to it and on click event I try to popup the other window(gui1.py) created by Qt Designer

[PyQt] Custom widget property

2012-08-17 Thread Vincent Vande Vyvre
Hi, I'm working on a custom widget, I've created a file plugin and I can use my widget into the Designer. So, this widget has a property 'orientation' wich may take two values: 'east' or 'west'. Into the properties editor this property appears with a lineEdit, how can make to change this

Re: [PyQt] Custom widget property

2012-08-21 Thread Vincent Vande Vyvre
On 17/08/12 14:10, Vincent Vande Vyvre wrote: Hi, I'm working on a custom widget, I've created a file plugin and I can use my widget into the Designer. So, this widget has a property 'orientation' wich may take two values: 'east' or 'west'. Into the properties editor this property appears

Re: [PyQt] Convert string to QString

2012-09-03 Thread Vincent Vande Vyvre
On 03/09/12 05:36, Python.py wrote: I'm trying to play a video. But for that I need to choose the video. For this, if I use QtGui.QFileDialog.getOpenFileName () I can select a video and executar.O my problem is that I do not want to use the QtGui.QFileDialog.getOpenFileName (), I already

Re: [PyQt] core dumped when destructor is called

2012-09-14 Thread Vincent Vande Vyvre
Le 14/09/12 15:54, Louis Granboulan a écrit : I stumbled upon the following bug, which is probably a pyqt bug that did not exist in the previous version. You should be able to reproduce it on an up-to-date ubuntu with python-qt4 4.9.1-2ubuntu1 The following code generates a SEGV, because the

Re: [PyQt] Curious behaviour of slider/spin when controlled by keyboard

2012-10-01 Thread Vincent Vande Vyvre
Le 01/10/12 06:02, Shriramana Sharma a écrit : Hello. With my work on a simple Cubic Bezier investigation application in PyQt (attached, obviously under GPL), I ran into a curious behaviour of the slider/spin (for the time along the curve) when controlled by the keyboard. Steps: 1. Let the

Re: [PyQt] Exporting an image to a PDF

2012-10-20 Thread Vincent Vande Vyvre
Le 20/10/12 15:59, Ajay Garg a écrit : Hi all. I have been looking for ways to get things exported to PDF; I must say that I am pleasantly surprised by the ease of exporting a text-document to a PDF :) Googling also says that exporting an image to pdf is easier than exporting a

Re: [PyQt] Exporting an image to a PDF

2012-10-20 Thread Vincent Vande Vyvre
Le 20/10/12 18:21, Ajay Garg a écrit : On Sat, Oct 20, 2012 at 8:43 PM, Vincent Vande Vyvre vincent.vandevy...@swing.be mailto:vincent.vandevy...@swing.be wrote: Le 20/10/12 15:59, Ajay Garg a écrit : Hi all. I have been looking for ways to get things exported to PDF; I

[PyQt] Install error

2012-11-08 Thread Vincent Vande Vyvre
Hi, I'm installing PyQt-4.9.5 on Debian 6.0 (Squeeze) and I've this error in make -- make[1]: entrant dans le répertoire « /home/vincent/Téléchargements/PyQt-x11-gpl-4.9.5/QtHelp » ... g++ -shared -Wl,-O1 -Wl,-rpath,/usr/lib

Re: [PyQt] Install error

2012-11-08 Thread Vincent Vande Vyvre
Le jeudi 08 novembre 2012 à 11:08 -0800, Nico Dufort a écrit : libxext-dev Thanks, that was the problem. Solved. Cheers Vincent ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Usage of QImageWriter.supportsOption()

2012-11-29 Thread Vincent Vande Vyvre
I'm trying to see what option is supported by QImageWriter(). A test code: - # -*- coding: utf-8 -*- from PyQt4.QtGui import QImageWriter, QImageIOHandler frmts = ['bmp', 'bw', 'eps', 'ico',

Re: [PyQt] Usage of QImageWriter.supportsOption()

2012-11-29 Thread Vincent Vande Vyvre
Le 29/11/12 11:41, Vincent Vande Vyvre a écrit : I'm trying to see what option is supported by QImageWriter(). A test code: - # -*- coding: utf-8 -*- from PyQt4.QtGui import QImageWriter

Re: [PyQt] Usage of QImageWriter.supportsOption()

2012-11-29 Thread Vincent Vande Vyvre
Le 29/11/12 13:23, Phil Thompson a écrit : QImageWriter can only handle one format, so create a new one in the loop. Phil OK, it's more clear for me now. Thanks -- Vincent V.V. Oqapy https://launchpad.net/oqapy . Qarte https://launchpad.net/qarte . PaQager https://launchpad.net/paqager

Re: [PyQt] override wheelEvent issue

2013-01-23 Thread Vincent Vande Vyvre
Le 23/01/13 17:12, Vicent Mas a écrit : Hi, I have a subclass of QScrollBar and I'd like to customize how it handles the QEvent.Wheel event. My first idea was to override its wheelEvent() method, but this method gets never called when I wheel the scrollbar. If I override the event() method

Re: [PyQt] PyQt4 Class Reference.

2013-01-28 Thread Vincent Vande Vyvre
Le 28/01/13 14:07, Phil Thompson a écrit : On Mon, 28 Jan 2013 18:25:57 +0530, Manoj Kumar manojkumarsivaraj...@gmail.com wrote: Hello , I'm unable to access this website for the past couple of days --PyQt4 class

Re: [PyQt] Pyqt Translation

2013-01-31 Thread Vincent Vande Vyvre
Le 31/01/13 12:37, uahmed a écrit : Hi I am facing problem in doing translation of pyqt application . The way i use to create frame /window is that . I create the frame on Qt4 Designer and it generate the .ui file after that i convert it to python file using pyuic4 tool and include it in the

Re: [PyQt] Texturing using PyQt/PySide

2013-02-03 Thread Vincent Vande Vyvre
Le 03/02/13 11:20, the lily a écrit : thanks but I do not wanna show the image on button I wanna show it on a window From: niceguy...@gmail.com Date: Sun, 3 Feb 2013 15:35:56 +0530 Subject: Re: [PyQt] Texturing using

Re: [PyQt] Javascript causes segmentation fault

2013-02-06 Thread Vincent Vande Vyvre
Le 06/02/13 15:51, xUMi a écrit : Hi there, I'm struggling on a mysterious crash since few weeks now. I tried to find some help on Stackoverflow and on the Qt forum, but I got no luck. Basically, when I try to display some website (www.softpedia.com http://www.softpedia.com, for example)

[PyQt] SIP Error with a %MethodCode

2013-03-17 Thread Vincent Vande Vyvre
Hi, I have, in C++, a method wich return an array of double and I've set a MethodCode in the .sip file to convert the array to a Python list of int. The array in the C++ code: - double lr[256]; for (int i = 0 ; i 256 ; i++) { float val =

Re: [PyQt] Comparison of QPointF

2013-03-29 Thread Vincent Vande Vyvre
Le 29/03/13 19:10, Phil Thompson a écrit : On Thu, 28 Mar 2013 12:10:37 +0100, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Hi, ... QPointF doesn't support the comparison you are trying to do. In Python2 this falls back to a (useless) pointer comparison. In Python3 this (correctly

Re: [PyQt] QGraphicsView very slow under Linux and Mac OS X

2013-04-03 Thread Vincent Vande Vyvre
Le 03/04/13 17:28, Clemens Brunner a écrit : On 04/03/2013 04:23 PM, Hans-Peter Jansen wrote: What you see is possibly related to the default Qt graphics engine: when using: QT_GRAPHICSSYSTEM=opengl python graphicsviewtest.py the values are oscillating around 150 here. With native and

Re: [PyQt] QsciScintilla Lexer disappears?

2013-04-22 Thread Vincent Vande Vyvre
Le 22/04/2013 02:51, Lee Harr a écrit : I am trying to use QsciScintilla in a project but I am having some trouble with the Lexer. I don't understand why this code shows the lexer at the end of __init__ but when clicking in the margin it shows None. Any thoughts? import sys from PyQt4.QtCore

Re: [PyQt] QsciScintilla Lexer disappears?

2013-04-22 Thread Vincent Vande Vyvre
Le 22/04/2013 09:52, Vincent Vande Vyvre a écrit : Le 22/04/2013 02:51, Lee Harr a écrit : I am trying to use QsciScintilla in a project but I am having some trouble with the Lexer. I don't understand why this code shows the lexer at the end of __init__ but when clicking in the margin it shows

[PyQt] Custom widgets in Qt5

2013-06-04 Thread Vincent Vande Vyvre
Hi, With PyQt4 I have this folder: /usr/lib/x86_64-linux-gnu/qt4/plugins/designer/ wich content the lib libpythonplugin.so and a subfolder python for my custom widgets. Now, I've just installed Qt5 and the latest snapshots of SIP and PyQt5 and I'm looking whee can I copy my own widgets.

Re: [PyQt] Custom widgets in Qt5

2013-06-06 Thread Vincent Vande Vyvre
Le 05/06/2013 23:13, Phil Thompson a écrit : In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in depends on how your Qt5 installation is configured. Phil I don't know why but the Makefile was not created in .../PyQt-gpl-5.0-snapshot-cdc78cf84e0d/designer/ So, I've re-run

Re: [PyQt] Custom widgets in Qt5

2013-06-18 Thread Vincent Vande Vyvre
Le 06/06/2013 12:52, Vincent Vande Vyvre a écrit : Le 05/06/2013 23:13, Phil Thompson a écrit : In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in depends on how your Qt5 installation is configured. Phil I don't know why but the Makefile was not created in .../PyQt-gpl-5.0

  1   2   >