Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72019
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'tutorial': 0.03; 'pop': 0.05; 'variables': 0.07; 'arguments,': 0.09; 'window.': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'script,': 0.16; 'sorts': 0.16; 'subject:pass': 0.16; 'subject:variable': 0.16; 'wrote:': 0.18; 'things.': 0.19; 'example': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'lets': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'such.': 0.31; 'another': 0.32; 'url:python': 0.33; 'running': 0.33; 'alone': 0.33; 'display': 0.35; 'classes': 0.35; 'definition': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'url:org': 0.36; 'button': 0.38; 'window': 0.38; 'explain': 0.39; 'does': 0.39; 'called': 0.40; 'how': 0.40; 'read': 0.60; 'url:3': 0.61; 'different': 0.65; 'linked': 0.65; '26,': 0.68; 'clicking': 0.73; 'gain': 0.79; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=On/nk5+/Ps1t0p7NMluOa+Do/8BdKEB7HgON+60ZbiM=; b=hTiLvgYFSfW5YsO69E/E15TxubFiUOZbYyoTAlrGgZ4Op4h0PfircmbJP1cGSsF+eT +gdQWxxBqnALLz1zaB489mz7s2EAU3h7EnENByKQQyzqWdAo7sNG5DvL6It72HwBeilQ VTio4kXkVEv+4IZ5NoNZ6CtalEF/J3UFdXjyCKQ/tkLyc9GNXas8apHoO931r9CXo8t3 NvhX25JFEWi/av5h/uBixm87EA9+0m/+BiECt+vnZIqCxgW3uceOIwoyzsd46rVRb+KN wTQxEz6Km16VNlTvsDCK97UujgPdKmHNWk00Ops+HmEql4Vib7vQwahHhBliGZUBWEsI ExeA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.164.70 with SMTP id yo6mr895408vdb.67.1401037632998; Sun, 25 May 2014 10:07:12 -0700 (PDT) |
| In-Reply-To | <ad229845-3b2d-4238-ad68-db9c8493801c@googlegroups.com> |
| References | <ad229845-3b2d-4238-ad68-db9c8493801c@googlegroups.com> |
| Date | Mon, 26 May 2014 03:07:12 +1000 |
| Subject | Re: How to pass variable through scipts |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10304.1401037640.18130.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1401037640 news.xs4all.nl 2889 [2001:888:2000:d::a6]:47848 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:72019 |
Show key headers only | View raw
On Mon, May 26, 2014 at 2:01 AM, <dimmaim@gmail.com> wrote: > 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 > When you import another script, you gain access to its functions and classes and such. All you need to do is write your function to take a couple of arguments, and then pass xx and yy as those arguments. I recommend you read and work through the Python tutorial - one of these, depending on which version of Python you use: https://docs.python.org/2/tutorial/ https://docs.python.org/3/tutorial/ It'll explain a lot of these sorts of things. Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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