Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 03:05:55 BST 2013, John Fabiani wrote: Sorry if I mis-led you somewhere. The C++ app has been around for many years and is NOT going to be rewritten anytime soon. I want to integrate a python solution that will allow me to create new content using python all running within

Re: [PyQt] Custom C++ types as signal arguments

2013-10-01 Thread David Boddie
On 28 September 2013 15:31:41, I wrote: Thanks for the correction - it works! In fact, removing the StringList type altogether appears to work, which puts me back in the position I started in, but with working code. The typedef was originally put in as a workaround for the crash and because I

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 15:16:58 BST 2013, John Fabiani wrote: If you would forward an example to me it would very helpful. I'll try to dig something out. I sent a broken example to the mailing list a few days ago, but I'm sure I could put something else together. I think both of you are suggesting

Re: [PyQt] Fwd: Re: c++ app integrate PyQt

2013-10-01 Thread David Boddie
On Tue Oct 1 16:08:23 BST 2013, John Fabiani wrote: On 10/01/2013 08:00 AM, David Boddie wrote: [...] You don't have to wrap the entire API or rewrite the whole application. You just need to identify which classes need to be exposed to Python and wrap those. [...] I'm so sorry David

Re: [PyQt] Custom C++ types as signal arguments

2013-09-28 Thread David Boddie
On 28 September 2013 14:29:03, Phil Thompson wrote: On Tue, 24 Sep 2013 13:24:05 + (UTC), David Boddie davidb at met.no wrote: My sip wrapper starts with a typedef for the StringList type and %MappedType implementations for std::string and StringList: Remove this typedef

Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control

2013-09-16 Thread David Boddie
On Tuesday, September 10, 2013 10:02:02 PM Michael Staggs wrote: The actual code snippet is: @pyqtSlot() def item_clicked(self): row = self.listWidget.currentRow() song = musiclist[row] self.mediaObject = Phonon.createPlayer(Phonon.MusicCategory)

Re: [PyQt] Probably a really simple Phonon question with gstreamer backend and kmix volume control

2013-09-15 Thread David Boddie
On Sat, 14 Sep 2013 21:14:08 -0500, Michael Staggs wrote: No ideas? I failed to reproduce the problem on Debian, but there are other issues that may be causing that. See below. On Tuesday, September 10, 2013 10:02:02 PM Michael Staggs wrote: This is a screenshot of my program I've written

Re: [PyQt] PyQt4 question about type-to-select in numeric drop-down lists

2013-08-27 Thread David Boddie
On Tue Aug 27 15:53:59 BST 2013, Sarah Mount wrote: sorry if this is a bit of a n00b question, but hopefully someone can clarify a misunderstanding for me. I am working with some colleagues on a Python2.x PyQt4 project and the GUI for this software has several drop-down lists where each entry

Re: [PyQt] help a noob, Im a noob

2013-07-11 Thread David Boddie
On Tue, 9 Jul 2013 15:00:25 -0600 (MDT), Brian McDonald wrote: Just getting into programming in general. Loving python so far. I am working on an application that will display database information on screen. The idea is that some rows of database information will appear on screen for 30

Re: [PyQt] Kled module

2013-06-26 Thread David Boddie
On Tue Jun 25 23:55:53 BST 2013, Phil wrote: On 25/06/13 22:34, Robert Kent wrote: Hi Phil, I don't know about using Kled, but I have an LED widget written in pure python/PyQt4 which may suit your needs. You can download it from my google code page here:

Re: [PyQt] graphical file tail

2013-06-25 Thread David Boddie
On Mon Jun 24 20:24:25 BST 2013, Eric Frederich wrote: I'm trying to tail several files graphically. I have been trying to find a way to tail several files in a GUI without much luck at all. [...] Basically, I want to graphically tail files and when the GUI closes the tail subprocesses are

Re: [PyQt] Using Web2Py's gluon DAL with QTableView?

2013-06-18 Thread David Boddie
On Mon, 17 Jun 2013 16:33:22 +0100, Simon Carr wrote: Hi, Has anyone had experience using Web2Py's DAL (gluon) with PyQt. I am using gluon with a project I am currently working on and am starting to make use of some large data sets that I would like users to view / manipulate in QTableView.

Re: [PyQt] regarding report generation

2013-06-15 Thread David Boddie
On Thu, 13 Jun 2013 17:05:53 +0530, mohit sarla wrote: I have written code for generate report(.pdf) in PyQt4 in linux plateform, report is generated. But the same code is not working on windows, what is the problem and what is the solution for that?? please reply You need to

Re: [PyQt] Tableview to PDF

2013-06-06 Thread David Boddie
On Thu, 6 Jun 2013 10:55:33 +0100, Cristobal Infante wrote: I am wondering if anyone has a working example of how to export a tableview to a pdf Doc. I've been able to some sort of pdf exports, but they always come out trimmed by the current viewing area. I need it to export to whole

Re: [PyQt] PyQt Learning Sources for MVC Pattern and Why Does QT

2013-05-30 Thread David Boddie
On Thu May 30 00:02:34 BST 2013, I wrote: On Wednesday 29 May 2013, d hee wrote: Thanks, I am thinking about buying the book Rapid GUI Programming with Python and Qt by mark summerfield which was published in 2007. Would 2007 be up to date enough to use the mapper class? And would it also

Re: [PyQt] PyQt Learning Sources for MVC Pattern and Why Does QT

2013-05-30 Thread David Boddie
On Thu May 30 10:34:27 BST 2013, Simon Carr wrote: There are a number of videos on youtube that cover the mvc pattern. There is one series which seems to have an extensive number of videos. Do you mean these? http://www.yasinuludag.com/blog/?p=98 There certainly seems to be a lot of

Re: [PyQt] PyQt Learning Sources for MVC Pattern and Why Does QT

2013-05-29 Thread David Boddie
On Wednesday 29 May 2013, d hee wrote: Thanks, I am thinking about buying the book Rapid GUI Programming with Python and Qt by mark summerfield which was published in 2007. Would 2007 be up to date enough to use the mapper class? And would it also explain delegates? It's pretty pricey so I

Re: [PyQt] PyQt Learning Sources for MVC Pattern and Why Does QT

2013-05-28 Thread David Boddie
On Sun, 26 May 2013 05:04:22 -0700 (PDT), d hee wrote: I am trying to learn how to write pyQt specifically in the MVC model. I know some bare fundamentals for making buttons, signals, etc. But what I don't know is how to write pyQt in a MVC model with classes and methods made for this. I have

Re: [PyQt] Paste entire column into QTableView from Excel

2013-05-14 Thread David Boddie
On Mon 13 May 2013 15:12:41 -0400, Mark Mordeca wrote: I am having an issue pasting into a QTableView from Excel when the user has copied by selecting an entire column in Excel, essentially putting every single row in the selected column, for the entire excel sheet, on the clipboard. The

Re: [PyQt] Designer Customer Widget

2013-05-10 Thread David Boddie
On Wed, 08 May 2013 15:20:26 -0500, Stephen Funkhouser wrote: [...] Is it possible to get Qt Designer to save custom properties of the inherited QTreeWidgetItems objects? I guess it's more of a Qt Designer question than a PyQt question but you would need to find out if a C++ custom widget

Re: [PyQt] PyQt IRC website link broken

2013-04-18 Thread David Boddie
On Thu Apr 18 19:53:01 BST 2013, Mike Driscoll wrote: I don't know who to report this to, but the link that's at the top of the IRC channel for PyQt is broken: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html If you go to that page, you get a 404. One of the other

Re: [PyQt] PyQT4 and Qt Embedded 4.8.4

2013-02-01 Thread David Boddie
On Fri, 01 Feb 2013 09:15:29 +, Phil Thompson wrote: On Fri, 1 Feb 2013 17:01:53 +0900, IhatemyISP ihatemy...@gmail.com wrote: PyQT - 4.9.6 Qt - 4.9.6 Python - 2.7.2+ I'm doing this on a Beaglebone, hence the desire to use Qt/E. Any advice you can give will be appreciated.

Re: [PyQt] newbie installing under OpenBSD

2012-12-22 Thread David Boddie
On Date: Sat, 22 Dec 2012 00:26:53 -0500, Alan Corey wrote: Following the directions in the README, when I do: python2.7 configure.py --verbose where I extracted in /usr/src/misc/pyqt4/PyQt-x11-gpl-4.9.6 I get messages like: qtdirs.cpp:1:28: error: QCoreApplication: No such file or directory

Re: [PyQt] dense about qvariant and dict

2012-12-07 Thread David Boddie
On Sat Dec 8 00:06:28 GMT 2012, David Cortesi wrote: dict(qv) doesn't do it. qv.toHash produces an empty dict. qv.toMap produces a QMap with the original keys as QStrings and the original data as QVariants. OK, but I'd rather have the python dict -- is there a way to get it, or do I have to

Re: [PyQt] TableView Cell Delegates

2012-10-29 Thread David Boddie
On Mon, 29 Oct 2012 11:09:25 +, Cristobal Infante wrote: What I want is to change the background of a tableview cell, from what I understand I should be looking at the Qt.BackgroundRole. So far I havent bee able to get it working. You need to make sure that the model supplies data for

Re: [PyQt] QImage in BI24 format

2012-09-19 Thread David Boddie
On Wed, 19 Sep 2012 09:31:55 -0700, Matt Newell wrote: On Wednesday, September 19, 2012 12:19:31 AM Gelonida N wrote: On 09/18/2012 08:13 PM, Gelonida N wrote: I tried to set the pixel format to QImage.Format_RGB888 and I can see the image. However the red and blue colors are

Re: [PyQt] PyQt on BeagleBone

2012-07-28 Thread David Boddie
On Wed, 25 Jul 2012 17:46:11 -0500, Mark wrote: I'm developing a commercial project using a BeagleBone system-on-module. This runs Angstrom Linux: Angstrom v2012.05 (Core edition) Target system: arm-angstrom-linux-gnueabi I'd very much prefer to use PyQt for the GUI development for this

Re: [PyQt] recommendations for automatic testing of pyqt applications

2012-07-28 Thread David Boddie
On Tue, 24 Jul 2012 23:03:53 +0200, Gelonida N wrote: Im having a self written pyQT applciation. Now I wondered how I could easiest apply automated test. [...] Is there any existing testing framwork for such tasks or would I have to start from scrratch. Some of the frameworks described on

Re: [PyQt] Phonon-VLC and PyQT

2012-07-18 Thread David Boddie
On Mon, 16 Jul 2012 10:09:44 -0400, Yves Perron wrote: I'm guessing Phonon-VLC combined with PyQT is not that popular but still, it would be very helpful if anyone would share thoughts on the subject. Still digging, On 7/10/2012 4:56 PM, Yves Perron wrote: Greetings, For simplicity

Re: [PyQt] Problem with icons

2012-07-14 Thread David Boddie
On Thu, 12 Jul 2012 16:23:17 +0200, Szabo, Patrick (LNG-VIE) wrote: I'm using Python 3 and Qt 4.8.2 The icons I'm setting and images in general work fine on my development machine but on any other machine they are not showing up. I've tried absolute and relative paths and now even with the

Re: [PyQt] Possible Issue with PyQt on Amazon EC2 Instance

2012-07-07 Thread David Boddie
On Thu, 05 Jul 2012 22:24:08 +0100, Phil Thompson wrote: On Thu, 5 Jul 2012 17:17:22 -0400, Kevin Hu k...@mit.edu wrote: [...] When I kill process Xvfb :99, and try again, I receive the error: ghost: cannot connect to X server :99 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set

Re: [PyQt] Custom Timeline widget with (Py)Qt

2012-07-01 Thread David Boddie
On Sat, 30 Jun 2012 19:14:04 -0600, Jorge Araya Navarro wrote: Some people got answers like you should choose between QML, QGraphic framework(?) or flat widgets from questions like this one. So, instead of writing what I need for my custom Timeline widget, I did a very explicit mock up with

Re: [PyQt] QTabWidget tab width change

2012-06-12 Thread David Boddie
On Tue Jun 12 17:48:06 BST 2012, David Cortesi wrote: 1. QTabWidget tab width change (Ganesh Kumar) I have try with pyqt, with QTabWidget I want increase tab width my application. How to achieve tab width. please guide me. [...] If you insist, you could use the setTabBar() method to

Re: [PyQt] PyQt4 window not properly closing with signals From.close

2012-06-11 Thread David Boddie
On Mon, 11 Jun 2012 15:45:53 +0530, Ganesh Kumar wrote: I am new to pyqt, I try two qt designer files one is main window second sub window, Load main window click button open new window allow things to happen user clicks exit on that window close sub window return to main window I am tried

Re: [PyQt] what is pyqtSignature( )

2012-05-20 Thread David Boddie
On Sat, 19 May 2012 19:50:49 +0530, Ganesh Kumar wrote: I very new to pyqt, I am still learning face, I have seen the example program, @pyqtSignature(QString). It's a decorator function, But I can't seen the function not available to my source file, please guide me. @pyqtSignature(double)

Re: [PyQt] Time auto update to my widget

2012-05-18 Thread David Boddie
On Thu, 17 May 2012 17:43:08 +0530, Ganesh Kumar wrote: I am new to pyqt, I have create one small application, my application starts time , will updates continuously, like analog clock How to do this, please guide me guys, Take a look at the widgets/analogclock example in the PyQt archive.

Re: [PyQt] Stick a frameless window to the desktop

2012-05-13 Thread David Boddie
On Sat, 12 May 2012 20:03:43 +0530, Bhuvan Krishna wrote: Hope you all know how google desktop used to stick to the desktop. even when the user opens a new window the window will resize itself keeping the google desktop on the right intact not going behind the newly opened window. I am

Re: [PyQt] Disable QSpinBox in QTableView

2012-04-21 Thread David Boddie
On Sat, 21 Apr 2012 09:10:05 +0300, Vadym wrote: I built QTableView table with proxy, delegates and everything works fine. When I try to edit cells with digits or double data appears QSpinBox as editor and it's my problem. I don't want and didn't create QSpinBox as delegate at all and any

Re: [PyQt] Next window show

2012-03-30 Thread David Boddie
On Fri Mar 30 15:42:10 BST 2012, Ganesh Kumar wrote: I am new to pyqt. in my window having next (push-button) when user clicks and next window will see. please guide me. Have you looked at QWizard? http://doc.qt.nokia.com/4.7/qwizard.html David

Re: [PyQt] QtNetwork newbie question

2012-03-19 Thread David Boddie
On Mon Mar 19 19:22:09 GMT 2012, John Stewart wrote: So my first thought was to try not binding the nextPendingConnection() which looks like this: self.connect(self.tcpServer.nextPendingConnection(), QtCore.SIGNAL(readyRead()), self.tcpSocketReadyReadEmitted) OK, this looks fine, I think.

Re: [PyQt] Extending Built-In Styles

2012-03-18 Thread David Boddie
On Mon, 12 Mar 2012 09:39:31 -0700, Rapczak, Jesse wrote: Is it possible to somehow extend or export a text stylesheet from Designer's Preview In... menu of styles? I'm looking for a way to just change a few colors without having to completely define everything. If you mean styles like

Re: [PyQt] New member (Drag and Drop)

2012-03-08 Thread David Boddie
On Thu Mar 8 15:59:20 GMT 2012, Shoemaker, Ronnie A wrote: Okay, I will narrow the scope of this question for now. I am playing with the draggablewidgets demo in PyQt4. What is the secret to getting different images into that app or how do I create a PNG image that it will load? First, make

Re: [PyQt] Importing marble fails

2012-01-28 Thread David Boddie
On Sat, 28 Jan 2012 02:12:19 -0600, heathmatlock wrote: I compiled one of the newer marble commits, 10c910a9cae3c4e8eb9be442d80125b7e7338e67, and copied the marble.so into  /usr/lib/python2.7/dist-packages/PyKDE4 and when I go to import marble within a python interpreter, this error is

Re: [PyQt] Qtablewidget

2012-01-20 Thread David Boddie
On Fri, 20 Jan 2012 08:09:09 +0700, Dodi Ara wrote: for example, i have one file $ cat a tes $ so, the test fill in the one or more row or columns thanks, any help will be appreciate On 1/20/12, Dodi Ara dodi@gmail.com wrote: i wondering, how can i add from my files to table

Re: [PyQt] Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread David Boddie
On Thu Jan 19 18:20:39 GMT 2012, Nils wrote: Everything display related helps: I believe closed nvidia drivers will shift the symbol. I tested it myself on ati and intel graphics, both 32 and 64 bit and it looked good, both on Linux and Windows. Other users with ati and intel GPU's had no

Re: [PyQt]  QComboBox: display text but pass on Unique Id (MySql)

2011-11-08 Thread David Boddie
On Fri, 4 Nov 2011 13:51:45 +, Cristobal Infante wrote: My first post in this list, a big hello to everyone :D Welcome! I am just starting with Pyqt but have enough experience with python. I am connecting a Mysql Databse nicely, being able to retrieve the complete table and get it as

Re: [PyQt] Errors while rendering to multiple QGLWidgets in a multi-threaded app

2011-11-07 Thread David Boddie
On Sat, 5 Nov 2011 17:57:04 -0700, Michael Broxton wrote: I wanted to send another quick request for help in case any PyQt devs or users can help me with the QGLWidget multi-threaded rendering bug I posted about below... I've done a little more testing this week and found that this issue

Re: [PyQt] IPC in PyQt4

2011-10-24 Thread David Boddie
On Sat, 22 Oct 2011 10:00:43 +0800, zw g wrote: Could someone tell me that what is the best or recommended approach to do the IPC(Inter-Process Communication) thing? QProcess? QSharedMemory? Or just socket? It depends on how your application works, whether or not you want a cross-platform

Re: [PyQt] Determine size of a button

2011-10-16 Thread David Boddie
On Fri, 14 Oct 2011 02:39:49 -0700 (PDT), Joe M wrote: The question is: is there a way in which I can tell how big the buttons will be without having to create them in the first place? Or any other hints? You can make estimates based on the application's font size. However, there are other

Re: [PyQt] Foreground and Background Color QToolButton

2011-08-18 Thread David Boddie
On Thu, 18 Aug 2011 06:16:22 +0500, uahmed wrote: I want to change the foreground and bankground color of QToolButton , I know this can be done using .setStyleSheet but i want to use other way to do that can it be done through QPlatter i search it on net i do find examples of .setStyleSheet

Re: [PyQt] Please tell me if I have this straight...

