NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

cmd_avatarwindow.py (758B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\avatardisplay\cmd_avatarwindow.py
      2 from carbonui.control.window import Window
      3 from carbonui.primitives.container import Container
      4 
      5 class MyWindow(Window):
      6     default_caption = 'Test Character Window'
      7     default_windowID = 'myWindowUniqueID'
      8     default_width = 300
      9     default_height = 300
     10     default_someValue = 10
     11     default_otherValue = 20
     12 
     13     def ApplyAttributes(self, attributes):
     14         Window.ApplyAttributes(self, attributes)
     15         someValue = attributes.Get('someValue', self.default_someValue)
     16         otherValue = attributes.Get('otherValue', self.default_otherValue)
     17         self.sr.sceneContainer = Container(name='sceneContainer', parent=self.sr.main)