Re: Python Console Menu

2018-07-31 Thread Juraj Papic via Python-list
Thanks for the links [image: cid:D5DA6341-AA78-4808-9639-F19B8AB3CBE8] *Juraj A. Papic* Arquitecto de Soluciones juraj.pa...@bghtechpartner.com Arias 1639/41. C1429DWA. Bs. As., Argentina. T. +54 11 5080-7400 M. +54 911 3445-6944 Skype juraj.papic www.bghtechpartner.com 2018-07-31 1

Re: Python Console Menu

2018-07-31 Thread Jerry Hill
On Tue, Jul 31, 2018 at 12:31 PM juraj.papic--- via Python-list wrote: > I will check the links thanks for that tips, is there any page where I can > see more examples? I like Doug Hellmann's Python Module of the Week site for in-depth looks at particular modules (including subprocess). If you'

Re: Python Console Menu

2018-07-31 Thread juraj.papic--- via Python-list
El martes, 31 de julio de 2018, 11:56:47 (UTC-3), Tcpip escribió: > Hi all, > > Im new with python, im working on a Python console Menu, I found some > examples on Git, but what I need to understand is how I can call a > subprocess. > > Here is an Example , > > if

RE: Python Console Menu

2018-07-31 Thread David Raymond
ond=tomtom@python.org] On Behalf Of Tcpip via Python-list Sent: Tuesday, July 31, 2018 10:56 AM To: python-list@python.org Subject: Python Console Menu Hi all, Im new with python, im working on a Python console Menu, I found some examples on Git, but what I need to understand is how I

Python Console Menu

2018-07-31 Thread Tcpip via Python-list
Hi all, Im new with python, im working on a Python console Menu, I found some examples on Git, but what I need to understand is how I can call a subprocess. Here is an Example , if choice==1: print "Test SSH Connection (check ssh to all hosts)" ## You can add yo

Re: python console menu level looping

2017-09-25 Thread ROGER GRAYDON CHRISTMAN
On Mon, Sep 24, 2017 09:41 PM, Daiyue Weng wrote: > Hi, I tried to make a menu using print statements in Python 3. The code is >as follows, > >print('insert data into: ') >data_insert_method = ['new collection', 'existing collection'] >for index, elem in enumerate(data_insert_method): >print(ind

Re: python console menu level looping

2017-09-24 Thread Cameron Simpson
On 24Sep2017 21:41, Daiyue Weng wrote: Hi, I tried to make a menu using print statements in Python 3. The code is as follows, One thing, please try to preserve the code indenting in messages. What you pasted is all hard against the left side of the screen. I've tried to repair it. print('

Re: python console menu level looping

2017-09-24 Thread Daiyue Weng
Sry for the unclear formatting, this is the original code with correct format (copy from pycharm), print('insert data into: ') data_insert_method = ['new collection', 'existing collection'] for index, elem in enumerate(data_insert_method): print(index, '-', elem) while 1: how_to_insert =

Re: python console menu level looping

2017-09-24 Thread Daiyue Weng
well, in my case, there is no GUI, and we do not intend to use it since this script is only for internal testing purposes. So I am just wondering how to loop menu in this context. On 24 September 2017 at 22:03, Stefan Ram wrote: > Daiyue Weng writes: > >I am wondering how to loop back to the 1s

python console menu level looping

2017-09-24 Thread Daiyue Weng
Hi, I tried to make a menu using print statements in Python 3. The code is as follows, print('insert data into: ') data_insert_method = ['new collection', 'existing collection'] for index, elem in enumerate(data_insert_method): print(index, '-', elem) while 1: how_to_insert = input('Choose a meth