Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-20 Thread Lele Gaifax via Python-list
Chris Green via Python-list writes: > I'm looking for Python packages that can help with text mode input, > i.e. for use with non-GUI programs that one runs from the command > prompt in a terminal window running a bash shell or some such. I'd suggest giving a try to https

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Mats Wichmann via Python-list
On 1/17/25 12:03, Keith Thompson via Python-list wrote: Alan Gauld writes: On 15/01/2025 00:41, Keith Thompson via Python-list wrote: Alan Gauld writes: On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, I ha

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Grant Edwards via Python-list
On 2025-01-17, Alan Gauld via Python-list wrote: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: >>>> I'm looking for Python packages that can help with text mode

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: >>>> I'm looking for Python packages that can help with text mode input, >>> >>>

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Alan Gauld via Python-list
On 15/01/2025 00:41, Keith Thompson via Python-list wrote: > Alan Gauld writes: >> On 11/01/2025 14:28, Chris Green via Python-list wrote: >>> I'm looking for Python packages that can help with text mode input, >> >> The standard package for this is curses whi

is input from a pipe?

2025-01-17 Thread km via Python-list
Not a question, but a quick note about a problem that sometimes pops up in forums, that is how to detect on Linux if standard input (or any I/O stream) is via pipe. My suggestion is to check if the stream is a FIFO, if True it is a pipe, otherwise not a pipe The solution that sometimes is

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 11/01/2025 14:28, Chris Green via Python-list wrote: >> I'm looking for Python packages that can help with text mode input, > > The standard package for this is curses which comes as part > of the standard library on *nix distros. The thing about c

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-16 Thread Roel Schroeven via Python-list
Op 11/01/2025 om 15:28 schreef Chris Green via Python-list: I'm looking for Python packages that can help with text mode input, i.e. for use with non-GUI programs that one runs from the command prompt in a terminal window running a bash shell or some such. What I'm specifically afte

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-15 Thread Alan Gauld via Python-list
On 15/01/2025 00:54, Grant Edwards via Python-list wrote: > are your friend. If that's not sophisticated enough the gnu "readline" > library with a simple command processor is a common next step. On that front the cmd module in Python is often overlooked but is useful for structuring a non-GUI-li

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Grant Edwards via Python-list
ure and handle a UI with a certain set of input widgets is going to be pretty much the same regardless of the low-level screen bashing details involved in rendering the widgets. You choose a TUI toolkit like curses panel/menu/forms instead of a GUI toolkit like gtk because you need your app t

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Chris Green via Python-list
Alan Gauld wrote: > On 14/01/2025 00:20, Grant Edwards via Python-list wrote: > > On 2025-01-13, Alan Gauld via Python-list wrote: > > > >> All of that is possible in curses, you just have to code it. > > > > All of that is easy with curses in C. Unfortunately, the high level > > "panel" and "

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Grant Edwards via Python-list
On 2025-01-14, Alan Gauld via Python-list wrote: > On 14/01/2025 00:20, Grant Edwards via Python-list wrote: >> On 2025-01-13, Alan Gauld via Python-list wrote: >> >>> All of that is possible in curses, you just have to code it. >> >> All of that is easy with curses in C. Unfortunately, the hi

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Alan Gauld via Python-list
On 14/01/2025 00:20, Grant Edwards via Python-list wrote: > On 2025-01-13, Alan Gauld via Python-list wrote: > >> All of that is possible in curses, you just have to code it. > > All of that is easy with curses in C. Unfortunately, the high level > "panel" and "menu" curses subystems that make

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Grant Edwards via Python-list
On 2025-01-13, Alan Gauld via Python-list wrote: > All of that is possible in curses, you just have to code it. All of that is easy with curses in C. Unfortunately, the high level "panel" and "menu" curses subystems that make it easy aren't included in the Python curses API, so doing it in Pyht

RE: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Alan Gauld via Python-list
On 11/01/2025 14:28, Chris Green via Python-list wrote: > I'm looking for Python packages that can help with text mode input, The standard package for this is curses which comes as part of the standard library on *nix distros. > What I'm specifically after is a way to provide

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Chris Green via Python-list
rustbuck...@nope.com wrote: > > This is what I was going to suggest. Rich is super easy to use. OK, thanks, Rich is on my shortlist then. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread rustbuckett--- via Python-list
This is what I was going to suggest. Rich is super easy to use. -- https://mail.python.org/mailman/listinfo/python-list

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-11 Thread dn via Python-list
On 12/01/25 03:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, i.e. for use with non-GUI programs that one runs from the command prompt in a terminal window running a bash shell or some such. What I'm specifically after i

Tools to help with text mode (i.e. non-GUI) input

2025-01-11 Thread Chris Green via Python-list
I'm looking for Python packages that can help with text mode input, i.e. for use with non-GUI programs that one runs from the command prompt in a terminal window running a bash shell or some such. What I'm specifically after is a way to provide a default value that can be accepted

Re: Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
On Friday, 30 August 2024 at 21:23, Peter J. Holzer via Python-list wrote: > > > On 2024-08-30 19:18:29 +, Simon Connah via Python-list wrote: > > > I need to write a script that will take some user input (supplied on a > > website) and then execute a Python

Re: Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
On Friday, 30 August 2024 at 23:35, Thomas Passin via Python-list wrote: > > > On 8/30/2024 3:18 PM, Simon Connah via Python-list wrote: > > > I need to write a script that will take some user input (supplied on a > > website) and then execute a Python scrip

Re: Sanitise user input for a script

2024-08-30 Thread Thomas Passin via Python-list
On 8/30/2024 3:18 PM, Simon Connah via Python-list wrote: I need to write a script that will take some user input (supplied on a website) and then execute a Python script on a host via SSH. I'm curious what the best options are for protecting against malicious input in much the smae way a

Re: Sanitise user input for a script

2024-08-30 Thread Peter J. Holzer via Python-list
On 2024-08-30 19:18:29 +, Simon Connah via Python-list wrote: > I need to write a script that will take some user input (supplied on a > website) and then execute a Python script on a host via SSH. I'm > curious what the best options are for protecting against malicious >

Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
I need to write a script that will take some user input (supplied on a website) and then execute a Python script on a host via SSH. I'm curious what the best options are for protecting against malicious input in much the smae way as you sanitise SQL to protect against SQL injections. I

Re: From geeksforgeeks.org, on converting the string created by the input() to an INT

2023-05-25 Thread Chris Angelico
On Fri, 26 May 2023 at 09:58, Kevin M. Wilson via Python-list wrote: > > So, why can't a string of an integer be converted to an integer, via > print(int(str('23.5')))??? 23.5 is not an integer, so "23.5" is not the string of an integer. ChrisA -- https://mail.python.org/mailman/listinfo/pytho

From geeksforgeeks.org, on converting the string created by the input() to an INT

2023-05-25 Thread Kevin M. Wilson via Python-list
We can first convert the string representation of float into float using  float() function and then convert it into an integer using int().So, why can't a string of an integer be converted to an integer, via  print(int(str('23.5')))??? Perplexed | print(int(float('23.5'))) | "When you pas

Re: pygame.midi input/output not working

2022-12-22 Thread Thomas Passin
This issue thread on Github says that everyone is waiting on the packaging maintainer, but nothing from him for some time. On 12/22/2022 5:04 AM, Peter J. Holzer wrote: On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: The pygame web site says this: "Pygame still does not run on Python 3.11"

Re: pygame.midi input/output not working

2022-12-22 Thread Weatherby,Gerard
https://github.com/pygame/pygame/issues/3522 From: Python-list on behalf of Peter J. Holzer Date: Thursday, December 22, 2022 at 5:06 AM To: python-list@python.org Subject: Re: pygame.midi input/output not working On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site s

Re: pygame.midi input/output not working

2022-12-22 Thread Peter J. Holzer
On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site says this: > > "Pygame still does not run on Python 3.11" This doesn't sound like "we haven't got around to preparing packages yet" and more like "there's a serious incompatibility we haven't solved yet". Does anybody know

Fwd: pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
Hi Thomas, Thanks for the answer AND solution ! That was it... shame on me, I didn't notice this warning. I uninstalled 3.11.1 and installed 3.10.9, and my software is back to live ! Now I have to figure out another problem. I will make another post about this serial weird behavior. Thanks for

Re: pygame.midi input/output not working

2022-12-21 Thread Thomas Passin
On 12/21/2022 4:32 PM, Patrick EGLOFF wrote: HI, Some time ago I wrote a small software using pygame.midi It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1 I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL 2.0.18 / pygame 2.1.2 The following instru

pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
HI, Some time ago I wrote a small software using pygame.midi It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1 I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL 2.0.18 / pygame 2.1.2 The following instructions don't work anymore, making the IDE stop

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Tobiah
sting purposes I want to save various possible outputs of the command as text files and use those as inputs. What format should I use to pass data to the actual parsing function? I could in both production and test convert the entire input to a string and pass the string to the parsing method. Howev

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Roel Schroeven
Op 11/03/2022 om 10:11 schreef Roel Schroeven: Op 10/03/2022 om 13:16 schreef Loris Bennett: Hi, I have a command which produces output like the following:    Job ID: 9431211    Cluster: curta    User/Group: build/staff    State: COMPLETED (exit code 0)    Nodes: 1    Cores per node: 8    CPU

Re: How to test input via subprocess.Popen with data from file

2022-03-11 Thread Roel Schroeven
Op 10/03/2022 om 13:16 schreef Loris Bennett: Hi, I have a command which produces output like the following: Job ID: 9431211 Cluster: curta User/Group: build/staff State: COMPLETED (exit code 0) Nodes: 1 Cores per node: 8 CPU Utilized: 01:30:53 CPU Efficiency: 83.63% of

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Dieter Maurer
t;of strings, what should the common format for the argument which is >passed to the actual parsing function be? What methods (of its input argument) does the parsing use? If it uses `Popen` methods, then you pass a `POpen` object; if it uses only (typical) file methods, then you pass a file obje

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Loris Bennett
; You can separately test both tasks (I, at your place, would do this). I just want to test the parsing. > For the parsing test, it is not relevant that the actual text > comes from an external process. You can directly read it from a file > or have it in your text. As mentioned in the or

Re: How to test input via subprocess.Popen with data from file

2022-03-10 Thread Dieter Maurer
Loris Bennett wrote at 2022-3-10 13:16 +0100: >I have a command which produces output like the >following: > > Job ID: 9431211 > Cluster: curta > User/Group: build/staff > State: COMPLETED (exit code 0) > Nodes: 1 > Cores per node: 8 > CPU Utilized: 01:30:53 > CPU Efficiency: 83.63% of 01:4

How to test input via subprocess.Popen with data from file

2022-03-10 Thread Loris Bennett
format should I use to pass data to the actual parsing function? I could in both production and test convert the entire input to a string and pass the string to the parsing method. However, I could use something like test_input_01 = subprocess.Popen( ["cat test_input_0

Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 6:21 AM Jerry Thefilmmaker wrote: > @app.route("/check_answer/", methods = ['POST']) > def check_answer(ans): > > > Enter your answer: > > What you're creating here is a route with a placeholder. The check_answer

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Tuesday, June 29, 2021 at 2:03:58 PM UTC-4, Chris Angelico wrote: > On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker > wrote: > > Thanks for taking the time to explained, Chris. Believe me, it helps. It > > had me thinking for a while. So, All the stuff about HTTP makes sense. I've > > be

Re: python: server is not receiving input from client flask

2021-06-29 Thread Chris Angelico
On Wed, Jun 30, 2021 at 3:38 AM Jerry Thefilmmaker wrote: > Thanks for taking the time to explained, Chris. Believe me, it helps. It had > me thinking for a while. So, All the stuff about HTTP makes sense. I've been > studying and trying to wrap my head around the rest of your explanation and

Re: python: server is not receiving input from client flask

2021-06-29 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 3:59:54 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker > wrote: > > > > Do you mind elaborating a bit more on making one function for any given > > request? > > > > As far as defining a bunch of functions that get called when

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 5:43 AM Jerry Thefilmmaker wrote: > > Do you mind elaborating a bit more on making one function for any given > request? > > As far as defining a bunch of functions that get called when particular > requests come in I thought that's what I had going on in my codes. No? >

Re: python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
On Monday, June 28, 2021 at 2:41:23 PM UTC-4, Chris Angelico wrote: > On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker > wrote: > > @app.route("/", methods = ['POST', 'GET']) > > def play(): > > > > @app.route("/", methods = ['POST', 'GET']) > > def check_answer(ans, user): > When you're bu

Re: python: server is not receiving input from client flask

2021-06-28 Thread Chris Angelico
On Tue, Jun 29, 2021 at 4:36 AM Jerry Thefilmmaker wrote: > @app.route("/", methods = ['POST', 'GET']) > def play(): > > @app.route("/", methods = ['POST', 'GET']) > def check_answer(ans, user): When you're building a Flask app, you're defining a bunch of functions that get called when particular

python: server is not receiving input from client flask

2021-06-28 Thread Jerry Thefilmmaker
I am new at python but newer at flask, and I'm trying to deploy a web app where I: 1. Send the user the question 2. Get the answer from the user 3. Send additional information based on the answer I am able to send the question but stuck at getting the answer from the user. Base on the answer fro

Re: setting user input equal to target language in Google Translator

2021-04-16 Thread Peter Otten
On 16/04/2021 19:11, Quentin Bock wrote: is it possible to set the target language of a translation to be the input from a user? I have tried inputting specific abbreviations that would normally be accepted as the target language but it remains in Icelandic and I would like to change the target

setting user input equal to target language in Google Translator

2021-04-16 Thread Quentin Bock
is it possible to set the target language of a translation to be the input from a user? I have tried inputting specific abbreviations that would normally be accepted as the target language but it remains in Icelandic and I would like to change the target language based on the user's input wi

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread Terry Reedy
On 1/16/2021 9:17 PM, 2qdxy4rzwzuui...@potatochowder.com wrote: A bare minimum skeleton might look something like this: with open(filename) as f: for line in f.readlines(): handle_one_line(f) f.readlines() reads the entire file into a list of lines (strings). If y

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread 2QdxY4RzWzUUiLuE
nimum skeleton might look something like this: with open(filename) as f: for line in f.readlines(): handle_one_line(f) Python has a capable string type for handling text; see <https://docs.python.org/3/library/string.html>. Or look into the fileinput module for a con

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Sat, 16 Jan 2021 14:56:37 -0600, 2qdxy4rzwzuui...@potatochowder.com wrote: >On 2021-01-16 at 15:42:44 -0500, >DonK wrote: > >> Yes, Windows. Iterating open windows with the Window's API is easy the >> hard (very hard) part is sending keystrokes to those windows to Save >> them. It's very trick

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Tue, 12 Jan 2021 10:16:47 +0400, Abdur-Rahmaan Janhangeer wrote: >Greetings, > >Web with Python is really easy to get started with, here >is a simple endpoint with a framework called Flask > >from flask import Flask >app = Flask(__name__) > >@app.route('/') >def hello_world(): > return 'Hell

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread 2QdxY4RzWzUUiLuE
On 2021-01-16 at 15:42:44 -0500, DonK wrote: > Yes, Windows. Iterating open windows with the Window's API is easy the > hard (very hard) part is sending keystrokes to those windows to Save > them. It's very tricky because the timing is critical. > > You have to use one of those "spy" utilities

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Mon, 11 Jan 2021 21:56:48 -0800, Paul Rubin wrote: >DonK writes: >> My problem is that I don't understand how Python programs are >> used. (i.e user input and output) Is Python mainly used for backends? >> I've seen some Python gui frameworks like Tkinter,

Re: A beginning beginner's question about input, output and . . .

2021-01-16 Thread DonK
On Tue, 12 Jan 2021 09:26:18 +1100, Chris Angelico wrote: >On Tue, Jan 12, 2021 at 7:41 AM DonK wrote: >> Hi, I'm thinking about learning Python but I'm 74 years old and will >> very likely not ever have a programming job again. I used to program >> in Visual Basic, C\C++, Delphi, etc. and some

Re: conceptual problem (was: A beginning beginner's question about input, output and . . .

2021-01-14 Thread Greg Ewing
On 14/01/21 11:49 am, Cameron Simpson wrote: The "pure" OOP approach, where method calls are used as messages to set or fetch aspects of the object, is usually does with getter and setter methods like: x = o.getX() o.setX(9) People use get and set methods, not because it's somehow mo

Re: A beginning beginner's question about input, output and . . .

2021-01-14 Thread Peter Pearson
On Wed, 13 Jan 2021 21:46:08 - (UTC), Grant Edwards wrote: > On 2021-01-13, Peter Pearson wrote: [snip] >> Browsergui is not widely popular (I don't think anybody but me has >> mentioned it on this newsgroup), but it was written to be simple and >> Pythonic, and has served me well. Browsergui

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Greg Ewing
On 14/01/21 11:09 am, Grant Edwards wrote: Perhaps I need to recalibrate my adjectives, but with 256KB+ of flash and 32KB+ of RAM, I wouldn't call them "small" It's small by today's standards, when you consider that multiple GB of RAM is commonplace now in most "real" computers. -- Greg -- htt

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Greg Ewing
On 13/01/21 7:57 pm, Christian Gollwitzer wrote:  What do you mean, "until" ? https://medium.com/@yon.goldschmidt/running-python-in-the-linux-kernel-7cbcbd44503c He's using Micropython. That's cheating! :-) -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: FridayFinking - Was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Rich Shepard
On Thu, 14 Jan 2021, dn via Python-list wrote: Concerning the definition of "old" - when I'm having a 'good day', it's anyone several years my senior (and above) - when I'm creaking and groaning, it's anyone remotely my age, and older. About 45 years ago a 25-year-older friend of mine offered

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Grant Edwards
On 2021-01-13, Peter Pearson wrote: > On Mon, 11 Jan 2021 15:37:58 -0500, DonK > wrote: > [snip] >> >> I've seen some Python gui frameworks like Tkinter, PyQt, etc. but they >> look kinda like adding a family room onto a 1986 double wide mobile >> home, > > Agreed. > > Browsergui is not widely

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Grant Edwards
On 2021-01-13, Dennis Lee Bieber wrote: > On Tue, 12 Jan 2021 15:18:05 - (UTC), Grant Edwards > declaimed the following: >>On 2021-01-12, songbird wrote: >> >>> it can be used for pretty much anything except perhaps high >>> pressure real time things, but i bet someone else will know that >>>

FridayFinking - Was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread dn via Python-list
On 14/01/2021 04.54, Grimble wrote: > On 11/01/2021 20:37, DonK wrote: >> >> Hi, I'm thinking about learning Python but I'm 74 years old and will >> very likely not ever have a programming job again. > At 83, I have no intention of having a programming job again! I last > coded something professi

Re: conceptual problem (was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Cameron Simpson
On 13Jan2021 10:37, songbird wrote: > my momentary conceptual problem is that to me OOP means >being able to encapsulate data structures and code from >other parts of the program, but to me it doesn't look like >that is how python is designed. this is probably a complete >aside to this whole thr

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Peter Pearson
On Mon, 11 Jan 2021 15:37:58 -0500, DonK wrote: [snip] > > I've seen some Python gui frameworks like Tkinter, PyQt, etc. but they > look kinda like adding a family room onto a 1986 double wide mobile > home, Agreed. Browsergui is not widely popular (I don't think anybody but me has mentioned it

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread songbird
Christian Gollwitzer wrote: > Am 13.01.21 um 06:24 schrieb Greg Ewing: >> On 13/01/21 4:18 am, Grant Edwards wrote: >> >>> AFAIK, Python can't be used to write device drivers for any popular OS >> >> At least not until some crazy person embeds Python in the >> Linux kernel... > > > What do you

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Grimble
ion interfacing with various 1Wire sensors transcribed from an initial Ruby application. My largest GUI application is a database of personal contacts with input and output of data via vCards and .csv files (with a lot of mentoring from an American Gtk user!) I find this a fascinating news group

conceptual problem (was: A beginning beginner's question about input, output and . . .

2021-01-13 Thread songbird
Chris Angelico wrote: ...projects that fade... > That's not really something Python can ever control, but I can say > with some confidence that the big libraries like Qt and GTK are going > to adapt, one way or another. And perhaps more importantly: Neither > input()/print() nor

Re: A beginning beginner's question about input, output and . . .

2021-01-13 Thread Grimble
Ruby application. My largest GUI application is a database of personal contacts with input and output of data via vCards and .csv files (with a lot of mentoring from an American Gtk user!) I find this a fascinating news group - shame there's been no updates to Friday Finking recently

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Christian Gollwitzer
Am 13.01.21 um 06:24 schrieb Greg Ewing: On 13/01/21 4:18 am, Grant Edwards wrote: AFAIK, Python can't be used to write device drivers for any popular OS At least not until some crazy person embeds Python in the Linux kernel... What do you mean, "until" ? https://medium.com/@yon.goldschm

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Greg Ewing
On 13/01/21 4:18 am, Grant Edwards wrote: AFAIK, Python can't be used to write device drivers for any popular OS At least not until some crazy person embeds Python in the Linux kernel... -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-12, Chris Angelico wrote: > * Command-line calculator - pressing Ctrl-Alt-P will open up a > terminal with Python, and that's the normal way that I do quick > calculations I do that a lot too. -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Cameron Simpson
On 12Jan2021 10:40, Michael F. Stemper wrote: >On 11/01/2021 14.37, DonK wrote: >>I've installed Python 3.7, the PyCharm IDE and watched some Youtube >>tutorials > >I would suggest that instead of watching tutorials, you open up your IDE >and start writing stuff. I would second that. Maybe this i

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Cameron Simpson
On 12Jan2021 15:18, Grant Edwards wrote: >On 2021-01-12, songbird wrote: >> it can be used for pretty much anything except perhaps >> high pressure real time things, but i bet someone else will >> know that is being done too, i've just not heard of it. :) > >AFAIK, Python can't be used to writ

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Chris Angelico
On Tue, Jan 12, 2021 at 7:41 AM DonK wrote: > So, what do you folks use Python for? > Since everyone else is, I'll add my list. * API lookups of various sorts (usually via HTTP requests) * Audio analysis. Calculate the maximum and average volume of each of many songs. * Code generation. The audi

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-12, Chris Angelico wrote: > On Wed, Jan 13, 2021 at 3:18 AM Grant Edwards > wrote: >> >> On 2021-01-12, songbird wrote: >> >> > it can be used for pretty much anything except perhaps >> > high pressure real time things, but i bet someone else will >> > know that is being done too,

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Michael F. Stemper
On 12/01/2021 10.40, Michael F. Stemper wrote: Modeling of electric power systems: - load behavior in response to conservation load reduction Sorry, that should have been "conservation voltage reduction". -- Michael F. Stemper Psalm 82:1-4 -- https://mail.python.org/mailman/listinfo/python-l

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread MRAB
On 2021-01-11 20:37, DonK wrote: [snip] So, what do you folks use Python for? Since we're sharing: - Personal information manager in the form of a tree of pages. Each page can have code associated with it which defines functions to call when shortcut keys are pressed, giving page-specifi

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Michael F. Stemper
On 11/01/2021 14.37, DonK wrote: I've installed Python 3.7, the PyCharm IDE and watched some Youtube tutorials I would suggest that instead of watching tutorials, you open up your IDE and start writing stuff. Get an introductory python book (I used the O'Reilly _Introducing Python_), start at

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Chris Angelico
On Wed, Jan 13, 2021 at 3:18 AM Grant Edwards wrote: > > On 2021-01-12, songbird wrote: > > > it can be used for pretty much anything except perhaps > > high pressure real time things, but i bet someone else will > > know that is being done too, i've just not heard of it. :) > > AFAIK, Python

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-12, songbird wrote: > it can be used for pretty much anything except perhaps > high pressure real time things, but i bet someone else will > know that is being done too, i've just not heard of it. :) AFAIK, Python can't be used to write device drivers for any popular OS (Linux, Uni

Re: A beginning beginner's question about input, output and . . .

2021-01-12 Thread Grant Edwards
On 2021-01-11, DonK wrote: > So, what do you folks use Python for? I mainly use it for writing command-line utilities. Many of them work on either Windows or Linux, but are mostly used on Linux: * Two-pass symbolic assembler and dissassembler for a proprietary communications controller. *

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Chris Angelico
more stable to my style of > doing things). That's not really something Python can ever control, but I can say with some confidence that the big libraries like Qt and GTK are going to adapt, one way or another. And perhaps more importantly: Neither input()/print() nor web applications is going

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread songbird
on 3.7, the PyCharm IDE and watched some Youtube > tutorials but it's been stretched out over about 1.5 years so I'll > probably need to go back to the beginning. My problem is that I don't > understand how Python programs are used. (i.e user input and output) > Is Pyth

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Abdur-Rahmaan Janhangeer
but it's been stretched out over about 1.5 years so I'll > probably need to go back to the beginning. My problem is that I don't > understand how Python programs are used. (i.e user input and output) > Is Python mainly used for backends? > > I've seen some Pyth

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Chris Angelico
On Tue, Jan 12, 2021 at 3:16 PM Greg Ewing wrote: > > Currently I'd like to write something to iterate > > through open windows and save them to different folders depending on > > if the titlebar contains certain strings. > > That sounds like it should be doable if you can get access to the > righ

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Greg Ewing
On 12/01/21 9:37 am, DonK wrote: I've seen some Python gui frameworks like Tkinter, PyQt, etc. but they look kinda like adding a family room onto a 1986 double wide mobile home, and they look even more complicated than creating a GUI from scratch in C++ with a message loop, raising events . . .

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Cameron Simpson
On 11Jan2021 15:52, Dan Stromberg wrote: >On Mon, Jan 11, 2021 at 2:22 PM Cameron Simpson wrote: >> >I've seen some Python gui frameworks like Tkinter, PyQt, etc. but >> >they >> >look kinda like adding a family room onto a 1986 double wide mobile >> >home, and they look even more complicated th

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Dan Stromberg
On Mon, Jan 11, 2021 at 2:22 PM Cameron Simpson wrote: > >I've seen some Python gui frameworks like Tkinter, PyQt, etc. but they > >look kinda like adding a family room onto a 1986 double wide mobile > >home, and they look even more complicated than creating a GUI from > >scratch in C++ with a me

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Chris Angelico
On Tue, Jan 12, 2021 at 7:41 AM DonK wrote: > Hi, I'm thinking about learning Python but I'm 74 years old and will > very likely not ever have a programming job again. I used to program > in Visual Basic, C\C++, Delphi, etc. and some obscure "mainframe" > languages. BTW, from my experience, there

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Cameron Simpson
back to the beginning. My problem is that I don't >understand how Python programs are used. (i.e user input and output) >Is Python mainly used for backends? My personal Python use is almost all backend, and on a personal basis I spend most of my time at a command prompt in a terminal

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread dn via Python-list
stretched out over about 1.5 years so I'll > probably need to go back to the beginning. My problem is that I don't > understand how Python programs are used. (i.e user input and output) > Is Python mainly used for backends? > > I've seen some Python gui frameworks lik

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Chris Angelico
but it's been stretched out over about 1.5 years so I'll > probably need to go back to the beginning. My problem is that I don't > understand how Python programs are used. (i.e user input and output) > Is Python mainly used for backends? > Python is used in many different wa

A beginning beginner's question about input, output and . . .

2021-01-11 Thread DonK
to the beginning. My problem is that I don't understand how Python programs are used. (i.e user input and output) Is Python mainly used for backends? I've seen some Python gui frameworks like Tkinter, PyQt, etc. but they look kinda like adding a family room onto a 1986 double wide mobile home,

Re: tkinter and input()

2020-09-29 Thread Terry Reedy
On 9/29/2020 9:48 AM, Pierre Bonville wrote: I have a small problem with the method .quit() of tkinter. What problem? It works for me (3.9 on Win 10). >>> import tkinter as tk >>> r = tk.Tk() >>> b = tk.Button(r, text= r.quit) >>> b = tk.Button(r, text='quit', command=r.quit) >>> b.pack() >>>

tkinter and input()

2020-09-29 Thread Pierre Bonville
y (cm/s): ").grid(row=0) vit = Entry(fen,text = vit0) vit0.set(7.) vit.grid(row=0, column=1) button = Button(fen, text='OK', command=print_par).grid(row=5,column=0) fen.mainloop() vit = float(vitt) init() print(vit) x = np.arange(0,4*np.pi,0.1) y = np.sin(x)

Re: [Beginner] Spliting input

2020-06-25 Thread Andrew Jaffe
Hi, On 25/06/2020 12:50, Bischoop wrote: I try to split input numbers, for example: 12 so I cant add them, I tried separated split(' ') but it's not working. Any ideas how to do this? * numb1,numb2=input("enter 1st and 2nd no ").split() Avg=(int(numb1) + int(numb2)) /

Re: [Beginner] Spliting input

2020-06-25 Thread Peter Otten
Bischoop wrote: > I try to split input numbers, for example: 12 so I cant add them, I > tried separated split(' ') but it's not working. > Any ideas how to do this? > > * > numb1,numb2=input("enter 1st and 2nd no ").split() > Avg=(int(numb1) + int

Re: [Beginner] Spliting input

2020-06-25 Thread Frank Millman
On 2020-06-25 2:13 PM, Bischoop wrote: On 2020-06-25, Andrew Bell wrote: Without knowing the problem you're having, it's hard to answer. This seems generally correct. Error track: Traceback (most recent call last): File "splitting.py", line 1, in numb1,numb2=

  1   2   3   4   5   6   7   8   9   10   >