2011-08-05 Thread David Boddie
On Fri Aug 5 19:27:51 BST 2011, David Cortesi wrote: I present a document to a user in a QPlainTextEdit widget. The widget nicely handles most editing functions, but there is a unique operation I want to provide. When the user selects Edit BLEEP, the app is supposed to BLEEP the document. I

Re: [PyQt] Snippet to embed a widget in an editor.

2011-07-22 Thread David Boddie
On Sun Jul 17 04:57:00 BST 2011, Phlip wrote: Hi, group. I'm trying to embed an object into a QTextEdit which is NOT (shocked gasp!) an SVG image. Foundational for embedding a panel, I'm trying to embed a widget. But I can't seem to get the size right. Here's the sauce: [...] If you ran

Re: [PyQt] [SIP]MD5 openssl

2011-07-01 Thread David Boddie
On Wed Jun 29 10:38:07 BST 2011, Jarosław Białas wrote: Recently I tried to use my c++ library in Python using SIP. In SIP configuration file I added some extra libraries like QtGui,fftw3 and ssl. Compilation and linking pass without any warnings or errors: g++ -c -pipe -fPIC -O2 -Wall -W

Re: [PyQt] Designer issues, WYS-is not-WYG

2011-06-28 Thread David Boddie
On Tue, 28 Jun 2011 08:06:44 +0200, Hans-Peter Jansen wrote: On Tuesday 28 June 2011, 01:08:38 James Polk wrote: I often get positon offset weirdness using QFrames, QGroupBoxes,etc... They look good in Designer, then off in main program, so I have to make them look off in Designer, so

Re: [PyQt] Background color for cells in QTableView

2011-06-24 Thread David Boddie
On Fri Jun 24 20:30:32 BST 2011, Marc Rossi wrote: I have a model/view app with a QTableView that I would like to have columns 2, 3 4 shaded a different color than the rest. My model sub-classes QAbstractTableModel and I also use a QSortFilterProxyModel. I assumed I could just override

Re: [PyQt] licensing

2011-06-23 Thread David Boddie
On Thu Jun 23 21:32:47 BST 2011, Joel B. Mohler wrote: On Thursday, June 23, 2011 04:33:20 am Phil Thompson wrote: You haven't said what license you want to use for your code. If you use the GPL version of PyQt then your license must be compatible with the GPL. Sure, that's true *while*

Re: [PyQt] Passing image using SIP

2011-06-21 Thread David Boddie
On Mon Jun 20 23:46:27 BST 2011, Jarosław Białas wrote: I wanted to create code fragment that will pass an object containg image or pointer to this object from Python to C++ function. I tried to create function: void loadImage(QImage* image); Then I created sip file, and after compiling and

Re: [PyQt] Screenshot with no show

2011-06-21 Thread David Boddie
On Tue Jun 21 10:40:56 BST 2011, Mads Ipsen wrote: I have a GLWidget (OpenGL) based window which is used for displaying chemical structures. I would like to use this window to generate thumbnails used as icons for the files containing the chemical structures. I would like to hide this

Re: [PyQt] Qt Contributors Summit

2011-06-13 Thread David Boddie
On Wed, 08 Jun 2011 10:25:13 +0100, Phil Thompson wrote: I will be attending the Qt Contributors Summit next week. The primary purpose (as I understand it) is to discuss the plans for Qt5. See... http://labs.qt.nokia.com/2011/05/09/thoughts-about-qt-5/

Re: [PyQt] Getting image filename in QLabel-pixmap

2011-06-04 Thread David Boddie
On Fri, 3 Jun 2011 18:12:49 -0700 (PDT), James Polk wrote: Let's say you create a QLabel and make it an icon, by associating an image file to it,.. like.. ? thisPixmap? = QtGui.QPixmap('server:/images/airplane.jpg') ) ? thisIcon = QtGui.QLabel(self) ?

Re: [PyQt] Where to start

2011-06-03 Thread David Boddie
be able to remove that check. I'll verify this a bit later. David -- David Boddie Senior Technical Writer Nokia, Qt ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QTreeView with blue line cursor at init

2011-06-02 Thread David Boddie
On Wed, 1 Jun 2011 10:46:42 -0700, emmanuel_mayssat wrote: I have an application that run a sequence of tasks listed in a treeview. There is a run button. When the run button is pressed, it executes all the task in the subtree. Now, when the application open, it is not really clear what the

Re: [PyQt] Drag-and-drop editing in QListWidget or QListView

2011-06-02 Thread David Boddie
On Thu Jun 2 14:05:41 BST 2011, Nathan Weston wrote: I have a QListWidget with dragDropMode set to InternalMove, and I can move rows around by dragging as expected. But I also want to know when items are moved so I can update other data in my application, and I can't find any way to do this.

Re: [PyQt] Where to start

2011-06-02 Thread David Boddie
On Thu Jun 2 23:07:12 BST 2011, Brickle Macho wrote: I am trying to do is display an image, and then using drag-selection to select a sub-image for later processing. Eventually I want to be able to select multiple regions and tag each region for appropruate back end processing, but for now

Re: [PyQt] Basic 3D Viewer

2011-05-30 Thread David Boddie
On Mon May 30 20:04:16 BST 2011, Knacktus wrote: I need to evaluate the options for building a basic 3D viewer with PyQt. The scenes are static, but quite large (some hundreds medium complex (~500 triangles) objects). Show/Hide objects, rotate, drag, zoom, change colors and some other basic

Re: [PyQt] FW: cascadeSubWindows oversized--Conclusion

2011-05-24 Thread David Boddie
On Tuesday 24 May 2011, Pietro Moras wrote: Therefore my Operative conclusion is: O1) To rely upon the “RiverbankComputing.com PyQt Mailing List”, as in this actual “cascade” case. O2) To share in that List my possibly useful s/w fragments as a reward and to the benefit of other fellow

Re: [PyQt] FW: cascadeSubWindows oversized

2011-05-23 Thread David Boddie
On Mon May 23 14:26:27 BST 2011, Pietro Moras wrote: It wouldn't do, in the sense that: -- “.tileSubWindows” method works fine, whereas -- “.cascadeSubWindows” doesn't, on exactly the very same situation. And that is the problem. OK, so you really need a way to cascade all the windows

Re: [PyQt] FW: cascadeSubWindows oversized

2011-05-23 Thread David Boddie
On Monday 23 May 2011, Pietro Moras wrote: Can you describe more accurately what you want to see? David Simply that all “cascaded” child windows be within the Upper Left – Lower Right corners of the host MDI Window, with no scroll bar on. - P.M. I think you will need to write a function to

Re: [PyQt] FW: cascadeSubWindows oversized

2011-05-22 Thread David Boddie
On Sat, 21 May 2011 11:41:43 +, Pietro Moras wrote: Let me ask this same question this other way:    Is there a method to reset the size of all MDI SubWindows so that to fit them at once exactly on the space available on the host MDI window? Thanks! Would tileSubWindows() do what you

Re: [PyQt] Links in QMessageBox.about() not working

2011-05-17 Thread David Boddie
On Tue May 17 10:21:04 BST 2011, Hans-Peter Jansen wrote: On Monday 16 May 2011, 14:28:00 Anoop Panavalappil wrote: I am developing a simple cross platform GUI using PyQt. I have tried to show the about dialog using QMessageBox.about() with richtext formatting with html tags (b, br, and

Re: [PyQt] QSqlDatabase connect MsSQL2008 in Linux

2011-05-14 Thread David Boddie
On Mon May 9 01:57:17 BST 2011, Luan Mai wrote: I am having issue with PyQt connecting to MsSQL database. I am able to run update query, but not able to select query. When ever I run select, it always return empty list. I am using the same code but connect to MySQL or Sqlite, they are all ok.

Re: [PyQt] Monkeypatching QWebPage.userAgentForUrl

2011-05-13 Thread David Boddie
On Wed May 11 22:41:13 BST 2011, Gelonida G wrote: def patch_agent(): old_userAgentForUrl = QWebPage.userAgentForUrl def new_userAgentForUrl(self, url): for demo purposes I just added logging rslt = old_userAgentForUrl(self, url) print agent is %s % rslt

Re: [PyQt] Monkeypatching QWebPage.userAgentForUrl

2011-05-13 Thread David Boddie
On Fri May 13 02:23:30 BST 2011, Kay Hayen wrote: thanks in advance for any explanations or suggestions how to change the user agent 'globally' Why do you try to monkeypatch it? Subclassing QWebView and implementing just the overridden method is much cleaner and doesn't look like a

Re: [PyQt] Absolute size on screen

2011-05-07 Thread David Boddie
On Fri, 6 May 2011 11:38:49 +, Pietro Moras wrote:  In need to ?break the ice? with PyQt4, so I dare to ask you where I could look for such basic a task as to express a length in absolute pixel size on screen, so to draw a square not subject to re-sizing and zooming. Thanks! Take a look

Re: [PyQt] qstate transitions() method

2011-05-04 Thread David Boddie
On Tue, 3 May 2011 17:43:58 -0700, emmanuel_mays...@lynceantech.com wrote: qstate.transition() is available in qt4.7 I am using 4.6 Although it's probably an implementation detail, you could call state.findChildren(QAbstractTransition) to get a list of transitions. David

Re: [PyQt] selecting an item in qtreewidget

2011-05-03 Thread David Boddie
On Tue, 3 May 2011 22:19:27 +, Jason Rahm wrote: One more thing, how do I pass the value of the clicked item to the displayRule def? Printing test gets the GUI components figured out, but not functional. Thanks in advance. The itemClicked signal passes two parameters which you can

Re: [PyQt] Newbie resizing dock widgets question

2011-04-26 Thread David Boddie
On Mon Apr 25 21:50:43 BST 2011, Sarah Mount wrote: In designer-qt4 the object inspector, widget box and so on seem to be QDockWidgets. I'm making a GUI in Designer that I want to be similarly structured. In designer the edge of each QDockWidget can be grabbed with the mouse and resized, but

Re: [PyQt] Newbie resizing dock widgets question

2011-04-26 Thread David Boddie
On Wednesday 27 April 2011, Sarah Mount wrote: On Tue, Apr 26, 2011 at 21:45, David Boddie da...@boddie.org.uk wrote: Which version of Qt Designer are you using? Did you manually place the dock widget into a layout? This is Designer 4.7.2 on Ubuntu Natty and the docks are going inside

Re: [PyQt] Error while installing PyQtMobility 1.0 on Ubuntu 10.10

2011-04-19 Thread David Boddie
]: Leaving directory `/home/dboddie/Software/PyQtMobility-gpl-1.0/QtLocation' make: *** [all] Error 2 Previously, I've worked around this by fixing the qgeorouterequest.h header file, but one of the Qt Mobility developers suggested that the failure wasn't a Qt Mobility issue. David -- David Boddie

Re: [PyQt] Error while installing PyQtMobility 1.0 on Ubuntu 10.10

2011-04-18 Thread David Boddie
On Mon, 18 Apr 2011 11:24:13 +0100, Phil Thompson wrote: On Mon, 18 Apr 2011 18:13:17 +0800, chinakr chin...@gmail.com wrote: [...] Generating the C++ source for the QtContacts module... sip: /home/chinakr/src/PyQtMobility-gpl-1.0/sip/QtContacts/qcontactaddress.sip:37: Cannot mix

Re: [PyQt] Help with Design of Dialog interface

2011-04-18 Thread David Boddie
On Sun, 17 Apr 2011 19:43:17 +0100, alsaf wrote: I am currently writing a project which takes vocabulary words from a XML file which is created through the KDE application Parley and generates sentences based on them. The project page is here:

Re: [PyQt] Styling an QMdiArea widget

2011-04-17 Thread David Boddie
On Sun Apr 17 15:36:11 BST 2011, Sarah Mount wrote: On Sun, Apr 17, 2011 at 15:28, Vincent Vande Vyvre vincent.vandevyvre at swing.be wrote: You can use setBackground() self.brush = QtGui.QBrush(QtGui.QPixmap(view.jpg)) self.mdi.setBackground(self.brush) but

Re: [PyQt] Styling an QMdiArea widget

2011-04-17 Thread David Boddie
On Sun Apr 17 19:48:16 BST 2011, Sarah Mount wrote: Thanks, you and David were both right, the error was an incorrect path for the JPG. However, what I was after was to have one image appear in the background, and not to have the image tiled. This is possible using a style sheet, but I'm not

Re: [PyQt] Use QWebview with Flash plugin

2011-04-17 Thread David Boddie
On Sat, 16 Apr 2011 18:55:43 +0200, Gelonida Gmail wrote: I'd like to have a small QWebview window in our application, which could display the contents of a web page requiring Flash. Is this possible with PyQT? If yes, is it possible - on a Windows platform - on a linux platform Yes, on

Re: [PyQt] Help with QStateMachine and animations

2011-04-05 Thread David Boddie
On Tue, 5 Apr 2011 00:05:44 +, Demetrius Cassidy wrote: I am trying to animate a QTableView moving off-screen from center (0,0), which is replaced by a QGroupBox which slides to 0,0 from off-screen inside my QStackedWidget. I am using a QStateMachine which contains two states, and

Re: [PyQt] SIP Problem dynamic loading in wrapped library

2011-03-30 Thread David Boddie
On Wed, 30 Mar 2011 23:07:07 +0200, Jens Thoms Toerring wrote: Since with the QLibrary class there doesn't seem to be a possibility to get at the error messages from the dynamic linker I replaced the QLibrary load() method calls with a dlopen() call. This also fails and dlerror() tells me

Re: [PyQt] distinguish / enable / disable multiple pointer devices

2011-03-24 Thread David Boddie
On Friday 25 March 2011 00:10:21 +0100, Gelonida wrote: I have a PC (Windows) with a mouse, a touch screen and a graphics tablet. Is there any way to know with which device a widget was clicked? If the widget interprets a mouse click, screen touch or a press on the tablet as mouse events then

Re: [PyQt] include text in FigureCanvas

2011-03-24 Thread David Boddie
On Thu Mar 24 03:35:58 GMT 2011, nimi pillai wrote: Can someone please tell me how to include some texts in FigureCanvas 3Dplot. Can you tell us what FigureCanvas is and how you are using it with PyQt? David ___ PyQt mailing list

Re: [PyQt] Plugin widget for designer

2011-03-24 Thread David Boddie
On Thu Mar 17 16:47:27 GMT 2011, Entity Reborn wrote: I have successfully managed to get my widget to show up in the designer. Unfortunately when I insert it into the form, there is no content. All that Is seen is the bounding box. My widget inherits qTreeView. Any ideas? Maybe you have

Re: [PyQt] multiple languages within the same application

2011-03-14 Thread David Boddie
On Mon Mar 14 17:34:19 GMT 2011, Samuele Carcagno wrote: is it possible to have different parts of an application translated into different languages? For example say that an application has two buttons, would it be possible to have the label of button1 translated in Italian and the label of

[PyQt] [PyQtMobility] QGeoServiceProvider factory methods

2011-03-11 Thread David Boddie
I've been looking at using Qt Mobility 1.1 (or thereabouts) with PyQtMobility 0.2 and I encountered an issue with the QGeoServiceProvider.mappingManager() factory method. It seems that the documented behaviour of the method conflicts with the bindings for that class in which the method is

Re: [PyQt] File Filtering using QFileSystemModel QTreeView

2011-03-04 Thread David Boddie
, but excluding certain files by their extensionseems pretty simple, right?sigh... [...] This is where the problem lies: filter = (JPG (*.jpg)); You really need something like this: filter = [*.jpg] David -- David Boddie Senior Technical Writer Nokia, Qt

Re: [PyQt] Two QWebView == Segfault?

2011-02-27 Thread David Boddie
On Sun Feb 27 19:53:16 GMT 2011, Robert Siemer wrote: What am I doing wrong? – The segmentation fault does not come immediately. I have to type something (above I typed “j”). Which versions of Qt, SIP and PyQt are you using? David ___ PyQt mailing

Re: [PyQt] Problem with colored rectangles

2011-02-19 Thread David Boddie
On Sat Feb 19 22:22:10 GMT 2011, shi dingan wrote: I have a problem with my code when I try to draw two rectangles with overlap. I draw a red one, then a green with a small part of it overlapping the red rectangle. But when I refresh the scene, I have a random behavior, that is, sometimes

Re: [PyQt] Newbie for newbies PyQt4 tutorial.

2010-11-20 Thread David Boddie
On Sat Nov 20 07:18:02 GMT 2010, Algis Kabaila wrote: Thank you for your valuable advice and encouragement to write a tutorial. The tutorial presents a simple plain text editor in stages of development and is now in the PyQt wiki as follows: A list of Stages at

Re: [PyQt] zsi soap and pyQTmobility

2010-10-28 Thread David Boddie
On Thu, 28 Oct 2010 13:40:00 +0530, Anup Joshi wrote: I am a newbie to mobile computing. I am thinking of implementing the following architecture. I would like to know if it is feasible. [1] pyQTMobility= [2] zsi (soap) client == [3] zsi soap server = [4] business logic = [5] database

Re: [PyQt] Python Commander in PyQt?

2010-10-14 Thread David Boddie
On Thu Oct 14 00:59:11 BST 2010, Glenn Linderman wrote: So then I started looking for front ends that I could tweak to speak HTTP to a custom CGI script. That's where I started this thread, and why I picked this group to ask in, because I'd find it useful and interesting educationally to

Re: [PyQt] PyQt support for Qt 4.7

2010-10-06 Thread David Boddie
On Tue Oct 5 09:36:49 BST 2010, Phil Thompson wrote: The minehunt example only seems to need support for lists of QObjects. Are there any other examples anywhere that have different use cases? I guess that's more or less what it is, though it needs something extra to make the QML engine aware

Re: [PyQt] Sending Instant Message on N900 through PyQt (using PySide QtMobility)

2010-10-06 Thread David Boddie
On Tue Oct 5 04:27:05 BST 2010, praveen koduru wrote:   I want to send IM(Instant Message) from GTalk of N900 using PyQt. I have found sending sms  PyQt script here http://wiki.maemo.org/Phone_control#Send_SMS. and tried to modify for Instant Messaging. But I am getting send failed error. I am

Re: [PyQt] PyQt support for Qt 4.7

2010-10-04 Thread David Boddie
On Mon Oct 4 14:07:52 BST 2010, Phil Thompson wrote: Current PyQt snapshots have full support for the Qt v4.7 API. The only thing left to do is full QML support (aka a working port of the minehunt demo) where you can use QML for the GUI and Python for the application logic. I briefly looked

  1   2   3   4   5   6   7   >