Hi,
I am having a problem making a widget appear. I have 5 widgets which
are windows with no parents. 3 of the widgets appear without a problem
the other 2 widgets will not appear when I invoke widget.show() from
within a handler for another widget. I am completely clueless as to why
these 2 widgets will not draw. One of them is simply a wait window I
want to appear while I am performing a time consuming task.
Here is a snippet of code:
def viewSimButton_p ressed(self):
wait_win.waitPr ogressBar.setPe rcentageVisible (1)
wait_win.waitPr ogressBar.setTo talSteps(5)
wait_win.waitPr ogressBar.setPr ogress(0)
wait_win.show()
self.hide()
self.viewSimBut ton.setDown(0)
for loopIdx in range(self.simL istBox.count()) :
if self.simListBox .isSelected(loo pIdx) == 1:
simIdx = loopIdx
simID = self.simListBox .item(simIdx).t ext().ascii()
# Clear list box
sim_view_win.si mOutputListBox. clear()
if os.path.exists( simID) == 1:
os.chdir(simID)
wait_win.waitPr ogressBar.setPr ogress(1)
# Check process ID file
if os.path.exists( 'pid') == 1:
time.sleep(1) # wait 1 second, then check again
pidFile = open('pid','r')
pidStr = pidFile.readlin e()
if pidStr == 'done\n':
sim_view_win.si mStatusLbl.setT ext('Completed' )
else:
sim_view_win.si mStatusLbl.setT ext('Running')
simData = sims[simID]
sim_view_win.si mIDEdit.setText (simID)
sim_view_win.ho stEdit.setText( simData['host'])
wait_win.waitPr ogressBar.setPr ogress(3)
# Fill list box with output files
#
filedir = os.popen('ls',' r')
filename = filedir.readlin e()
while filename:
filename = string.rstrip(f ilename)
if ((filename != 'pid') and (filename != 'sim_cfg') and (filename !=
'sim_log')
and (filename != 'sim_core')
and (string.find(fi lename,'.fig') == -1)
and (string.find(fi lename,'.gp') == -1)):
sim_view_win.si mOutputListBox. insertItem(file name)
filename = filedir.readlin e()
os.chdir('..')
wait_win.waitPr ogressBar.setPr ogress(5)
wait_win.hide()
sim_view_win.sh ow()
wait_win will show on the screen but not with it's progress bar. Can
anyone help?
Thanks,
Michael 1 1611
I suggest that you post your question to the PyKDE mailing list and include a
complete example that demonstrates your problem as an attachment (so the
indentation is preserved).
Phil
On Friday 28 January 2005 9:42 pm, Michael McGarry wrote: Hi,
I am having a problem making a widget appear. I have 5 widgets which are windows with no parents. 3 of the widgets appear without a problem the other 2 widgets will not appear when I invoke widget.show() from within a handler for another widget. I am completely clueless as to why these 2 widgets will not draw. One of them is simply a wait window I want to appear while I am performing a time consuming task.
Here is a snippet of code:
def viewSimButton_p ressed(self): wait_win.waitPr ogressBar.setPe rcentageVisible (1) wait_win.waitPr ogressBar.setTo talSteps(5) wait_win.waitPr ogressBar.setPr ogress(0) wait_win.show() self.hide() self.viewSimBut ton.setDown(0) for loopIdx in range(self.simL istBox.count()) : if self.simListBox .isSelected(loo pIdx) == 1: simIdx = loopIdx simID = self.simListBox .item(simIdx).t ext().ascii() # Clear list box sim_view_win.si mOutputListBox. clear() if os.path.exists( simID) == 1: os.chdir(simID) wait_win.waitPr ogressBar.setPr ogress(1) # Check process ID file if os.path.exists( 'pid') == 1: time.sleep(1) # wait 1 second, then check again pidFile = open('pid','r') pidStr = pidFile.readlin e() if pidStr == 'done\n': sim_view_win.si mStatusLbl.setT ext('Completed' ) else: sim_view_win.si mStatusLbl.setT ext('Running') simData = sims[simID] sim_view_win.si mIDEdit.setText (simID) sim_view_win.ho stEdit.setText( simData['host']) wait_win.waitPr ogressBar.setPr ogress(3) # Fill list box with output files # filedir = os.popen('ls',' r') filename = filedir.readlin e() while filename: filename = string.rstrip(f ilename) if ((filename != 'pid') and (filename != 'sim_cfg') and (filename != 'sim_log') and (filename != 'sim_core') and (string.find(fi lename,'.fig') == -1) and (string.find(fi lename,'.gp') == -1)): sim_view_win.si mOutputListBox. insertItem(file name) filename = filedir.readlin e() os.chdir('..') wait_win.waitPr ogressBar.setPr ogress(5) wait_win.hide() sim_view_win.sh ow()
wait_win will show on the screen but not with it's progress bar. Can anyone help?
Thanks,
Michael This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mazu |
last post by:
I get errors about QAssistantClient while compiling PyQt 3.7, on my
debian woody with Qt 3.1.2. Here is compiler message:
cd qt && /usr/bin/make -f Makefile
make: Entering directory `/Downloads/KDE - libs/PyQt-x11-gpl-3.7/qt'
g++ -c -pipe -w -O2 -D_REENTRANT -fPIC -DSIP_MAKE_MODULE_DLL
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I.
-I/usr/include/python2.1 -I/usr/share/qt3/include -o qtcmodule.o...
|
by: Ilya Knizhnik |
last post by:
Dear All,
I am fairly new to Python. I have found it an easy language to learn and
a very usefull one for many tasks. Currently I am working on a python
project that involves a GUI and it was suggested that PyQt is the best way to
design that GUI.
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is...
|
by: Dennis Sylvester |
last post by:
Interested in any opinions, studies, etc., concerning the GUI tool(s) to use
for Python. Specifically, which would you recommend (and why) for building
GUI apps in Python:
TKinter
BOA
PyQT
Thanks,
Dennis
|
by: Stelian Iancu |
last post by:
Hello all!
I am trying to install eric3, the Python IDE. I've downloaded and installed
successfully sip-3.8, QScintilla-1.2 and PyQT-3.8. However, when I try to
install eric, I get the following error:
Sorry, please install PyQt.
I looked into the install script, then I opened a Python window and there I
tried import qt and I got the following error:
|
by: Vamsi Mudrageda |
last post by:
I am kind of new to Python, and after trying and using wxPython, I found
it kind of lacking in easy-to-read documentation, speed at loading, and
GUI response-time.
So I am looking for an another GUI toolkit that is cross-platform for
Python, and am leaning toward PyQt (PyGTK is kind of dull looking in
comparison). Unfortunately, although TrollTech says Qt is
cross-platform, its license strategy has me a bit confused. So here is
to...
| |
by: simo |
last post by:
OK, so I'm at the stage where I want to make a choice between wxPython
and PyQt.
Currently I'm using wxPython mainly due to the fact that it has GPL
Linux and Windows versions.
I prefer Qt to wxWindows, but am confused with all the Windows
licensing issues.
For the moment this is just for my own tinkering and utility apps, but
|
by: Fabio |
last post by:
Hi all,
I'm about to write an application, and I'd like to use PyQt, but before
choosing this toolkit I would like to clarify some particular licensing
issues; if some user has already touched these, I would like to hear from
his experiences.
This app should be cross-platform, so, given qt licensing policies, I would
buy a commercial PyQt license and a commercial Qt license.
Could I license the application under the GPL for Gnu/Linux...
|
by: Simon John |
last post by:
After quite a while of wxPython I'm getting back into PyQt, mainly due
to the announcement by Trolltech that they will make a GPL version of
Qt4 for Windows (and Phil-T said he will make a PyQt to go with it
eventually!)
I'm currently using PyQt 3.12 that comes with the BlackAdder demo, it
seems to work fine with Python 2.3.5 except that it doesn't support the
WinXP look'n'feel, the QStyle "WindowsXP" isn't included, and using a...
|
by: Phil Thompson |
last post by:
Riverbank Computing is pleased to announce the release of PyQt v3.14 available
from http://www.riverbankcomputing.co.uk/.
Changes since the last release include support for QScintilla v1.5.
PyQt is a comprehensive set of Qt bindings for the Python programming language
and supports the same platforms as Qt. Like Qt, PyQt is available under the
GPL (for UNIX, Linux and MacOS/X), a commercial license (for Windows, UNIX,
Linux and...
|
by: Phil Thompson |
last post by:
Riverbank Computing is pleased to announce the release of PyQt v4.0beta1
available from http://www.riverbankcomputing.co.uk/pyqt/.
PyQt is a comprehensive set of Qt bindings for the Python programming language
and supports the same platforms as Qt (Windows, Linux and MacOS/X). Like Qt,
PyQt is available under the GPL and a commercial license.
PyQt v4 supports Qt v4 (http://www.trolltech.com/products/qt/index.html).
PyQt v3 is still...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |