no need to import 2 modules in gajim.py

This commit is contained in:
Nikos Kouremenos 2006-10-07 12:56:21 +00:00
parent db177b7f8f
commit 7d525a35f4

View file

@ -72,16 +72,14 @@ except exceptions.PysqliteNotAvailable, e:
if os.name == 'nt': if os.name == 'nt':
try: try:
import winsound # windows-only built-in module for playing wav import winsound # windows-only built-in module for playing wav
import win32api
import win32con
except: except:
pritext = _('Gajim needs pywin32 to run') pritext = _('Gajim needs pywin32 to run')
sectext = _('Please make sure that Pywin32 is installed on your system. You can get it at %s') % 'http://sourceforge.net/project/showfiles.php?group_id=78018' sectext = _('Please make sure that Pywin32 is installed on your system. You can get it at %s') % 'http://sourceforge.net/project/showfiles.php?group_id=78018'
if pritext: if pritext:
dlg = gtk.MessageDialog(None, dlg = gtk.MessageDialog(None,
gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL, gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL,
gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, message_format = pritext) gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, message_format = pritext)
dlg.format_secondary_text(sectext) dlg.format_secondary_text(sectext)
dlg.run() dlg.run()