Jump to content

PYTHONHELP

Inactive Member
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

About PYTHONHELP

Informations

  • Gender
    Male

PYTHONHELP's Achievements

Newbie

Newbie (1/16)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. thx guy fixed : def __Load(self): self.__Load_LoadScript("uiscript/dmboard.py") try: GetObject=self.GetChild self.titleBar = GetObject("titlebar") except: import exception exception.Abort("failed to load titlebar") self.titleBar.SetCloseEvent(self.Hide) close request
  2. Hello devs , i was working on my system and i made a gui the problem is the close button doesn't work.. tried SetCloseEvent it's just doesn't disapper my coding import ui import chat import app import player import snd import game import item import net import constInfo import locale import chrmgr import uiWhisper import interfacemodule import time import wndMgr class DailyEventlog(ui.ScriptWindow): def __init__(self): ui.ScriptWindow.__init__(self) self.__Load() constInfo.dailygui = 1 def __del__(self): ui.ScriptWindow.__del__(self) constInfo.dailygui = 0 self.Hide() return TRUE def Destroy(self): self.Hide() constInfo.dailygui = 1 return TRUE def __Load_LoadScript(self, fileName): try: pyScriptLoader = ui.PythonScriptLoader() pyScriptLoader.LoadScriptFile(self, fileName) except: import exception exception.Abort("failed to LoadScript") def __Load(self): self.__Load_LoadScript("uiscript/dmboard.py") try: GetObject=self.GetChild self.titleBar = GetObject("titlebar") except: import exception exception.Abort("failed to load titlebar") self.titleBar.SetCloseEvent(self.Destroy()) width = wndMgr.GetScreenWidth() height = wndMgr.GetScreenHeight()
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.