[PyKDE] Re: Basic question about custom slot/function

Matej Cepl cepl at surfbest.net
Sun Jun 19 12:04:19 BST 2005

Kevin Walzer wrote:
> void form1::LaunchFoo()
> {
> ~  # get the text typed in the line edit
> ~  e = self.lineEdit1.text().ascii()
> ~   #show output
> ~    os.system('echo %s', e)
> ~    }

Two most silly questions:

a) what are these ~ characters? is it somehow result of direct copy from
your text editor or are they really in the file?
b) should not the it read
        os.system("echo %s" % e)
   ? or is there an alternative syntax available?


Matej Cepl, http://www.ceplovi.cz/matej/blog/
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
Most of the social problems in America today can be directly
linked to the failure of native Americans to establish an
effective immigration policy.

More information about the PyQt mailing list