On Friday 25 February 2005 3:51 pm, Detlev Offenbach wrote: Thanks for help kdepyuic works fine and stops the segfaults :) and from kdepyuic command line options it looks like it is able to convert the ui file leaving the images as individual files altough not tried this method yet
David > Am Freitag, 25. Februar 2005 16:13 schrieb [EMAIL PROTECTED]: > > hi > > firstly sorry if this has been covered before but im getting address not > > found when trying to search archives > > > > i wrote a ui using qt designer > > imported it into eric > > then in eric compiled it into a .py file > > > > other than having to add > > from kdeui import * > > this method appears to work ok > > > > 2 problems here , > > > > 1/. first the original pixmap is 93.4Kb and the .py script with the image > > is 686.7Kb this is a very large increse in file size concidering there is > > only about 100 lines of other python code and about 3 times the size of > > the ui file > > the problem is the ui has a large pixmap file > > that eric translates to :- > > > > image0_data = \ > > "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d" \ > > "\x49\x48\x44\x52\x00\x00\x02\x64\x00\x00\x00\xb9" \ > > and so on for the next 12273 lines of code > > It's not eric doing this, it's pyuic, which is part of PyQt. However, what > you observe is the normal behavior and happens with Qt's uic as well. > > > 2/. it wont run the script and gives segfaults > > i first thought it was dew to the way that the image data is compiled > > into python but after some experimentation it seems not to be > > > > using the same ui but with the pixmap removed from it compiles into a py > > file fine but still gives segfaults ? > > including the pixmap in to another ui that previously compiled and ran ok > > works ok > > > > the ui is a basic dialog with a contaner, pixmap, some text lables > > and input line and a password line :- > > > > Kpushbutton > > LineEdit > > KPasswordEdit > > > > how come im getting segfaults > > > > also eric3 when trying to profile or run the script gives no message or > > debug info to the segfault error just seems to sit there and do nothing > > If you are using KDE widgets in your UI you have to use the interface > compiler provided by PyKDE (I think it's kdepyuic). This is currently not > supported by eric3. > > > Versions :- > > python 2.3.4 > > kde 3.3.0 > > pykde 3.11.3 > > qt 3.3.3 > > pyqt 3.14 > > qscintilla 1.5 > > eric 3.6.2 > > from bicycle repair man cvs-20041120 > > > > Dave > > P.S. > > i can email a copy of the ui and py files on request > > as they are too big to post here :- .ui is 294Kb and .py is 687Kb > > Detlev _______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
