Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sat, 25 Feb 2006, Andreas Pakulat wrote: > On 25.02.06 09:55:18, Tina Isaksen wrote: > > > So I guess I've fallen in the trap of old-time thinking again... > > This time it's actually not python-specific "wrong-thinking" ;-);-) This > would've happend to you in C++, Java and any other threaded-

Re: [PyKDE] My thinking still wrong?

2006-02-26 Thread David Boddie
On Sun Feb 26 19:31:09, Andreas Pakulat wrote: > On 26.02.06 18:24:27, David Boddie wrote: > > Many people regard threading as a fairly advanced technique, although > > Python's own threading module makes it look almost trivial. > > I find Qt's own threading-imple

Re: [PyKDE] Printing using QPrinter

2006-03-03 Thread David Boddie
On Wed, 01 Mar 2006 23:49:12, Fabian Steiner wrote: > I am currently working on an application where the user is able to > create new worksheets and to delete existing ones. All of these > worksheets have the same structure, only some values should be changed. [...] > The values are stored in a

Re: [PyKDE] QProcess: more guidance needed

2006-03-06 Thread David Boddie
On Mon, 06 Mar 2006, Tina Isaksen wrote: > I need some QProcess pointers again I'm afraid. No problem. It's a learning process for me, too! > I need to know when the process awaits input on it's stdin. This could be difficult. > I've been experimenting with QProcess::Communication flags but I

Re: [PyKDE] QProcess: more guidance needed

2006-03-08 Thread David Boddie
On Wed, 08 Mar 2006 08:58:07, Tina Isaksen wrote: > Ok, so I managed to isolate the yes or no option regardless of language. > But I can't seem to feed it correctly to the apt-get process. The code: [...] > I do feed 'something' that apt-get recieves because it aborts. It would > not have done t

Qt Designer custom widgets (was Re: [PyKDE] Relaise of PyQt4?)

2006-03-08 Thread David Boddie
On Mon, 6 Mar 2006 14:07:44, Phil Thompson wrote: > The first (and only planned) beta will be out this month. Current snapshots > should be perfectly usable - but that's for others to say. > > All the structural changes are now in place, it's now only a question of > going through the (very short)

Re: [PyKDE] Sugestions for PyQt4

2006-03-20 Thread David Boddie
On Mon, 20 Mar 2006 10:26:27, Eric Jardim wrote: >- "Pythonic" Qt properties: instead of using things like: >"isEnabled()" and "setEnabled()", properties could be acessed >like python real properties, I mean, just "enabled". The functions >could still be mapped anyway. This could be added

Re: [PyKDE] Re: How to embed Python in C++

2006-03-25 Thread David Boddie
On Fri, 24 Mar 2006 17:40:00, Eric Jardim wrote: > I found a way of getting Python extended widgets. > > I will post here the way I did and I would like to know if this is the > right, easy and safer way of doing this: I've added comments below. > Supose this is a QWidget subclass and that I wro

[PyKDE] The old PyKDE SourceForge site

2006-03-25 Thread David Boddie
I've been thinking about ways to share and distribute code for PyQt and PyKDE, both for various low-level projects and for higher-level components. Initially, I wanted to use the PyQt Wiki (http://www.diotavelli.net/PyQtWiki) to share code and design ideas, but it seems like it's really only usefu

Re: [PyKDE] The old PyKDE SourceForge site

2006-03-25 Thread David Boddie
On Sunday 26 March 2006 00:04, Jim Bublitz wrote: > I haven't seen Jonathan around in a while, and the sourceforge site isn't > getting any use. If you have a use for it and would like admin privileges, > I can set that up, I think, assuming I can get access (I think I can). I'm > not a good candi

Re: [PyKDE] Re: How to embed Python in C++

2006-03-27 Thread David Boddie
On Saturday 25 March 2006, I wrote: > > On Fri, 24 Mar 2006 17:40:00, Eric Jardim wrote: [Defining a factory function] > It's easy to define a single function to do this: > > PyRun_String("from PyQt4 import QtGui\nimport sip\n" > "def __embedded_factory__create__(parent = N

Re: [PyKDE] PyQt4: setPaletteBackgroundColor

2006-03-29 Thread David Boddie
On Wed Mar 29 02:19:36, Patrick Stinson wrote: > this is interestin because the palette still doesn't propogate to > the widgets' children. > > """ > A common base class for all pk widgets. > """ > > from PyQt4.QtGui import QFrame, QPalette > > > class PKWidget(QFrame): > """

[PyKDE] EuroPython 2006

2006-04-08 Thread David Boddie
This year the EuroPython conference will be held at CERN (near Geneva). The call for proposals and abstracts for EuroPython 2006 was recently published, and it should now be possible to submit abstracts: http://www.europython.org/sections/tracks_and_talks/call-for-proposals Information about th

Re: [PyKDE] EuroPython 2006

2006-04-09 Thread David Boddie
On Sun, 09 Apr 2006 10:25:08, Torsten Marek wrote: > David Boddie wrote: > > This year, I'd like to try and give a talk about some aspect of PyQt > > and/or PyKDE and I wondered if anyone else intends to do something > > similar. It would be good to see some talks

Re: [PyKDE] (transparent) PIL image to QImage conversion?

2006-04-23 Thread David Boddie
On Thu, 6 Apr 2006 16:37:07, "ORCAN OGETBIL" wrote: > My problem is, the JPEG encoding kills the transparency of my PNG images. > When I do RAW encoding, I get nothing from the QByteArray object. I also > couldn't get the thing work with a GIF encoding. PIL's tostring() function > doesn't support

Re: [PyKDE] Re: Q___Style wrapper

2006-05-11 Thread David Boddie
On Thu, 11 May 2006 15:12:17, Mike Rovner wrote: > I wrapped QWindowsStyle (attached) and after exiting test application > > from PyQt4.QtGui import * > app = QApplication([]) > app.setStyle(QWindowsStyle()) > lbl = QLabel("Windows") > lbl.show() > app.exec_() > > got a crash: > > (gdb) where > #0

Re: [PyQt] creating TIFF with CCITT FAX group 4 compression

2008-07-16 Thread David Boddie
On Wed Jul 16 04:46:02 BST 2008, Glenn Linderman wrote: > So I generate a QImage with a B&W (bitonal) image, using PyQt. > > Writing it out produces a full-color 32bpp uncompressed TIFF file. Ick. > > QImage doesn't seem to know how to produce other variations. So I wrote it > into a QByteArray

Re: [PyQt] creating TIFF with CCITT FAX group 4 compression

2008-07-17 Thread David Boddie
Glenn, > > http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qimagewriter.htm > >l#setCompression > > That'd be better than nothing, but still in color, so still much huger > than necessary. I totally missed this. Being a Python newbie is tough, > after getting to be pretty experienced wi

Re: [PyQt] creating TIFF with CCITT FAX group 4 compression

2008-07-18 Thread David Boddie
On Friday 18 July 2008 01:37:47 +0200, David Boddie wrote: > An alternative would be to write a helper function to write the file, > but I'm thinking that it might be easier just to create a new version of > the Qt TIFF plugin just to write files in the format you want. Once &

Re: [PyQt] QWSWindow.raise() class error with python

2008-07-20 Thread David Boddie
On Sun Jul 20 20:54:12 BST 2008, Strato wrote: > I need to call the raise() method of the QWSWindow class, to set an > application to show up on top of other windows, but of course, 'raise' > is a python reserved keyword, and the call lead to a "Invalid syntax > error". > > So, does anybody have a

Re: [PyQt] Using PyQt within an application

2008-08-15 Thread David Boddie
On Thu Aug 14 23:14:22 BST 2008, andYpsilon wrote: > A)Yes I am using a QDialog, but not standard OK/Cancel Buttonset. But I > also tried this out. I tried the accepted/recected slots and the methods > quit() and close(). In every case it closes down the whole application > instead of only the dia

Re: [PyQt] Using PyQt within an application

2008-08-15 Thread David Boddie
On Fri Aug 15 15:37:09 BST 2008, andYpsilon wrote: > Nuke (the application I am using) is not using pyqt, but python and I am > starting the dialog through a python command. Can you post some code, perhaps just a code snippet? > Does the property u sent me end the main event loop? because it nee

Re: [PyQt] Setting text color for combo box fails on windows vista

2008-08-15 Thread David Boddie
On Fri Aug 15 16:44:46 BST 2008, Markus Dahlbokum wrote: > I'm trying to modify the text color of a QComboBox via > QPalette.setColor(QPalette.ButtonText, QColor). On linux there is no > problem but on windows vista the color won't change. When I switch the > application style to 'cde' the modific

Re: [PyQt] Segmentation fault with addLayout

2008-08-16 Thread David Boddie
On Sat Aug 16 15:40:57 BST 2008, Filip Gruszczynski wrote: > But doesn't help. I have recently done large software updgrade (I am > using Gentoo Linux distro) and then everything started to fail (even > my apps, that were working just fine before). I tried to reinstall qt > and PyQt, but that didn

Re: [PyQt] newbie questions...

2008-08-16 Thread David Boddie
On Sat Aug 16 23:45:51 BST 2008, Chris Withers wrote: > Andreas Pakulat wrote: > > Get it from your distribution under linux or use the ready-made > > installer from Phil for windows. I don't know what the state on MacOSX > > is. In worst case you're fetching sip+pyqt4 > > what's sip? http://www.

Re: [PyQt] Segmentation fault with addLayout

2008-08-17 Thread David Boddie
On Sunday 17 August 2008, Filip Gruszczynski wrote: > > Could a SIP upgrade have broken it, do you think? > > I reinstalled sip, qscintilla, qt (3.x and 4.x) and PyQt (3.x, 4.x), > but it didn't help. Any idea what other package, that PyQt depends on, > might be broken? Can you say which versions

Re: [PyQt] Using PyQt within an application

2008-08-17 Thread David Boddie
On Sun Aug 17 15:14:32 BST 2008, andYpsilon wrote: > Theres nothing special to the code I am using. It's what is coming out of > Designer, modified for having the functionality I need. > > starter is the function I call to start my dialog: > > ... > > class MeinDialog(QtGui.QDialog, Dlg): > de

Re: [PyQt] Using PyQt within an application

2008-08-17 Thread David Boddie
On Sun Aug 17 19:05:32 BST 2008, andYpsilon wrote: > Using only app.exec_() solves the problem that it closes down the > application. Sorry for that...what a newbie mistake ;-) Thanx alot for your > help!! No problem. :-) > But do you know a way to use the Dialog interactively with the applicati

Re: [PyQt] multiple signal connect

2008-08-20 Thread David Boddie
On Wed, 20 Aug 2008 16:17:29 +0100, Ruben Fonseca wrote: > I have a bunch of buttons that I want to watch for the "clicked()" > signal. [...] > However, every time I click on a button I got on the console > > "Received a signal from button_0" > > regardless the button I click... So I'm guessing

Re: [PyQt] Custom Widgets and __pyqtSignals__

2008-08-24 Thread David Boddie
On Sun Aug 24 12:43:33 BST 2008, Paul Giannaros wrote: > On Sun, Aug 24, 2008 at 12:03 PM, himork wrote: > > I am trying to write a custom widget in python/pyqt to be used inside > > QtDesigner. Everything seems to work fine (i followed the tutorials and > > examples available), except for the si

Re: [PyQt] Problem with QKeySequence

2008-08-24 Thread David Boddie
On Sun Aug 24 15:05:32 BST 2008, Baz Walter wrote: > But QKeySequences aren't meant to be iterable at all, right? > > This is using qt 4.4.1, pyqt 4.4.3, sip 4.7.7. I doubt that they are supposed to be iterated over. :-) I get slightly different results with Qt 4.3.2, SIP 4.7.0 and PyQt 4.3.0:

Re: [PyQt] Table Widget Problem v4.4.3

2008-08-25 Thread David Boddie
On Mon Aug 25 15:42:25 BST 2008, Carr, David wrote: > I move to version 4.4.3 and now cannot get QLabel to display in the table > widget. Other Widgets such as QComboBox and QTextEdit work fine, QLabel no > longer displays and was working fine in previous versions. Any thoughts or > suggestions w

Re: [PyQt] Custom Widgets and __pyqtSignals__

2008-08-25 Thread David Boddie
On Mon, 25 Aug 2008 11:58:14 +0200, Marco Fabiani wrote: > A follow up to my previous email: the code I posted didn't crash because > it was not doing what it was meant to do. What I am trying to do is to > subclass QSlider in order to emit a custom signal > valueDoubleChanged(double) that is just

Re: [PyQt] py qt for maya

2008-08-28 Thread David Boddie
On Wed, 27 Aug 2008 23:23:31 +0530, kNish wrote: > What steps are needed. what s/w is needed to compile qt for 64 bit maya. I searched briefly for previous questions like this and found this thread on an AutoDesk forum: http://area.autodesk.com/index.php/forums/viewthread/1375/ It may be wort

Re: [PyQt] py qt for maya

2008-08-29 Thread David Boddie
On Friday 29 August 2008, Laurent Hamery wrote: > Im working actually with PyQt into maya 2k8 64 bit so I can tell there > are way to make it work. I dont want break any confidentiality clauses > so I cant really descibe how we do it but Im wondering what happen with > the Qt event loop if you do

Re: [PyQt] QCheckBox in a QTreeWidget

2008-09-05 Thread David Boddie
On Fri Sep 5 22:19:22 BST 2008, Jake Richards wrote: > I've done a bit of googling and looked at the docs but haven't seen an > example of how to place a checkbox (or other widgets) into a QTreeWidget. You need to change the flags for the item so that it is editable: http://www.riverbankcomputin

Re: [PyQt] Toolbar widget sizing problems

2008-09-05 Thread David Boddie
On Fri Sep 5 19:47:31 BST 2008, Scott Price wrote: > So using PyQt4x I set up a toolbar, add a line edit to it, set the geometry > and sizepolicy of the line-edit widget, and watch as the toolbar promptly > ignores any directions I give the child widget! I understand why you think this, but the p

Re: [PyQt] How to link a dict and a QComboBox

2008-09-05 Thread David Boddie
On Thu Sep 4 19:25:24 BST 2008, Sven Grunewaldt wrote: > I'm facing a problem with data from a SQL database and my GUI. > > Let's assume I have the following key => value dict: > sqlresult = {1: 20080909, 4: 202020, 5: 'bla', 6: 'blubb'} > > How do I link it to a QComboBox? You can add values for

Re: [PyQt] Toolbar widget sizing problems

2008-09-06 Thread David Boddie
On Saturday 06 September 2008, Scott Price wrote: > Some more poking around revealed that while QLineEdit.setGeometry() and > QLineEdit.setSizePolicy() are disregarded by the toolbar, that > QLineEdit.setFixedSize() _is_ respected! Since you are putting the line edit inside a group box, you might

Re: [PyQt] Toolbar widget sizing problems

2008-09-06 Thread David Boddie
On Saturday 06 September 2008, Scott Price wrote: > Well, what you say makes sense and I follow your reasoning, however it > still doesn't seem to work for making the line-edit show the size I want it > to. > > Giving the group-box an explicit parent doesn't work, that is. OK, perhaps I'm seeing

Re: [PyQt] Toolbar widget sizing problems

2008-09-06 Thread David Boddie
On Sat Sep 6 12:30:21 BST 2008, Andreas Pakulat wrote: > If you follow the C++ source code, you'll see why. QToolBar::addWidget() > uses QWidgetAction to embed the widget and calls > QWidgetAction::setDefaultWidget(). That in turn calls setParent(0), so > wether or not you pass in a parent when cr

Re: [PyQt] pyqt slow

2008-09-06 Thread David Boddie
On Sat Sep 6 19:03:18 BST 2008, Aminu D wrote: > I am wondering if anyone has been successful running pyqt applications > on windows...I have an application that runs smoothly on ubuntu and it > took considerable effort to port it to windows. But even now it runs > very slow, the Qt connections ar

Re: [PyQt] max texture size for QGLWidget.bindTexture?

2008-09-06 Thread David Boddie
On Tue, 02 Sep 2008 12:49:54 -0700, Brian Parma wrote: > I've noticed that If I try to use bindTexture on QPixmaps that are large > (the size of the screen), and then display them on a quad, only a > portion of the texture actually shows.  The rest of the surface is > either black or a scrambled j

Re: [PyQt] max texture size for QGLWidget.bindTexture?

2008-09-09 Thread David Boddie
On Tue Sep 9 00:28:49 BST 2008, Brian Parma wrote: > Thanks for the response, that's a good find, although I'm trying to > figure out how to interpret the result. On my laptop it returns 2048, > but how does that translate into resolution? I thought it was memory > size at first, but changing fo

Re: [PyQt] bug in QTabWidget.indexOf() method?

2008-09-09 Thread David Boddie
On Tue Sep 9 15:59:06 BST 2008, Scott Price wrote: > So I have a tab widget, which when constructed gets a scroll area for > page/tab one. Works fine. > > During a later process I add another tab with a similar scroll area. > Works fine. > > A separate process uses the indexOf() method to search

Re: [PyQt] max texture size for QGLWidget.bindTexture?

2008-09-10 Thread David Boddie
On Wed Sep 10 02:11:47 BST 2008, Brian Parma wrote: > Ok, so I stripped down the program a little to make it into something of > a demonstration of the problem. > I'm running this on an Asus s5n laptop with XP Pro (SP3). The graphics > controller is an "Intel 82852/82855 GM/GME" 6.14.10.3865. (ye

Re: [PyQt] PyQt4 and Python 3.0

2008-10-07 Thread David Boddie
On Tue Oct 7 19:47:00 BST 2008, Daniel Miller wrote: > On Oct 7, 2008, at 12:54 PM, Phil Thompson wrote: > > PyQt3 has always maintained backwards compatibility, so has PyQt4. > > PyQt3 is not PyQt4. Likewise Qt3 is not Qt4. Granted, Trolltech > > produced a Qt3=>Qt4 migration tool, but then they

Re: [PyQt] design flaw in python khtml DOM bindings

2008-10-14 Thread David Boddie
On Tue Oct 14 23:34:29 BST 2008, Jim Bublitz wrote: > On Tuesday 14 October 2008 14:21, Luke Kenneth Casson Leighton wrote: > > i cannot express enough how much _not_ fixing this makes khtml > > completely unusable. > > There were DOM applications written for PyKDE3, which also didn't do any > pro

Re: [PyQt] python bindings to qwebkit - who's responsible for doing this work (anyone?)

2008-10-14 Thread David Boddie
On Tuesday 14 October 2008, Luke Kenneth Casson Leighton wrote: > it's _this_ why i'm looking to contact the people who are doing the > work on QWebKit, to find out what the plans are, for doing python > bindings, and to advise you - whomever you might be - to watch out for > two things: > 1) not

Re: [PyQt] Re: 2 litlle questions

2008-10-23 Thread David Boddie
On Thu Oct 23 16:12:47 BST 2008, kib2 wrote: > Mark Summerfield a écrit : > >> Another : I saw that Mark Summerfield recently played with the Poppler > >> bindings for Qt4. Is there any port of it for PyQt ? I know there's one > >> link on the Wiki, but there's not even a single word on the versio

Re: [PyQt] Python Plugins not Appearing in Designer

2008-10-24 Thread David Boddie
On Fri, 24 Oct 2008 16:37:54 -0700, Brent Villalobos wrote: > There are a few things that might be causing this, but I wanted to get > some of your thoughts before pursuing them further (since I don't have > permissions to change our Qt or PyQt installation I didn't want to > bother another depart

Re: [PyQt] Print a QTableView

2008-10-24 Thread David Boddie
On Fri Oct 24 14:35:11 BST 2008, Romain Bignon wrote: > Romain Bignon wrote: > > I want to print a QTableView on a QPrinter, but there isn't any way to do > > that. > > I've tried to redirect painter to the printer device, but render is not > correct. This probably won't produce high quality outpu

Re: [PyQt] QXmlQuery (Xpath...)

2008-10-30 Thread David Boddie
On Tue, 28 Oct 2008 05:56:06 -0700 (PDT), celsowm wrote: > celsowm wrote: > > I tried a simple xptah sample, like this: > > > > from PyQt4 import QtXmlPatterns, QtCore > > > > query.setQuery("doc('index.htm')/html/body/p[1]"); > > x = QtCore.QStringList; > > myFile = QtCore.QFile("index.htm") > >

Re: [PyQt] QGrahicsView and event issue

2008-11-07 Thread David Boddie
On Fri Nov 7 15:36:49 GMT 2008, Oguz Yarimtepe wrote: > I was trying to implement a simple PDF reader. The problem about the GUI > is, when i choose the file from file dialog it shows the rendered image > at a new window, not inside the QGraphicsView widget. If i solve it i > think the event part

Re: [PyQt] SQLite commit success, but data isn't modified

2008-11-07 Thread David Boddie
On Thu Nov 6 10:48:55 GMT 2008, Alessandro Re wrote: > I'm trying to using QSqlTableModel on a SQLite database. > Following the Qt Cached Table Example, I did a simple program (see below): > pressing a button should commit table's changes to the database. > But pressing it, the table return to ori

Re: [PyQt] QFileDialog opens two times

2008-11-10 Thread David Boddie
On Mon Nov 10 14:39:18 GMT 2008, Serbulent UNSAL wrote: > When I using QFileDialog to read a file QFileDialog opened two times > in every trigger. Google says nothing to me, does anyone have an idea > ? > Here is the example I try; > > http://cekirdek.pardus.org.tr/~serbulent/deneme/tryAction.py

Re: [PyQt] Crash (segfault) when using PyQt4 Qthread

2008-11-14 Thread David Boddie
On Sat Nov 15 00:23:53 GMT 2008, chris3110 wrote: > Also are you positive you can't reproduce this pb, even when clicking a lot > in and out of the window, coming back and forth to it, etc ? I find it > hard to believe that this could be related to the python version. I also tried to run it with

Re: [PyQt] Custom Widget for Designer

2008-11-14 Thread David Boddie
On Thu Nov 6 14:33:24 GMT 2008, Emiliano Mennucci wrote: > Now I want to change the name of the widget when it's exported on Designer. > So class name should remain "WidgetFoo" but I want it to be showed as "A > custom Widget" in the Designer palette. I'm not able to achieve this simple > goal. I

Re: [PyQt] Make a exec_() in a Dialog

2008-11-15 Thread David Boddie
On Sat Nov 15 17:24:08 GMT 2008, rudsonalves wrote: > I am implementing a dialogue to download programs in an application. I > need to start the dialog to download a file, only after the call of > .exec_(). > > I try implement a .exec_() method, but it no open dialog window. See code: [...] >

Re: [PyQt] QXmlQuery (Xpath...)

2008-11-15 Thread David Boddie
On Mon Nov 3 14:38:13 GMT 2008, celsowm wrote: > I tried a sample for this: http://doc.trolltech.com/qq/qq25-webrobot.html > > and code in python: [...] > and errors in windows: > > AppName: pythonw.exe AppVer: 0.0.0.0 ModName: qtcore4.dll > ModVer: 4.4.2.0 Offset: 000ddaf0 OK, you

Re: [PyQt] Key return

2008-11-21 Thread David Boddie
On Sat Nov 1 17:46:29 GMT 2008, lucaberto wrote: > i need that when i press the Return key, one button intercept the pression > of it and process the event Can you explain me how i can do it On Fri Nov 21 11:02:02 GMT 2008, Milan Hemžal wrote: > On Sunday 02 November 2008 18:46:44 Matt Smith wro

Re: [PyQt] Key return

2008-11-22 Thread David Boddie
On Sat Nov 22 18:39:26 GMT 2008, Milan Hemžal wrote: > i mean: > if press ENTER on the button with focus - call action for this button ( > same like if press key SPACE You can set a shortcut for the button using its setShortcut() method: http://doc.trolltech.com/4.4/qabstractbutton.html#shortc

Re: [PyQt] rotateing QInputDialog

2008-11-22 Thread David Boddie
On Sat Nov 22 08:09:59 GMT 2008, Oguz Yarimtepe wrote: > Is there any way like resizing or setting geometry for QInputDialog for > rotating it or should i create a rotatable widget including QInputDialog > and rotate it? I'm guessing that you want to do this in a graphics scene. Is that correct?

Re: [PyQt] Qt Mozilla PyQt bindings?

2008-11-22 Thread David Boddie
On Sat Nov 22 14:53:04 GMT 2008, piotr maliński wrote: > There is Firefox 3.X Qt port - > http://browser.garage.maemo.org/news/10/ - is thera are any wrappers > for PyQt4? (or it can be wrapped somehow?) I guess it depends on what you would wrap. From a brief look at it, it seems to use Qt for th

Re: [PyQt] MdiSubWindows: what causes inactive (or hidden) subwindows?

2008-11-24 Thread David Boddie
On Mon Nov 24 23:00:36 GMT 2008, Anonymous wrote > Let's say i have an MdiArea whose ViewMode is set as TabbedView. It seems > when i call a function that adds a new subwindow, the window doesn't show > and i can't close the subwindow by right-clicking on the tab and close. What happens when the

Re: [PyQt] rotateing QInputDialog

2008-11-24 Thread David Boddie
On Monday 24 November 2008, Oguz Yarimtepe wrote: > On Sat, 2008-11-22 at 21:18 +0100, David Boddie wrote: > > pw = gs.addWidget(w) > > addWidget is defined in qt4.4. I am using qt4.3, which is the currently > official packaged one at Ubuntu Hardy. Anyway to achive the sa

Re: [PyQt] Designer plugins do not show up

2008-11-24 Thread David Boddie
On Sun, 23 Nov 2008 22:46:13 +0100, Mpi wrote: > 1. Running > > python plugins.py > > in PyQt-x11-gpl-4.4.4/examples/designer/plugins. No custom plugin group > named 'PyQt Examples' shows up in designer. OK. Did you build Qt yourself, or did you install a system package? > 2. Setting > > export

Re: [PyQt] Deleting object in event handler

2008-11-24 Thread David Boddie
On Fri, 21 Nov 2008 20:17:36 +0100, Filip Gruszczy?ski wrote: > I want to implement mechanism similar to the one used in GMail > attachments, where by unchecking check box you remove an attachment > from the mail. I have created following piece of code, which should > remove options when they are

Re: [PyQt] help

2008-11-24 Thread David Boddie
On Sun, 23 Nov 2008 17:24:11 +0800 (CST), Rain wrote: > Hi, I'm a novice. I want to know how to use sqlite3 in pyqt4. There is an > error When I using a plugin of Eric4, the error message is "The SQLite > database driver is not available". Which platform are you using? Did you install system pac

Re: [PyQt] connecting signals

2008-11-28 Thread David Boddie
On Thu, 27 Nov 2008 13:35:23 -0500, Matt Smith wrote: > There is a lot of leeway in connecting signals, so I was curious about > how other people are doing it.  I have a widget layout similar to this. > > MainWindow >   Menu >   CentralWidget >     TabBar >     StackedWidget >        Graph >      

Re: [PyQt] Arbitrary number of copies of groupbox?

2008-12-02 Thread David Boddie
On Mon, 01 Dec 2008 13:51:36 -0800, Christian Aubert wrote: > I'm trying to generate a report where I have a groupbox containing a > number of fields per record. Is there anyway to have a scroll area and > create an arbitrary number of copies of that groupbox on the fly? As in rendering them with

Re: [PyQt] Drag status message

2008-12-02 Thread David Boddie
On Sun, 30 Nov 2008 15:12:34 -0500, Ron Longo wrote: > I've implemented my own drag operation in a view class.  In my > mousePressEvent() I setup for possible drag event (e.g. save the location > of the mouse press).  In mouseMoveEvent() if a drag is started (mouse > button pressed and mouse moved

Re: [PyQt] Detecting if a column has been resized by the user; auto-stretching columns.

2008-12-03 Thread David Boddie
On Wed Dec 3 17:10:00 GMT 2008, Anonymous wrote: > Thanks for the response, but i saw that in the documentation before asking, > and it's not what i'm looking for. The columns for my purpose do not need > to be fully stretched out, i just need the last column in the view to > auto-stretch if there

Re: [PyQt] Bugs and Question in doc/examples/tutorials/t10.py

2008-12-08 Thread David Boddie
On Wed Dec 3 15:02:07 GMT 2008, Grissiom wrote: > And here comes the questions: > I think that creating a QtCore.QRect and moving it every time repaint the > widget is not so good. So I move the code to __init__ and make cannonRect a > local variable rather than a function. But the cannon doesn't

Re: [PyQt] PyQt4 horribly slow on non local X server

2008-12-09 Thread David Boddie
On Wed, 26 Nov 2008 23:26:32 + (GMT), Russell Brown wrote: > I've just started playing with PyQt4 and fired up the Jonathan Riddell > webkit.py demo (included below). I hope you're still reading this list. :-/ > If I run it on my laptop (with a local X display) then the performance > is adeq

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread David Boddie
On Fri Dec 12 22:57:22 GMT 2008, Paul A. Giannaros wrote: > Way out, I'm afraid. ~60% of QtCore symbols start with a "Q", and a > further ~21% start with a "q". That still leaves around 32 symbols > (16%) once you weed out __doc__ etc. Some have ridiculously common > names ("center", "flush", "bin

Re: [PyQt] Kind of newbie question about reading XML file

2008-12-13 Thread David Boddie
On Thu, 11 Dec 2008 13:07:53 -0200, Gustavo A. Diaz wrote: > > Hi Again, Anyone any tip about his? I find that the elementsByTagName() method provided by QDomElement is useful for obtaining the elements I'm interested in. So, you can get the FirstTag elements by calling elements = self.docElem.

Re: [PyQt] data from QTreeView

2008-12-14 Thread David Boddie
On Sun, 14 Dec 2008 11:23:30 +0100, Milan Hemžal wrote: >     def SetPostava(self,n):         > # n == index >         mo=self.tree_postavy.model() > # next row is depand of column, where user click , > # but i need data from first column >         print QtCore.QVariant

Re: [PyQt] Pulling Abstract Item Data out of MimeData from Drag and Drop

2008-12-14 Thread David Boddie
On Sun Dec 14 19:02:30 GMT 2008, Marc Nations wrote: > I am using PyQt4 (Qt 4.4.3 with Python 2.6) on Windows XP. I am trying to > drag treeWidget info from one widget to another. The target widget will > likely be a modified tree widget as I need to combine a tree with a table > to get the proper

Re: [PyQt] Handling PyQT/PyKDE4 on ARM

2008-12-14 Thread David Boddie
On Sun Dec 14 20:47:06 GMT 2008, Michael Casadevall wrote: > Internally, PyQT4 uses qreals in its bindings for QLists, and so > forth. Although this works fine when qreal is a double since a float > will be converted implicatively, when it is a float, it looses the > ability to handle doubles sinc

Re: [PyQt] Problem Loading Default QSetting

2009-01-06 Thread David Boddie
On Mon, 05 Jan 2009 10:47:25 -0800, Brent Villalobos wrote: > If I understand the documentation correctly, the > QtCore.QSettings.value() method's second argument can be a QVariant > default value.  However, when I provide a key that does not exist, I'm > not defaulting to that value.  Observe whe

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-06 Thread David Boddie
On Tue Jan 6 22:05:41 GMT 2009, Phil Thompson wrote: > On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker > > > This redefines the builtin hex. > > Check the Roadmap. http://www.riverbankcomputing.com/software/pyqt/roadmap ...for those not following the site updates so closely. :-) David

Re: [PyQt] Learning path

2009-01-09 Thread David Boddie
On Fri Jan 9 08:12:28 GMT 2009, Christoph Burgmer chrislb at gmx.de wrote: > Am Friday, 9. January 2009 schrieb Steven Woody: > > I want to use PyQt but I don't get experience with Qt itself. What's > > the best learning path to me? Any suggestion will be highly > > appreciated! > > From my own e

[PyQt] GUI thread check

2009-01-16 Thread David Boddie
On Fri Jan 16 22:58:03 GMT 2009, Frédéric wrote: > On vendredi 16 janvier 2009, Zac Burns wrote: > > > Can I check to see if the current thread is the safe 'main' GUI thread? > > Yes, using > > threading.currentThread().getName() > > The main thread is called 'MainThread'. It may be called tha

Re: [PyQt] Defining a custom slot in Designer

2009-01-17 Thread David Boddie
On Sat Jan 17 17:19:44 GMT 2009, Henrik Pauli wrote: > I was messing around in Designer today and I wanted to add my QMainWindow > a new slot. The ui file has it, but the moment I try to loadUi it, I get > the following: > > Traceback (most recent call last): > File "./testclient.py", line 11, i

Re: [PyQt] Defining a custom slot in Designer

2009-01-17 Thread David Boddie
On Sat Jan 17 23:52:10 GMT 2009, Henrik Pauli wrote: > On Saturday 17 January 2009, David Boddie wrote: > > How did you add the slot to the testclient.ui file? > > right-click on MainWindow, Change Signals/Slots, add a Slot. OK, I overlooked that. :-) For me, running Qt 4.4.3

Re: [PyQt] An "UI update" event/signal to update the GUI on

2009-01-18 Thread David Boddie
On Sun Jan 18 13:41:00 GMT 2009, eliben wrote: > I'm porting some code from wxPython to PyQt, and am unable to find the > replacement for wx's wx.EVT_UI_UPDATE event. This event is sent to a > frame/window whenever the UI has to be updated. In the handler of the event > I can check my application'

Re: [PyQt] An "UI update" event/signal to update the GUI on

2009-01-18 Thread David Boddie
On Sunday 18 January 2009, 09:44:56 -0800 (PST), eliben wrote: > > David Boddie wrote: > > Can you give more information about your user interface? It would make it > > easier to recommend the best approach for you to take. > > Thanks for the explanation, I'll thi

Re: [PyQt] How do I get a clean empty transparent image?

2009-01-18 Thread David Boddie
On Sun Jan 18 23:06:59 GMT 2009, Grzegorz Adam Hankiewicz wrote: > I have the following lines of code: > > big = QImage(size, images[0].height(), QImage.Format_ARGB32) > big.save("test.png") > > The resulting test.png file contains random garbage, so I need to > clean that out. I

Re: [PyQt] Catching key events

2009-01-18 Thread David Boddie
On Sun Jan 18 23:14:37 GMT 2009, Frédéric wrote: > On samedi 17 janvier 2009, Frédéric wrote: > > I forgot to ask: once I have checked all the key events, in > > keyPressedEvent, how do I let propagate the event I don't want to handle? > > No idea? Call the event's ignore() method before returning

Re: [PyQt] PyQt, QWebView, SVG Rendering Problem

2009-01-23 Thread David Boddie
On Fri Jan 23 12:47:29 GMT 2009, Atul Kulkarni wrote: > I have a problem of rendering SVG Images in QWebView. The SVG Images are > replaced with missing image icons ("?"). I am inserting a simple SVG image > in an XHTML document. This is a common problem with most Web browsers because SVG support

Re: [PyQt] QTextEdit: Is there a default text edit display?

2009-01-23 Thread David Boddie
On Fri Jan 23 20:06:04 GMT 2009, Marc Nations wrote: > I need to use rich text in an application which appears to be utilized > using QTextEdit. The edit options need to be available in the app. I > assumed there was an option to pop them up in the widget or in the toolbar > somewhere, like it doe

Re: [PyQt] PyQt, QWebView, SVG Rendering Problem

2009-01-24 Thread David Boddie
On Sat Jan 24 04:59:26 GMT 2009, Christoph Burgmer wrote: > It doesn't work for me with PyQt 4.4.2. I'm using setHtml() not load(). > I can currently not update to a newer version, so I cannot verify if that > is a issue in 4.4.2 solved in 4.4.3. It seems to work for me. This is what I tried: fr

Re: [PyQt] QDesktopServices openUrl doesn't work if URL-Path has spaces etc.

2009-01-25 Thread David Boddie
On Sun Jan 25 22:17:46 GMT 2009, piotr malinski wrote: > Here is an example script: > ~ > from PyQt4.QtCore import * > from PyQt4.QtGui import * > > d = QDesktopServices() > > x = '/home/piotr/test2/lol bar/photo_4900_8ea80c_huge.jpg' > print QUrl(x).isValid() >

Re: [PyQt] Odd QImage behavior

2009-01-28 Thread David Boddie
On Wed Jan 28 11:55:48 GMT 2009, Matt Smith wrote: > I am constructing QImages from numpy arrays and I use the lines: > > nimage = QtGui.QImage(total.data,w,h,QtGui.QImage.Format_Indexed8) > nimage.ndarray = total > nimage.setColorTable(COLORTABLE) > > If the shape of total is (h,w) this occasiona

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread David Boddie
On Thu Jan 29 13:41:59 GMT 2009, Matt Smith wrote: > I made a mistake about what works and what doesn't. If I use > > nimage = QtGui.QImage(total.data,w,h,QtGui.QImage.Format_Indexed8) > nimage.setColorTable(COLORTABLE) > > Then there is strange wrapping that occurs if the image is not the correc

Re: [PyQt] Odd QImage behavior

2009-01-29 Thread David Boddie
On Thu Jan 29 19:03:50 GMT 2009, Matt Smith wrote: > This test case makes two numpy arrays puts a vertical stripe and then > creates QImages. Change either dimension to 101 instead of 100 and the > image doesn't get painted properly. > > http://paste.pocoo.org/show/101921/ Right. I haven't tried

Re: [PyQt] How to clear QDateTime

2009-02-01 Thread David Boddie
On Sun Feb 1 20:53:45 GMT 2009, David Douard wrote: > Le Saturday 31 January 2009 19:15:23 Marc Nations, vous avez écrit : > > I can't seem to clear out the QDateTime field in cases where I don't want > > the date displayed. Using clear() seems to wipe out the first entry (in > > this case the hou

Re: [PyQt] Is it possible to override/extend QTextCursor?

2009-02-08 Thread David Boddie
On Sun Feb 8 17:31:08 GMT 2009, r wrote: > On Sun, Jan 6, 2008 at 7:49 PM, David Boddie wrote: [Reimplementing QTextCursor.insertText() methods] > > Neither of those functions are virtual in Qt. This means that Qt will > > always call the original QTextCursor::insertTex

Re: [PyQt] Is it possible to override/extend QTextCursor?

2009-02-08 Thread David Boddie
On Sun Feb 8 21:52:12 GMT 2009, Henning Schröder wrote: > On Sun, Jan 6, 2008 at 7:23 PM, Aaron Digulla wrote: [...] Note the date of the original post. The original discussion happened over a year ago! Maybe Aaron has already figured out what he needed to do. David ___

<    1   2   3   4   5   6   7   8   >