Skip to main content

Thread: Python/Quickly - Set text in a textbox


i'm using design program, , can't work out how change text in textbox. have far:

code:
    def search(self, widget, date=none):                  searchbar = self.builder.get_object('searchbar')         keyword =  #this equals text of searchbar                  dirchooser = self.builder.get_object('dirchooser')         directory =  #this must equal current directory in dirchooser object                   output = self.builder.get_object('output')         output.set_text(commands.getoutput('ls -l ' + directory + ' | grep ' + keyword))
i have included comments show don't know how do. need know correct syntax for:

1) saving text of text entry box variable ('keyword' in code)
2) saving current directory in directory chooser box variable ('directory' in code)

appreciated!

anyone? need bit of syntax help.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Python/Quickly - Set text in a textbox


Ubuntu

Comments

Popular posts from this blog

Christian Home School Programs - Joomla! Forum - community, help and support

Typo in documentation

captcha in coldfusion MX