Need Example Button Code Please

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Need Example Button Code Please

by Casey Bralla-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could somebody please post an example code for me please?

I want to have a push button which picks up a filename from a box on a form,
then calls a program using that filename.

I'm rather a rekall newbie, but if I had an example to follow, I'm sure I
could figure it out.

TIA!

--


Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
_______________________________________________
Rekall mailing list
Rekall@...
http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall

Re: Need Example Button Code Please

by Julian-27 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

simply with the onclick event.

def eventFunc (button) :
        from subprocess import Popen
        qrow = button.getBlock.getQueryRow()
        filename = myform.myfield.getValue(qrow)
        aargs = []
        aargs.append("<myapp>")
        aargs.append(filename)
       
        p=Popen(aargs)
        p.wait()


You might want to look up the python library reference and the rekall manual
(exec rekallManual) is rather comprehensive.

Jules.

On Sun, 15 Jun 2008, Casey Bralla wrote:
> Could somebody please post an example code for me please?
>
> I want to have a push button which picks up a filename from a box on a
> form, then calls a program using that filename.
>
> I'm rather a rekall newbie, but if I had an example to follow, I'm sure I
> could figure it out.
>
> TIA!


_______________________________________________
Rekall mailing list
Rekall@...
http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall
LightInTheBox - Buy quality products at wholesale price!