![]() |
| ||
| App GUI integration (FarPy) 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): 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))And its triggering button... self.addLink = Button(Text='Add Link', Location=Point(7,328), Size=Size(288, 26)) 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. |
| ||
| Re: App GUI integration (FarPy) I'm confused. Do you need to figure out how to get the text out of the textbox? Also, what GUI toolkit are you using? Jeff |
| ||
| Re: App GUI integration (FarPy) What I need is to get the content of the textbox with the click of the button. I dont know what do you mean with the palette. All I know is that iam using FarPy GUI Editor |
| ||
| Re: App GUI integration (FarPy) Alright, I've Googled for documentation on FarPy and come up empty. If you take any object and pass it to dir, it will give you a readout of the available methods and properties of that object. Try inserting print dir(self.linkUrl) into your code and look for a method that looks like "getText" or something similar. Jeff |
| ||
| Re: App GUI integration (FarPy) Well, I read something about wxPython and I guess you can do it by (for a button) self.buttonName.Bind(wx.EVT_BUTTON, self.buttonNameClick) Where buttonName is the button's name, and buttonNameClick is a function that is triggered when the button is clicked. Sorry for not specifying that I was exporting to wxPython. Perhaps that would've helped. 8P |
| All times are GMT -4. The time now is 2:43 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC