WideStudio/MWT Logo
WideStudio/MWT
Programming Guide
WideStudio/MWT Index
Table of contents


ºÎ¸ð °´Ã¼¸¦ ÃëµæÇϱ⿡´Â



ºÎ¸ð °´Ã¼¸¦ ÃëµæÇϱ⿡´Â

ºÎ¸ð °´Ã¼¸¦ ÃëµæÇϱ⿡´Â, ¸â¹ö ÇÔ¼ö getParent() ¸¦ »ç¿ëÇÕ´Ï´Ù.

def event_procedure(object):
  # ºÎ¸ð °´Ã¼¸¦ Ãëµæ
  parent = object.getParent();
  # ºÎ¸ð °´Ã¼¿¡ Á¢±Ù(access)
  parent.setVisible(mwt.False);
  return
mwt.WSGFfunctionRegister("event_procedure",event_procedure)

object °¡ ¹èÄ¡µÇ¿©ÀÖ´Â ºÎ¸ð °´Ã¼¸¦ ÃëµæÇØ¼­, Ç¥½Ã ¼Ó¼ºÀ» ºÒ°¡·Î Çϴ°÷ÀÔ´Ï´Ù.

ºÎ¸ð ¾ÖÇø®ÄÉÀÌ¼Ç À©µµ¿ì¸¦ ÃëµæÇϱ⿡´Â

ºÎ¸ð ¾ÖÇø®ÄÉÀÌ¼Ç À©µµ¿ì¸¦ ÃëµæÇϱ⿡´Â, ¸â¹ö ÇÔ¼ö getParentWindow() ¸¦ »ç¿ëÇÕ´Ï´Ù.

def event_procedure(object):
  #ºÎ¸ð ¾ÖÇø®ÄÉÀÌ¼Ç À©µµ¿ì¸¦ Ãëµæ
  win = object.getParentWindow();
  #ºÎ¸ð ¾ÖÇø®ÄÉÀÌ¼Ç À©µµ¿ìªË Á¢±Ù(access)
  win.setVisible(mwt.False);
  return
mwt.WSGFfunctionRegister("event_procedure",event_procedure)

object °¡ ¹èÄ¡µÇ¿©ÀÖ´Â ºÎ¸ð ¾ÖÇø®ÄÉÀÌ¼Ç À©µµ¿ì¸¦ ÃëµæÇØ¼­, Ç¥½Ã ¼Ó¼ºÀ» ºÒ°¡·Î Çϴ°÷ÀÔ´Ï´Ù.

Document Release 3.90 for WideStudio/MWT ver 3.90, Jul 2005


WideStudio/MWT documents index | Table of contents

Copyright(C) WideStudio/MWT Development Team, 1999-2005 Last modified: Jul 31, 2005