thread.start_new_thread(self.read_stdin,())# starts the thread
# a main window
# a main window
self.main_window=gtk.Window()
ifos.name=='nt':# Check for admin rights, don't start auto import if we don't have them
if(os.sys.getwindowsversion()[0]>=6):
importctypes
ifnotctypes.windll.shell32.IsUserAnAdmin():
dia=gtk.MessageDialog(parent=self.main_window,flags=gtk.DIALOG_DESTROY_WITH_PARENT,type=gtk.MESSAGE_ERROR,buttons=(gtk.BUTTONS_OK),message_format=_("No admin rights for HUD"))
dia.format_secondary_text(_("Please right click fpdb.exe and HUD_main.exe, select properties, and set them both to run as admin.")+""+_("You will need to restart fpdb afterwards."))