Hi. Iam making an app to write and append to an html document blog-type blocks. I have the GUI finished, but I need to fusion it with my script.
Look at this snippet of my script:
def link(href,target,linkName):
partA = "<a href='"+href+"' target='"+target+"'>"+linkName+"</a>"
print partA
Now, this is the GUI (textbox) that I want to implement with that function:
self.linkUrl = TextBox(Text='url', Location=Point(8,304), Size=Size(113, 20))
self.linkUrl.BackColor = Color.FromArgb(255, 255, 255)
self.linkUrl.Font = Font('Microsoft Sans Serif', 8.25)
self.linkUrl.Cursor = Cursors.Default
self.Controls.Add(self.linkUrl)
And its triggering button...
self.addLink = Button(Text='Add Link', Location=Point(7,328), Size=Size(288, 26))
self.addLink.Font = Font('Microsoft Sans Serif', 8.25)
self.addLink.Cursor = Cursors.Default
self.Controls.Add(self.addLink)
Now, I want to do that when the button is clicked this happens:
link([what is in the textbox],x,y)
Thats all i need.