Created
February 24, 2015 05:48
-
-
Save Toyz/898c5d3d9927019c60c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BDCore import * | |
from Newtonsoft.Json import * | |
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Drawing import Point, Color | |
from System.Windows.Forms import * | |
class HelloWorldForm(Form): | |
def __init__(self): | |
self.Text = 'Hello World' | |
self.Name = 'Hello World' | |
def AddLabel(self, text): | |
self.label = Label() | |
self.label.Text = text | |
self.label.Location = Point(50, 50) | |
self.label.Height = 30 | |
self.label.Width = 200 | |
self.Controls.Add(self.label) | |
def AddTextBox(self, text): | |
self.textBox = TextBox() | |
self.textBox.Multiline = True | |
self.textBox.ReadOnly = False | |
self.textBox.Dock = DockStyle.Fill | |
self.textBox.BackColor = Color.White | |
self.textBox.Text = text | |
self.textBox.ScrollBars = ScrollBars.Vertical | |
self.Controls.Add(self.textBox) | |
class Script(object): | |
def Sauce(self): | |
print Base.Instance.ImvuSiteEngine.GetSauce() | |
def GetBadges(self): | |
form = HelloWorldForm() | |
form.AddTextBox(JsonConvert.SerializeObject(Base.Instance.ImvuSiteEngine.GetBadgesFromProfile("38856955"))) | |
form.Show() | |
#print JsonConvert.SerializeObject(Base.Instance.ImvuSiteEngine.GetBadgesFromProfile("38856955")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment