[PyQt] fitInView problem

2008-11-26 Thread Oguz Yarimtepe
Hi, I was trying to fit my image to the view in my qgraphicsview application. But i didn't get the logic of it or i am doing something wrong. What i do is first opening a pdf: self.doc = QtPoppler.Poppler.Document.load(self.fileName) page = self.doc.page(self.currentPage) rendering it to a sca

[PyQt] fitInView problem

2008-11-26 Thread Oguz Yarimtepe
Hi, I was trying to fit my image to the view in my qgraphicsview application. But i didn't get the logic of it or i am doing something wrong. What i do is first opening a pdf: self.doc = QtPoppler.Poppler.Document.load(self.fileName) page = self.doc.page(self.currentPage) rendering it to a sca

Re: [PyQt] rotateing QInputDialog

2008-11-24 Thread Oguz Yarimtepe
Hi, 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 same goal at qt4.3? Thanx for your help. ___

[PyQt] rotateing QInputDialog

2008-11-22 Thread Oguz Yarimtepe
Hi, 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? Cheers, Oğuz ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankc

[PyQt] qt limitation question

2008-11-20 Thread Oguz Yarimtepe
Hi, I was trying to make my GUI frameless by using self.setWindowFlags(QtCore.Qt.FramelessWindowHint) at the widget class. But i was not doing it at the init part of the widget but during some process at my application. I am rendering pdf files and showing them at QGraphicsView. I am also rotating

Re: [PyQt] QGrahicsView and event issue

2008-11-17 Thread Oguz Yarimtepe
On Fri, 2008-11-14 at 16:37 +0100, [EMAIL PROTECTED] wrote: > OK, I forgot to mention that you need to call the base class's > keyPressEvent() > method to handle any key presses that you aren't interested in. > > Try adding an "else" clause to your keyPressEvent() implementation: > > else: >

[PyQt] MaınWindow or Widget problem

2008-11-17 Thread Oguz Yarimtepe
Hi, Here (http://rafb.net/p/LDKkJZ10.html) is simple pyqt4 code that just enables and disables the wireless status with the same time displaying a transparent pic. I assigned this application to a key combination at my Desktop environment. The problem is when i press the keys i don't see the GUI i

Re: [PyQt] QGrahicsView and event issue

2008-11-14 Thread Oguz Yarimtepe
On Thu, 2008-11-13 at 16:53 +0100, [EMAIL PROTECTED] wrote: > > In your GraphicsView subclass you need to accept only those events > that > you handle yourself, so call event.accept() if you receive a key you > want > handle and event.ignore() for all other key presses. > > David Here is the cla

[PyQt] fn+f1 keypress detection

2008-11-14 Thread Oguz Yarimtepe
Hi all, At my pyqt4 GUI i developed an on screen display to show wireless status each time the Fn+F1 is pressed. At my laptop Fn+F1 was not working before, and i saw the setkeycodes somehexadecimalnumber message at the syslog output. So i assigned a keycode then i checked the xev output to see th

Re: [PyQt] QGrahicsView and event issue

2008-11-13 Thread Oguz Yarimtepe
On Tue, 2008-11-11 at 17:32 +0100, [EMAIL PROTECTED] wrote: > > You need to promote the QGraphicsView widget in your form to > GraphicsView. > To do this, open the context menu over the widget and select "Promote > to ..." > then add a new class to the list of promoted classes. > I applied what

Re: [PyQt] QGrahicsView and event issue

2008-11-11 Thread Oguz Yarimtepe
On Tue, 2008-11-11 at 16:43 +0200, Oguz Yarimtepe wrote: > Hi David, > > On Fri, 2008-11-07 at 18:24 +0100, David Boddie wrote: > > In your Main class, you are creating a new instance of a graphics view > > rather than using the one you set up in your pyuic4-creat

Re: [PyQt] QGrahicsView and event issue

2008-11-11 Thread Oguz Yarimtepe
Hi David, On Fri, 2008-11-07 at 18:24 +0100, David Boddie wrote: > In your Main class, you are creating a new instance of a graphics view > rather than using the one you set up in your pyuic4-created class: > > 29 root.graphicsView=GraphicsView() > > Maybe leave this assignment out. >

[PyQt] QGrahicsView and event issue

2008-11-07 Thread Oguz Yarimtepe
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 will start to work in the right way. I read the documents and t

Re: [PyQt] poppler qt version question

2008-11-03 Thread Oguz Yarimtepe
On Mon, 2008-11-03 at 22:06 +0530, Rajeev J Sebastian wrote: > The first problem of course, is to update it for the latest poppler. I > will try to do this based on your error reports, and report back on > the mailing list. I had installed the lates poppler that is 0.10. According to which versio

Re: [PyQt] poppler qt version question

2008-11-03 Thread Oguz Yarimtepe
he Pardus SVN? If it is possible to overcome the error i may try to fix it, if you give some clue about it. > Regards > Rajeev J Sebastian Thanx. Regards. Oguz Yarimtepe ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverba

[PyQt] poppler qt version question

2008-11-03 Thread Oguz Yarimtepe
I was trying to search how can i use pypoppler at my QT application. I have two question. The first one is whether i can use the pypoppler current release[1] at my QT application to show pdf files. The example at its source is for a GTK application. Second one i got the below error message when i

[PyQt] QSessionManager example request

2008-09-30 Thread Oguz Yarimtepe
Hi all, I am trying to write an application that will test the sleep function of the laptop. I am using pyqt for this. I need to continue to run my gui after the laptop wakes up from sleep mode so that i may continue some counters and repeat the sleep command again. I think i may use QSession

[PyQt] qwizard

2008-09-09 Thread Oguz Yarimtepe
Hi all, I am trying to write a GUI using QWizard. I have created the wizard using designer and edited some parts by playing with the code. I also added a progress bar and some related functions. I need to run a function when the user comes to the page #3 but i could`nt find how will i do it with p

[PyQt] callback problem

2008-07-02 Thread Oguz Yarimtepe
Hi all, I am trying to use callbacks at my gui: http://rafb.net/p/2YKz3Z77.html I am trying to detect the unpluging of video cable by using xrandr and callbacks. But i need to run the callbacks during the gui runtime. It runs only one time when the main function is called. What should i do to ma

[PyQt] detection of unplugged cable

2008-07-02 Thread Oguz Yarimtepe
Hi all, I am trying to develop a gui using pyqt. During the main program process i need to check whether the cable that was plugged to vga, dmi or s-video output is unplugged. If so. then i should run a process. How can i manage this forever job at the backgroung with the integration of my gui?