home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Welt 2006 November (DVD)
/
PCWELT_11_2006.ISO
/
casper
/
filesystem.squashfs
/
usr
/
lib
/
python2.4
/
site-packages
/
SoftwareProperties
/
utils.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2006-08-24
|
356 b
|
11 lines
import gtk
def dialog_error(parent, primary, secondary):
p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary
dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL,
gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"")
dialog.set_markup(p);
dialog.format_secondary_text(secondary);
dialog.run()
dialog.hide()