[PyQt] Stop main window from showing when closing dialog

2011-03-24 Thread Mikael Modin
Hi, I'm working on a background application that sometimes show a dialog in a lower corner, most of the time it's meant to just sit queitly in the taskbar or system tray. My problem is this; When the dialog in the corner is closed the main window get the focus again and becomes the top window, ste

Re: [PyQt] Different png formats?

2011-01-10 Thread Mikael Modin
Hi, Thanks alot for the tip, now excuse me while I go strangle my coworker, he told me he's sending me .png files. Which module should I include to support decoding of jpg files? /Mikael On 10 January 2011 20:30, Vincent Vande Vyvre wrote: > Le 10/01/11 09:16, Mikael Modin a écrit 

[PyQt] Different png formats?

2011-01-10 Thread Mikael Modin
Hi, I'm trying to get my application working fully after freezing it with cx_Freeze, but I'm having weird troubles with images. Some png's load fine, others stop working after freezing. I'm attaching two examples. Ar there different ways of encoding pngs? Is the support these different ways in di

Re: [PyQt] Images not showing in WebView after cx_Freeze

2011-01-03 Thread Mikael Modin
Hi, As I understood it png support is built-in and doesn't need a module for that. Might have changed since that mail thread was written though. I will look into pyInstaller as well then. /Mikael On 3 January 2011 21:03, Hans-Peter Jansen wrote: > On Monday 03 January 2011, 04:10:0

[PyQt] Images not showing in WebView after cx_Freeze

2011-01-02 Thread Mikael Modin
Hi, I'm currently developing a small tool for taking and sending screnshots, time-reporting for freelancers, and am using cx_Freeze to avoid having the users install python, pyqt and all other dependencies. The problem I'm having is that after running the code through cx_Freeze images on a web pa

[PyQt] Reduce memory footprint

2010-12-19 Thread Mikael Modin
Hi, I've written a small tool with a quite simple GUI using pyqt. After startup is completed the gui takes up 35mb memory, is there any way to reduce this footprint? Seems unneccesarily large. Kind regards, Mikael ___ PyQt mailing listPyQt@riverbank

Re: [PyQt] Load font form file

2010-12-15 Thread Mikael Modin
Hi, I've added it to the QFontDatabase and then I could create it, I just had to download a font editor to find out the family name of the font. Thanks :) /Mikael On 15 December 2010 21:34, Hans-Peter Jansen wrote: > On Wednesday 15 December 2010, 04:29:26 Mikael Modin wrote: >>

[PyQt] Load font form file

2010-12-14 Thread Mikael Modin
Hi, I've downloaded a new font that I want to use in my application, how do I get a QFont object to use with QLabel.setFont()? Kind regards Mikael ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/py

[PyQt] Hunting down memory leaks

2010-12-13 Thread Mikael Modin
Hi, I'm currently developing a little tool and it seems I have a memory leak somewhere along the line that handles images, so each leak is around 7mb which is kind of a big deal leading my app quickly to 100mb. I'm wondering if any of you havea any tips to figure out what kind of object I'm leakin

Re: [PyQt] Application not hiding from taskbar

2010-12-06 Thread Mikael Modin
self.hidden = True self.setWindowFlags(Qt.ToolTip) def showEvent(self, event): if ph.is_windows() and self.hidden: self.setWindowFlags(Qt.Window) self.hidden = False self.show() Kind regards, Mikael On 4 December 2010 00:40, Mikael Modin

[PyQt] Application not hiding from taskbar

2010-12-03 Thread Mikael Modin
It's working fine in Linux, but in Windows 7 it refuses to hide. It looks like one icon hides but then another one pops up beside it, if I click quick enough you get this flickering effect I managed to catch in a screenshot, http://dl.dropbox.com/u/3184097/problem2.png I'm stumped, thought

[PyQt] Translation troubles

2010-11-08 Thread Mikael Modin
.py -ts main.ts" and then edited in QLinguist. Wnd Title Blabla Muffins Kind regards, Mikael Modin ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Getting information about crash/lockup

2010-11-02 Thread Mikael Modin
t for testing purposes > > On Tue, 2010-11-02 at 21:39 +1100, Mikael Modin wrote: >> Hi Erik, >> >> Thanks for the tips. >> >> I have a minimal sample with the exact same bug. Got it down to 26 >> lines of code and one icon. I've built and run "make i

[PyQt] Getting information about crash/lockup

2010-11-01 Thread Mikael Modin
mething that way, nothing. This makes me think that the thread somehow locks up completely and therefore doesn't show up in Eclipse, but it doesn't crash. /Mikael Modin ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt