NoisyNoise
-
Posts
2 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by NoisyNoise
-
-
Hi everyone!
Im a newbie in programming so i have to ask about buttons in gui.
Im trying to add 2 small buttons to that script but i dont have any idea how. I was tried some options but doesn't work.Can anyone help me and give me instructions how to add working buttons?
Spoilerimport ui,app,time,chr,math,playerSettingModule try: import playerm2g2 as player chr.GetPixelPosition = player.GetMainCharacterPosition except: import player try: import chatm2g as chat except: import chat try: import m2netm2g as net except: import net try: import chrmgrm2g as chrmgr except: import chrmgr ########################### IMPORT LIBS ############### SHOW INFO ############### chat.AppendChat(7, '############ My first sccript ###########') chat.AppendChat(7, '############ 1. enjoy ###########') chat.AppendChat(7, '############ 2. xxxxxxxxxxxxxx ###########') chat.AppendChat(7, '############ 3. xxxxxxxxxxxx ###########') chat.AppendChat(7, '############ 4.xxxx ###########') class okno(ui.BoardWithTitleBar): def __init__(self): self.okno = ui.BoardWithTitleBar() self.okno.SetTitleName('First Windows') self.okno.SetSize(150, 150) self.okno.SetCenterPosition() self.okno.AddFlag("movable") self.okno.Show() self.buttonss() qqq = okno() qqq.Show()
[PYTH]Trying to add buttons to gui.
in Community Support - Questions & Answers
Posted
You are crazy genius.
Your script is completely different than my. Do you recommend any tutorials for python?
Thanks a lot!