Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Considering migrating to Python from Visual Basic 6 for engineering applications Date: Fri, 19 Feb 2016 03:06:12 +1100 Lines: 47 Message-ID: References: <90cc50d2-1ce5-4588-9bfd-a49d439f00dd@googlegroups.com> <14c75a68-0d2e-45cc-8d73-0d71b6a6aea6@googlegroups.com> <0a56557a-3c41-4900-b03c-288f1af82c53@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 7MbDApgK0uSa7PwNjNvqOAxJBlCf82fXohUqtblXgZaA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'resulting': 0.04; 'subject:Python': 0.05; 'pypi': 0.07; 'cc:addr:python-list': 0.09; 'derived': 0.09; 'libraries.': 0.09; 'subject:Visual': 0.09; 'python': 0.10; 'file,': 0.15; 'subject: \n ': 0.15; '(either': 0.16; '2016': 0.16; 'charts,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'graphing': 0.16; 'labels,': 0.16; 'mathematics.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'two,': 0.16; 'wrote:': 0.16; 'later': 0.16; 'flexibility': 0.18; 'library,': 0.18; 'gui': 0.18; 'programmer': 0.18; 'thanks.': 0.18; 'language': 0.19; 'library': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'tkinter': 0.22; 'am,': 0.23; 'code,': 0.23; '(or': 0.23; 'feb': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'external': 0.27; 'fri,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'mathematical': 0.27; 'restrict': 0.27; 'looks': 0.29; 'matplotlib': 0.29; 'screen.': 0.29; 'selection': 0.29; "i'm": 0.30; 'creating': 0.30; 'certainly': 0.30; 'probably': 0.31; 'surprised': 0.33; 'quickly': 0.34; 'this?': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'next': 0.35; 'could': 0.35; 'text': 0.35; 'files,': 0.35; 'library.': 0.35; 'quite': 0.35; 'something': 0.35; 'but': 0.36; 'too': 0.36; 'should': 0.36; 'possible.': 0.36; 'tool': 0.36; 'received:209.85': 0.36; 'basic': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'display': 0.37; 'turn': 0.37; 'things': 0.38; 'doing': 0.38; 'received:209': 0.38; 'stuff': 0.38; 'someone': 0.38; 'files': 0.38; 'sure': 0.39; 'subject:from': 0.39; 'some': 0.40; 'him': 0.60; 'your': 0.60; "you'll": 0.61; 'more': 0.63; 'grab': 0.64; 'guided': 0.66; 'sms': 0.66; 'phone': 0.68; 'hour': 0.69; 'capabilities': 0.72; 'yourself': 0.73; 'products,': 0.79; 'chrisa': 0.84; 'gtk': 0.84; 'high,': 0.84; 'scatter': 0.84; 'seldom': 0.84; 'temperature': 0.84; 'tkinter,': 0.84; 'whatsapp': 0.84; 'to:none': 0.91; 'boxes,': 0.91; 'equipped': 0.91; 'imagine': 0.96 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=KPjRbyhFeJ2DEPnvcVSPO3ZSODJv0SkdyWMQn8m3Ux0=; b=tvEeQSUIhdu0KdN2eDaQNxkivXWymvS7efjAzvSi2wAPG3trtfHHXOky5eRRoNf146 HgxIrHXLg4iV6BEu/0Bi82xYnV6eD448Ibuf88tWWDXmGwf6HMCD3nwbr1bofH5UUQ5A EA4bnEdBHb9TS7bPl33Yv4RXSbpwr4+NUtJcrGwhy/QltrZH9f795JC5ia4UJ0aZv3We 1mjOhGJUdWcwDL+8lZ+EtK+gR/2ytB+EItrT5J4bPb6uTR7E6zJaZUEM7dIIToAVkfcg pDRFXUvh2FqVnnZDIRgWnOPjYPZsFyWJFH1MiFKf7N+FI7I1DIymxLlgKW7757EDafxo D7uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type:content-transfer-encoding; bh=KPjRbyhFeJ2DEPnvcVSPO3ZSODJv0SkdyWMQn8m3Ux0=; b=cQG/9fQZFH7EK8qu9YucyE/2/SEuslcKLiUivh3KdiPImsV1B85mjD/zB0WYllY4AW 6JYafpzj8DfhqyEDCgeyawyCMasd3dzwulLwaPuJ/3XYk7RhlMXxKwAe6scY2Hy4hY6f X3QlnxE1xSMeeulW51TRzAZZZYW374zN7FpixWySsGXQ24FYXWVdZ+ioPKBcs9RjeaMc ZvzWOBTI+FfKNbwkscLTCzT97Iam1LGBl9S2xCY/O+ATbbVywWHvACNlCyg57IvQPvHa L8SFaK7fFxFiTZssJUHXQpmxRUJrYFCXuFkRYEiYxl9hQiZw7aVHqkcSCInm3+jKkK8U trbw== X-Gm-Message-State: AG10YOT0lDkIfxrnJBZQXKDKrKI7k+m6jHvA+F9Nfz38wlnt2mC/MYl1ZuefvwGM7m/ktNrGCZbzuKjWDwN6Rw== X-Received: by 10.107.132.90 with SMTP id g87mr9028974iod.157.1455811572582; Thu, 18 Feb 2016 08:06:12 -0800 (PST) In-Reply-To: <0a56557a-3c41-4900-b03c-288f1af82c53@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103132 On Fri, Feb 19, 2016 at 2:49 AM, wrote: > Thanks. You have guided me quite well, and I am almost ready to declare t= hat I will use Python for the next few decades. > Don't declare like that - just start using it, and see what you think :) But I would be very much surprised if Python doesn't get added to your toolbelt. A good programmer should always keep a selection of tools handy - seldom is one tool the right one for every job. > Imagine I want to read in two (or a few) numbers from a text file, displa= y them in two (or more) text boxes, calculate their sums and products, may = be take logarithms of them, and display them in other two text boxes or lab= els, and make some bar charts, scatter plots, and later draw curves and sur= faces on a computer screen. Do I really need PyPi or other external stuff f= or this? Is Python well equipped for this? > You could do all of that with just the standard library, but then your only choice of GUI library is Tkinter, which is derived from Tcl/Tk. If you don't like how that looks (either in your code, or in the resulting GUI), you'll need to turn to PyPI for an alternative (eg something derived from GTK or wxWindows or Qt). I'm not sure how the graphing capabilities of Tkinter are, so you might want to grab matplotlib too - again, it'll give you a lot more flexibility than you would have if you restrict yourself to *just* the standard library. But I think you could do all of that - certainly most of it - with just the language and standard library. > I will have to learn GUI creating quickly after I know the basics of read= ing and writing text files, and doing simple mathematical calculations. > Reading and writing text files is easy, as is basic mathematics. You'll have that down in an hour or two, most likely, and then you'll have time to play GUIs. > Later I can imagine using things like sending an SMS from a phone running= this on Android, or placing a graph in a WhatsApp message, make a call to = someone and tell him the temperature is now too high, etc. These things mig= ht need external libraries, but I can learn this later on. > Those things will most likely require external libraries. But most of them are probably possible. ChrisA