def click_down_over(s,*args): if os.path.isdir(s.path): import settings core.assets.tool_path = s.path settings.wini(core.assets) self.populate(s.path,variabledest,variablename,filter,close_on_choose) else: self.chosen_file = s.path self.buttonpane.children.append(self.choose_b)
print "minimize" gw = guiWait(mute=True) gw.pri = -1000 gw.minimized = True assets.cur_script.obs.append(gw) if e.gain==1 and (e.state==6 or e.state==2 or e.state==4): print "maximize" for ob in assets.cur_script.obs: if hasattr(ob,"minimized"): ob.delete() if e.type==pygame.VIDEORESIZE: w,h = e.w,e.h assets.swidth = w assets.sheight = h assets.make_screen() settings.wini(assets) if e.type == pygame.QUIT: running = False if e.type==pygame.KEYDOWN and\ e.key==pygame.K_RETURN and pygame.key.get_mods() & pygame.KMOD_ALT: assets.fullscreen = 1-assets.fullscreen assets.make_screen() settings.wini(assets) def toggle_settings(): ss = [x for x in assets.cur_script.obs if isinstance(x,settings.settings_menu)] if ss: ss[0].close() else: assets.cur_script.obs.append(settings.settings_menu(sw=assets.sw,sh=assets.sh,assets=assets)) def enter_up():