Skip to content

Hello, world!

Vlad edited this page Dec 19, 2017 · 26 revisions

Пример Python кода для вывода текста 'Hello, world!':


from gambiter import g_guiFlash

from gambiter.flash import COMPONENT_TYPE

props = {'x': 100, 'y': 100, 'text': 'Hello, world!', 'tooltip': 'Hello, world!'}

g_guiFlash.createComponent('labelAlias', COMPONENT_TYPE.LABEL, props)

g_guiFlash.updateComponent('labelAlias', {'drag': True, 'border': True})