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] 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 wrote: > > i wondering, how can i add from my files to table widget?

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 > g

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,

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 P

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 th

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] 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] 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 wor

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] 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("d

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 > user clicks exit on that window close sub window return to main window > I am tried with Form.close , w

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() me

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"

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 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 to r

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] 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

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

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 describe

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

Re: [PyKDE] build problems.

2004-01-16 Thread David Boddie
On Thu, 15 Jan 2004 09:38:17, Dan Keshet wrote: > I'm running debian with standard .debs for all the packages except pyKDE. > Output below. Any help would be much appreciated. [...] > File "build/discover.py", line 608, in discoverQt3 > self.qtIncl = DiscoverQt3Incl ("qglobal.h", [os.p

Re: [PyKDE] KControl modules problem

2004-01-17 Thread David Boddie
Simon, [I'm cutting and pasting from the archives because I receive list messages in digest form, and so your message hasn't arrived yet. :-)] > I've been busy with using Python in KControl and it is mostly working fairly > after integrating David build code in my distutils build system. Anyway,

Re: [PyKDE] KControl modules problem

2004-01-18 Thread David Boddie
On Sun, 18 Jan 2004 20:02:10, Simon Edwards wrote: > On Sun, 18 Jan 2004 02:05 am, David Boddie wrote: > > > > Can you provide a backtrace, or even the module code? > > I wish I got a backtrace, then I would probably have it all worked out by > now. > > :) If yo

Re: [PyKDE] Little Python helpers for PyQt

2004-01-22 Thread David Boddie
On Thu, 22 Jan 2004 01:58:02, Torsten Marek wrote: > Ongoing, we could create a small collection of pyqt-helpers which could > then be downloaded from pykde.sf.net (or even included into PyQt, but > that's completely up to Phil, who may forgive me my ambitions), to the > benefit of us all. I real

Re: [PyKDE] QDialog geometry problem

2004-03-11 Thread David Boddie
On Wed, 10 Mar 2004 21:55:37 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote: > I'm trying to set up a simple dialog box, with a QLineEdit and a > couple of QPushButtons. The init code is: > > class FindDialog(QDialog): > def __init__(self, parent = None, name = None, modal = False, flags = > 0):

Re: [PyKDE] PyBrowser: fix for the segfault

2004-04-01 Thread David Boddie
On Wed, 31 Mar 2004 13:48:17, "Roberto Alsina" <[EMAIL PROTECTED]> wrote: > A couple of days ago, I posted my PyBrowser class > (http://www.pycs.net/lateral/stories/17.html) in an answer to a question. > > And was told it segfaults. So I tried it. And it does. Here's the fix: > > If you comment th

Re: [PyKDE] PyKDE 3.11 snapshot

2004-04-23 Thread David Boddie
On Fri, 23 Apr 2004 08:04:50, Simon Edwards <[EMAIL PROTECTED]> wrote: > You da boss! > > I got a clean compile, install, and importTest.py! :-) Same here! I'm beginning to think I should install a current Slackware release on my spare partition and make some packages. > Thanks Jim, Yes, nice o

Re: [PyKDE] New PyKDE Release (alpha6) and Killing PyKDE 3.8

2004-04-27 Thread David Boddie
On Tuesday 27 April 2004 08:22, Simon Edwards wrote: > Anyway, answer lies on the dlopen() man page: > > Optionally, RTLD_GLOBAL may be or'ed with flag, in which case > the external symbols defined in the library will be made available to > subsequently loaded libraries. I'm ahea

Re: [PyKDE] Interest in PyQt wiki?

2004-04-28 Thread David Boddie
On Wed Apr 28 18:26:01 2004, Jonathan Gardner wrote: > What wiki is good for Zope? I couldn't seem to find any... Shame on you, Jonathan! Use the power of the existing PythonInfo Wiki: http://www.python.org/cgi-bin/moinmoin/PythonWikiEngines (-;C David

Re: [PyKDE] KSystemTray, SetToolTip and python

2004-05-18 Thread David Boddie
On Tue, 18 May 2004 11:41:05, Rafal Zawadzki <[EMAIL PROTECTED]> wrote: > I am writing small application and I want use KSystemTray. Is there any > documentation with *examples* telling more about programming in PyKDE? The place to start looking is the PyQtWiki: http://www.diotavelli.net/PyQtWik

Re: [PyKDE] Systray icons in PyQt

2004-05-27 Thread David Boddie
On Thu, 27 May 2004 00:26:11, Hans-Peter Jansen <[EMAIL PROTECTED]> wrote: > On Wednesday 26 May 2004 03:52, Torsten Marek wrote: > > (sorry, but I'm too lazy right know to find out all the links). All > > you need to do is to call some functions in libX11.so. For that, > > you need the Display >

Re: [review] Re: [PyKDE] Embedded python

2004-06-02 Thread David Boddie
On Wed Jun 2 15:28:00 2004, Kevin Schmidt [EMAIL PROTECTED] wrote: > However, if I try: > > from qt import * > q=QObject() > p=QObject(p) > print p.parent() > > It crashes when I try to compile (via Py_CompileString(c_line, "", > Py_single_input)) the "print p.parent()" line. I would have thou

Re: [PyKDE] Implementing QSimpleRichText

2004-08-13 Thread David Boddie
On Thu, 12 Aug 2004 21:02:46, Eron Lloyd wrote: >Does anybody have an example of how to implement rich text inside of a >QListViewItem? I can't wrap my head around the C++ examples I've found enough >to translate what needs to be done. It seems a little more tricky when not >implemented inside

Re: [PyKDE] Singleshot problems in QThreads on Windows.

2004-08-22 Thread David Boddie
Sorry not to have joined this discussion before. It's quite a surprise that I might have something worthwhile to say about threading! On 20 Aug 2004 17:32:21, "Truls A. Tangstad" wrote: > On Fri, Aug 20, 2004 at 04:23:09PM +0100, Toby Dickenson wrote: > > My workaround seems to be working well f

[PyKDE] Re: Singleshot problems in QThreads on Windows.

2004-08-23 Thread David Boddie
On Mon, 23 Aug 2004 10:44:30, Truls A. Tangstad wrote: >On Sun, Aug 22, 2004 at 04:34:09PM +0200, David Boddie wrote: >> My current solution is to post events from the non-GUI QThread, but not >> include any data with them. The data is stored separately in a Python >>

Re: [PyKDE] PyKDE 3.11.3 Release

2004-08-29 Thread David Boddie
On Wed, 25 Aug 2004 17:00:13, Jim Bublitz wrote: > The PyKDE 3.11.3 release should be up at riverbankcomputing.co.uk within > the next day or so. > > This release has only 2 significant changes: > > 1. Fixed enum in khtml_part.sip that caused build problems for KDE 3.3.0 > with sip 3.10.2

Re: [PyKDE] Status of panel applets?

2004-08-29 Thread David Boddie
On Fri, 27 Aug 2004 14:17:33, Jim Bublitz wrote: > On Friday 27 August 2004 12:35, Maurizio Colucci wrote: > > What is the current status of panel applets? > > That's a good question. Between David, Simon and myself, none of us has > really taken charge of getting panel applets (and relate

Re: [PyKDE] Kcontrol

2004-09-02 Thread David Boddie
On Wed, 1 Sep 2004 21:52:32, Lionel Roubeyrie wrote: > always on the same app, I search to integrate it in the KDE Control Center, > but I found just one doc : > http://www.boddie.org.uk/david/Projects/Python/KDE/Docs/KControl.html, and > it's not clear for me. Doesn't someone have a URL

Re: [PyKDE] Event chaining and passing parameters

2004-09-16 Thread David Boddie
On Wed, 15 Sep 2004 13:54:04, Timothy Grant wrote: > I have QListView that connects to a context menu (QPopupMenu) and > passes the item(s) to my showPopup method. > > The QActions that populate the QpopupMenu then call their own > processing methods. You might need to post some code that

Re: [PyKDE] Event chaining and passing parameters

2004-09-17 Thread David Boddie
On Thu, 16 Sep 2004 12:57:55, Jim Bublitz wrote: >On Thursday 16 September 2004 12:22, Timothy Grant wrote: >> There are two comments in the code showing what I'd like to accomplish [...] >> def edit(self): >> print "editing" >> #how do I get item down here? > >

[PyKDE] PyKDE components

2004-09-19 Thread David Boddie
I've uploaded an interim release of some PyKDE components. I don't have a lot of time to work on these, so getting them out into the wild seems like a fairly good idea at the moment. The package now includes a version of libpythonize but no longer provides any support for panel applets or Con

Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread David Boddie
On Mon, 20 Sep 2004 20:52:01, Trost Johnson wrote: > Suppose the minimal program: > > def foo(): > app=QApplication(sys.argv) > button=QPushButton("Hello World", None) > app.setMainWidget(button) > button.show() > app.exec_loop() > > And I say > > >>> thread.start_

Re: [PyKDE] Connect syntax.

2004-09-23 Thread David Boddie
On Wed, 22 Sep 2004 20:11:37, Sundance wrote: > I heard Phil Thompson said: > > > I have a policy of not (if at all possible) changing or "enhancing" > > the API. > > C++ Qt: > > SomeWidget::SomeWidget () { > // ... > connect (this, SIGNAL("whatever()"),// <-- look! >

Re: [PyKDE] more complex rich text / HTML

2004-10-15 Thread David Boddie
On Fri, 15 Oct 2004 01:36:23, Andrew Dalke wrote: >My crazy thought is to embed a native HTML widget for >the different platforms, so that I use IE to display >under MS Windows, Safari for Mac, and Konqueror for Linux. >(That's all I need to support.) > >While the last is definitely possibl

Re: [PyKDE] QSyntaxHighlighter issues

2004-09-29 Thread David Boddie
On Tue, 28 Sep 2004 17:54:09, Eli Yukelzon wrote: > On Mon, 27 Sep 2004 12:02:22 +0200, Eli Yukelzon <[EMAIL PROTECTED]> wrote: > > First of all, in case anyone interested, i've attached my small HTML > > highliter (maybe somebody needs one). An interesting example to choose. > > Now,

Re: [PyKDE] Trouble figuring out QCanvas and QCanvasView

2004-10-06 Thread David Boddie
On Tue, 05 Oct 2004 23:28:39, Bryan O'Sullivan wrote: > I am unable to figure out how to draw into a QCanvas and have it show up > correctly in a QCanvasView. I've tried looking at both C++ and Python > examples, but the examples are invariably so complex that it's > impossible to figure out

Re: [PyKDE] Trouble figuring out QCanvas and QCanvasView

2004-10-07 Thread David Boddie
On Wed, 06 Oct 2004 11:47:03, Bryan O'Sullivan wrote: > On Wed, 2004-10-06 at 03:32 -0700, David Boddie wrote: > > > That's disappointing to hear. > > Think of it as an opportunity to write an article for one of the > developerworks, onlamp and so on sites :

Re: [PyKDE] Problem resolving widget's class

2004-11-01 Thread David Boddie
> Fredrik Juhlin wrote: > > From what we can tell though, it only happens to widgets that comes from > > "C++ land", so to speak. That is, widgets that are created by > > QWidgetFactory, the listbox you get when calling QComboBox.listBox(), > > the header from QListView.header() etc. This has m

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread David Boddie
[Sorry if this appears twice: webmail and character encoding issues...] On Tue, 2 Nov 2004 13:22:28, Fredrik Juhlin wrote: >On Monday 01 November 2004 19.30, David Boddie wrote: >> >> This sounds a lot like the problems you can experience when embedding >> Pytho

Re: [PyKDE] Problem resolving widget's class

2004-11-02 Thread David Boddie
On Tue Nov 2 16:34 2004, Fredrik Juhlin wrote: > On Tuesday 02 November 2004 16.07, David Boddie wrote: > That's weird. I can run it for some time without getting an error. > > Do you get an error such as this: > label label_test_17 (<__main__.qt.QWidget object

Re: [PyKDE] Problem resolving widget's class

2004-11-07 Thread David Boddie
On Wednesday 03 November 2004 08:43, Fredrik Juhlin wrote: > As I stated in my initial mail, I run SIP 4.1.1, PyQt 3.13 and Python > 2.3.3. Sorry about that. The problem with doing all this through a web interface is that it isn't as easy to refer back to earlier messages. > I looked at my test

Re: [PyKDE] Python IOSlaves

2004-11-17 Thread David Boddie
On Wed, 17 Nov 2004 18:48:09, Luke Monahan wrote: > I have downloaded the files pykde-components-2004-01-20.tar.bz2 from > David's site and set about installing his IOSlaves so I can play > around with them. I uploaded a later version but didn't link it in. If you look at that page again you'll s

Re: [PyKDE] code generation error

2004-11-22 Thread David Boddie
On Sun, 21 Nov 2004 07:59:53, Shuli Hershberg wrote: > Generating the C++ source for the kdecore module... > sip: KLockFile::Ptr is undefined > Error: Unable to create the C++ code. You may find the following Google search useful: http://www.google.com/search?q=KLockFile+site%3Amats.imk.

[PyKDE] Missing classes (sip-4.2rc1 and PyKDE-3.11.3)

2005-01-29 Thread David Boddie
Has anyone else tried to use PyKDE with sip-4.2rc1 yet? My experience is that I can get the modules built and installed, but that not all of the classes are present when various modules are imported. For example, in kdecore, I find that KStdAction is not found in kdeui (this breaks the pyKHTMLPart.

[PyKDE] Re: PyQt v4 Roadmap

2005-02-17 Thread David Boddie
On Thu, 17 Feb 2005 15:22:26, Phil Thompson wrote: > The separate Qt v4 libraries will be wrapped as separate Python modules. > The module names will be the same as the corresponding library (eg. > QtCore, QtGui) and be grouped as a single Python package called PyQt4. The > suggested programming s

[PyKDE] Re: iterating over a QListView

2005-02-22 Thread David Boddie
On Tue, 22 Feb 2005, Christopher J. Bottaro wrote: > Right, but what I meant was does PyQt turn those iterator classes into > "Python iterables".  By that I mean, can they be used in a for loop such > as: > > # lv is a QListView > for lvi in QListViewItemIterator(lv): >   # do something with the l

Re: [PyKDE] Can't compile PyKDE

2005-02-25 Thread David Boddie
On Thu, 24 Feb 2005 11:54:38, Joe Duncan wrote: > When running "python configure.py && make" I get this: > > > PyKDE version 3.11.3 [...] > Python version is 2.3.4 [...] > sip version is 4.1.1 (4.1.1) [...] > Qt version is 3.3. [...] > PyQt version is 3.13 (3.13.0) [...] > KDE v

Re: [PyKDE] Invalidation of windows

2005-03-23 Thread David Boddie
On Sun, 20 Mar 2005 21:37:44, Jeremy Sanders wrote: > I keep hitting a strange problem with Qt. I don't think the problem's in > my code! Any idea how I can avoid this? > > I have a document class which has a "dirty" flag. My output window (a > QScrollView), checks the flag at intervals (using a Q

Re: [PyKDE] QAccel automatically sends signal

2005-04-14 Thread David Boddie
On Thu, 14 Apr 2005 16:05:07, Alfred Young wrote: > self.shortcutKey = QAccel(self) > id = self.shortcutKey.insertItem(Qt.Key_Enter) > self.shortcutKey.connectItem(id, self.defaultButton, > SLOT(self.defaultButton.clicked())) > > However as soon as I invoke connectItem() it appears that the > defa

Re: [PyKDE] wx PyShell equivalent written in Qt ?

2005-04-29 Thread David Boddie
On Thu, 28 Apr 2005 16:26:56, Fabien Meghazi wrote: > Anyone knows if there's a wxWidget PyShell's equivalent written in Qt ? I went looking for screenshots of this widget but only found class documentation, so I don't know exactly what you want. Still, I've been experimenting with PyQt-based int

Re: [PyKDE] ANN: PyKDE Extensions 0.1.0

2005-05-16 Thread David Boddie
On Sun, 15 May 2005 20:35:45, Simon Edwards wrote: > """PyKDE Extensions is a collection of software and Python packages to > support the creation and installation of KDE applications.""" > > http://www.simonzone.com/software/pykdeextensions/ > > First release is now available for testing and tryi

Re: [PyKDE] ANN: PyKDE Extensions 0.1.0

2005-05-16 Thread David Boddie
On Tue, 17 May 2005 00:16:31, Simon Edwards wrote: > On Monday 16 May 2005 15:29, David Boddie wrote: > > The only problem I had with installation was that the Python modules were > > installed in a python2.3/site-packages directory created specially by the > > setup scri

Re: [PyKDE] Konqueror plugins in Python

2005-05-22 Thread David Boddie
On Saturday 21 May 2005 21:49, Jim Bublitz wrote: > I haven't done anything with konqueror, and a quick look at the file system > didn't prove very enlightening. You might want to contact David Boddie > <[EMAIL PROTECTED]>, as he's played around with konqueror plugi

[PyKDE] ANN: KPart plugins for Konqueror

2005-05-22 Thread David Boddie
Recent questions on this mailing list about writing plugins for Konqueror have encouraged me to package up what I have written and release it for general use. Follow the last link in the Download section of the following page to obtain the package: http://www.boddie.org.uk/david/Projects/Python/

Re: [PyKDE] QScintilla and Qt4

2005-07-06 Thread David Boddie
On Tue, 05 Jul 2005 18:46:32, Thomas Fjellstrom wrote: >And you were 100% correct. It now "works", but is still using the qt3 support >classes (I'll fix that eventually). And I'm getting this odd warning: >QPainter::begin: Widget painting can only begin as a result of a paintEvent Yes, you shoul

Re: [PyKDE] QScintilla and Qt4

2005-07-06 Thread David Boddie
On Wednesday 06 July 2005 20:04, Thomas Fjellstrom wrote: > I haven't changed the drawingcode (in PlatQt.cpp) much at all. So just look > in there for how QScintilla works.. Basically, It has a "Surface" object > that gets instantiated in paintEvent, and the drawing happens in calls to > other sci

Re: [PyKDE] KPart problem

2005-07-24 Thread David Boddie
On Sun Jul 24 21:28:38 MEST 2005, Roberto Alsina wrote: > And here's my attempt: > > def main(args): > app=kdecore.KApplication(args,'dropbear') > win=kparts.KParts.MainWindow() > app.setMainWidget(win) > factory = kdecore.KLibLoader.self().factory( "libkonsolepart"

Re: [PyKDE] Borderless Windows

2005-08-10 Thread David Boddie
On Tue, 9 Aug 2005 11:02:56 +0530, The Abattoir[!] wrote: > I want help with trying to make windows borderless. > For example, in the file pyKHTMLPart.py, in the examples folder > of the PyKDE package, I changed the constructor call from > > parts=pyPartsMW(None,"pyParts") > > to > > par

Re: [PyKDE] Simple KHtml program crashing at exit

2005-08-11 Thread David Boddie
On Wed, 10 Aug 2005 10:16:32, Ismail Dönmez wrote: I have a very simple Khtml program like this ...] from qt import * from hwidget import HWidget import khtml from kdecore import KApplication, KCmdLineArgs, KAboutData class HtmlWidget(HWidget): def __init__(self, parent=None, name="

Re: [PyKDE] Simple KHtml program crashing at exit

2005-08-11 Thread David Boddie
On Thursday 11 August 2005 19:23, Jim Bublitz wrote: > (Somehow I received this with the leftmost characters missing on every > line - data compression?) It's the usual result when various pieces of software disagree on the way text is encoded. I usually try very hard to avoid getting that effec

Re: [PyKDE] problems with sip

2005-08-31 Thread David Boddie
On Tue, 30 Aug 2005 14:46:54, Michael Mason wrote: > Here is my configuration: > > Python 2.2.1 > gcc 3.2 > sip  3.11.1 > > I'm in the process of  requesting that our sysadmin upgrade to new > versions of everything, but for now I'm stuck using these older > versions. Ouch. That makes it slightly

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-08-31 Thread David Boddie
On Tue, 30 Aug 2005 20:32:50 +0100, Phil Thompson wrote: > The following have been released and are available at the usual place... > > PyQt v3.15 > PyKDE-snapshot20050829 > SIP v4.3 > QScintilla v1.6 > > Most of the work has been under the covers - supporting Python's cyclic > garbage collector i

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-04 Thread David Boddie
On Thursday 01 September 2005 09:10, Phil Thompson wrote: > > I'm not sure where the changes have occurred but, without applying any > > patches of my own, I now find that: > > > > * None of my KPart plugins work any more - the receivers for the > >KActions I set up are never called. I'm stil

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-04 Thread David Boddie
On Sunday 04 September 2005 21:30, Phil Thompson wrote: > It looks like the KLibFactory::createObject() SIP specification is missing > a /Factory/ annotation. This cause the generated virtual handler to > transfer ownership to C++ before calling Py_XDECREF(sipResObj) so the C++ > dtor doesn't get

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-04 Thread David Boddie
On Sunday 04 September 2005 22:49, Phil Thompson wrote: > On Sunday 04 September 2005 9:02 pm, David Boddie wrote: > > I thought this just meant that the C++ wrapper stays around, but the > > Python implementation is still collected. My plugin's __del__ method is > > st

Re: [PyKDE] ANN: New Releases of PyQt, PyKDE, SIP and QScintilla

2005-09-06 Thread David Boddie
On Monday 05 September 2005 09:30, Phil Thompson wrote: > Just to clarify - the second argument to sip.transferto() being None means > that the wrapper gets garbage collected. If you pass a wrapped object > instead then that wrapped object is given a reference to the object passed > as the first a

Re: [PyKDE] KPDF KPart

2005-09-21 Thread David Boddie
On Wed Sep 21 17:57:58, Rajeev J Sebastian wrote: > I am trying to use the KPDF KPart in my application. So far, I have been > successful in using KHTML Part, and so I want to go further. I am using the > following code: > > self.viewTB = createReadOnlyPart("libkpdfpart", self, "Kpdf", >

Re: [PyKDE] KPDF KPart

2005-09-23 Thread David Boddie
On Wed, 21 Sep 2005 19:22:52, Rajeev J Sebastian wrote: > On Wednesday 21 September 2005 7:14 pm, İsmail Dönmez wrote: > > > On the other hand, I did have to use KApplication instead of > > > QApplication. I guess this was why my code was segfaulting. I didn't > > > have to change my KPart loadi

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-18 Thread David Boddie
On Tue, 18 Oct 2005 18:24:08, Phil Thompson wrote: > I'm wondering whether QString should be dropped in PyQt4 in order to make > it more Pythonic. On one hand, it sounds like a nice idea. It would mean that you don't have to think about manually converting the ones you think you'll need and keepi

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-19 Thread David Boddie
On Wednesday 19 October 2005 09:47, Phil Thompson wrote: > On Wednesday 19 October 2005 1:17 am, David Boddie wrote: > > * Maintenance of QStrings passed to Python implemented methods - > > sometimes it's good to keep things in the same form that they were > > suppli

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-20 Thread David Boddie
On Thu, 20 Oct 2005 03:21:33, Giovanni Bajo wrote: > In my humble opinion, PyQt should stay as close to C++ Qt as possible. It's > a binding. There are many, many, many places where the Qt API could be made > more Pythonic (just stretch your imagination), but those can find their > place in a libr

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-21 Thread David Boddie
On Fri, 21 Oct 2005 07:21:46, Patrick K. O'Brien wrote: > Phil Thompson wrote: > > I'm totally unsympathetic to the idea of a *separate* Pythonic API to Qt. > > The Python GUI toolkit "market" is fragmented enough as it is - this > > would only add more confusion for (relatively) little benefit. >

Re: [PyKDE] installig of SIP

2005-10-25 Thread David Boddie
On Tue, 25 Oct 2005 11:24:48, Nguessan KRE wrote: >Please help me. I can not installing SIP-4.3.1 on my >computer. bellow the message of error: > >[EMAIL PROTECTED] sip-4.3.1]# python configure.py -l qt >This is SIP 4.3.1 for Python 2.4.2 on linux2. [...] I may be completely wrong her

Re: [PyKDE] designer: passing an argument to a slot?

2005-11-04 Thread David Boddie
On Tue, 1 Nov 2005 15:40:37, Peter J. Bismuti wrote: >This does not work. It gives a name error saying that the global variable >"value" is not defined. How can you access the value of the argument? > >Thanks in advance. > >void Dialog::ScaleScrollBar_ValueChanged(int value) >{ > valueString =

Re: [PyKDE] PyQt4 Update

2005-12-03 Thread David Boddie
On Thu, 1 Dec 2005 22:34:41, Phil Thompson wrote: > Tonight's PyQt4 snapshot has the QtGui module 99% complete. This means > PyQt4 is now officially useful, but note the following... > > - untested on Windows > - untested against Qt v4.1 > - untested against GCC v4 > > The Qt tutorials have been p

Re: [PyKDE] PyQt4 Update

2005-12-03 Thread David Boddie
On Saturday 3rd December, Phil Thompson wrote: > On Saturday 03 December 2005 5:35 pm, David Boddie wrote: > > I've been looking at the examples in the "widgets" subdirectory, and > > converting them in alphabetical order. One issue that's arisen so far i

Re: [PyKDE] PyQt4 Update

2005-12-04 Thread David Boddie
On Sunday 04 December 15:01:20, Phil Thompson wrote: > On Saturday 03 December 2005 6:08 pm, Baz Walter wrote: > > The only very minor issue I came across was the following error when > > trying to pass Qt.AlignCenter to QLabel.setAlignment: > > > > TypeError: argument 1 of QLabel.setAlignm

Re: [PyKDE] PyQt4 Update

2005-12-04 Thread David Boddie
On Sunday 04 December 2005 21:25, Phil Thompson wrote: > Yes - I shouldn't have used the word "bug". > > SIP doesn't support automatic type converters like C++ does, so I've been > adding %ConvertToTypeCode in various places to make things a bit more > convenient. This is one such place. I can't

Re: [PyKDE] PyQt4 Update

2005-12-06 Thread David Boddie
On Mon, 5 Dec 2005 16:21:56, Phil Thompson wrote: >On Saturday 03 December 2005 6:56 pm, David Boddie wrote: >> Just to clarify: subclasses of QAbstractListModel that don't >> reimplement columnCount() should automatically inherit the base >> class's behavi

Re: [PyKDE] Porting Qt4 c++ examples to Python

2005-12-09 Thread David Boddie
On Fri Dec 9 12:12:09, Douglas Soares de Andrade wrote: > Talking with Phil about a way to help, he told me that the best way would be > porting existing C++ examples to Python examples. > > As so as i received his mail, i started working in some examples. Same here. I hope we didn't duplicate

Re: [PyKDE] Porting Qt4 c++ examples to Python

2005-12-09 Thread David Boddie
On Fri Dec 9 19:15:47, Baz Walter wrote: > i've almost completed tools/settingseditor and the three examples in the > layouts folder. i was also thinking of doing xml/dombookmarks, if no one > else has started on that... I created a page on the PyQt Wiki so that we don't duplicate effort: http

Re: [PyKDE] Seperating logic code from gui code?

2005-12-15 Thread David Boddie
On Thu, 15 Dec 2005, Arthur Pemberton wrote: > I am new to Qt programming and PyQt. I am attempting to build a client for > AllofMp3.com, I already have most of the logic code down. But now I want to > build a GUI with PyQt. What rules should I follow to make the program > useable in the console,

Re: [PyKDE] Seperating logic code from gui code?

2005-12-18 Thread David Boddie
On Fri, 16 Dec 2005, Arthur Pemberton wrote: > Ideally, the console client would be simply a downloader, while the GUI > would use the same mechanisms to access the data, but give more > interactivty (renaming, prioritizing of downloads, etc.) Not sure if this > is the information you meant that w

Re: [PyKDE] PyQt4 + Qt4.0.1-debug or Qt4.1.0

2005-12-21 Thread David Boddie
On Thu Dec 22 01:09:37, Andreas Pakulat wrote: > On 21.12.05 23:05:54, Phil Thompson wrote: > > On Wednesday 21 December 2005 10:51 pm, Andreas Pakulat wrote: > > > 2. Is PyQt4 currently already supposed to work with Qt4.1.0? I guess > > > not, because compiling with it gives an error about the QT

Re: [PyKDE] New PyKDE snapshot - help needed

2006-01-22 Thread David Boddie
On Sat, 21 Jan 2006 16:49:20, Jim Bublitz wrote: > On Saturday 21 January 2006 14:11, Baz Walter wrote: > > On Saturday 21 Jan 2006 16:45, you wrote: > > > No - I've never seen that happen. I'll have to take a look at > > > configure.py and see what might cause that, but I can't imagine what > > >

[PyKDE] (no subject)

2006-02-08 Thread David Boddie
On Wed Feb 8 18:26:28 MET 2006, Patrick Stinson wrote: >Yeah, I"m getting the same problem. If you set the role color for >the child widget, and set the role color for the parent widget, >the child widget just gets the color for the parent widget. This >means that you can't give child widge

Re: [PyKDE] PyKDE example app(s).. what do *you* have? :):)

2006-02-17 Thread David Boddie
On Wed, 15 Feb 2006 20:18:57, Patrick Stinson wrote: > You're right, the more code we get out there the better, especially because > success with python is all about reading and learning (again, my opinion). I'm all for putting examples up on the Wiki: http://www.diotavelli.net/PyQtWiki Even

Re: [PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

2006-02-19 Thread David Boddie
On Sun Feb 19 15:30:53, Giovanni Bajo wrote: > Phil Thompson wrote: > > > (In fact I don't see why Qt still needs SIGNAL() and SLOT() - maybe > > the speed penalty of the alternative is more an issue at the C++ > > level.) > > Nah. There's boost::signal, which is a full-blown signal/slot implem

Re: [PyKDE] tableview and model

2006-02-25 Thread David Boddie
On 25 Feb 2006 11:26:13, Olivier Fournier wrote: > thank's for your help > > ... >         self.model = QtGui.QStandardItemModel(3,3) >         self.TVTable.setModel(self.model) > ... > > > is more correct... You should also be able to do this: model = QtGui.QStandardItemModel(3,3,self)

Re: [PyKDE] tableview and model

2006-02-26 Thread David Boddie
On Sat, 25 Feb 2006 17:12:58, Olivier Fournier wrote: > It's what I 've write in first but it's doen't work > model is a locale  variable for my __init__ classe. This class works for me: from PyQt4.QtCore import QObject from PyQt4.QtGui import QStandardItemModel, QTableView class A(QObject):

<    1   2   3   4   5   6   7   8   >