Database access through python using GUI(Tkinter)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • arvind

    #1

    Database access through python using GUI(Tkinter)

    hi all,
    i am accessing sql+ database through python 2.4.3.
    i am using Tkinter to build my screens.
    how can i pass parameters on the click event of button from one
    function to the another?
    how can i run another file from current file?

  • Russell E. Owen

    #2
    Re: Database access through python using GUI(Tkinter)

    In article <1151572291.969 023.299910@b68g 2000cwa.googleg roups.com>,
    "arvind" <arvind.mulay@g mail.com> wrote:
    [color=blue]
    > hi all,
    > i am accessing sql+ database through python 2.4.3.
    > i am using Tkinter to build my screens.
    > how can i pass parameters on the click event of button from one
    > function to the another?[/color]

    What do you mean by this? If you mean clicking a button runs one
    function and passes params to another, write a parent function:

    def doit():
    results = func1(...)
    funct2(results)
    btn = Tkinter.Button( ..., command=doit)
    [color=blue]
    > how can i run another file from current file?[/color]

    What kind of file? If you mean a command-line executable, see the
    subprocess module (new in python 2.4 but backwards compatible with 2.3
    and worth using).

    -- Russell

    Comment

    Working...