Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72016

How to pass variable through scipts

Newsgroups comp.lang.python
Date 2014-05-25 09:01 -0700
Message-ID <ad229845-3b2d-4238-ad68-db9c8493801c@googlegroups.com> (permalink)
Subject How to pass variable through scipts
From dimmaim@gmail.com

Show all headers | View raw


My code has this structure:
class Example(wx.Frame,listmix.ColumnSorterMixin):
    def __init__(self,parent):
        wx.Frame.__init__(self,parent)

        self.InitUI()

    def InitUI(self): 
..... some other functions and other stuff

when a button is clicked this function is called and i take the self.id_number which is a number

        def OnB(self, event):
            self.id_number = self.text_ctrl_number.GetValue()
            xx = latitude[int(self.id_number)]
            yy = longitude[int(self.id_number)]

i want to pass the variables xx and yy to a different script called application. This script by calling it with import, automatically  pop up a window. I need by clicking the button that is linked with OnB definition to pop up the window from the other script as it does when i am running it alone and display lets say for example the variables xx and yy, how can i do it

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

How to pass variable through scipts dimmaim@gmail.com - 2014-05-25 09:01 -0700
  Re: How to pass variable through scipts Chris Angelico <rosuav@gmail.com> - 2014-05-26 03:07 +1000

csiph-web