Re: learning python building 2nd app, need advices

2021-01-13 Thread Phil Boutros
Loris Bennett wrote: > As an Emacs user, personally I would use the command > > M-x untabify > > within Emacs. I assume that Vim has something similar. It does. ':retab' is what you want. If you have tabstop set to a specific value, it'll use that. If not, you can do ':retab ', where

Re: learning python building 2nd app, need advices

2021-01-11 Thread Grant Edwards
On 2021-01-11, 2qdxy4rzwzuui...@potatochowder.com <2qdxy4rzwzuui...@potatochowder.com> wrote: > On 2021-01-11 at 06:34:42 -0800, > pascal z via Python-list wrote: > >> On Monday, January 11, 2021 at 2:07:03 PM UTC, Chris Angelico wrote: > >> > Easy fix: stop looking at the Google Group page. >>

Re: learning python building 2nd app, need advices

2021-01-11 Thread Grant Edwards
On 2021-01-11, pascal z via Python-list wrote: > tab to space on linux is not something easy to do, Nonsense, there's a command _specifically_ for that: $ man expand -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python building 2nd app, need advices

2021-01-11 Thread Terry Reedy
On 1/11/2021 6:46 AM, pascal z via Python-list wrote: tab to space on linux is not something easy to do, IDLE has a tab to spaces command on the format menu. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python building 2nd app, need advices

2021-01-11 Thread 2QdxY4RzWzUUiLuE
On 2021-01-11 at 06:34:42 -0800, pascal z via Python-list wrote: > On Monday, January 11, 2021 at 2:07:03 PM UTC, Chris Angelico wrote: > > Easy fix: stop looking at the Google Group page. > > > > ChrisA > ok, emails show post fine. 10 years ago or something, I was quite > involved to comp.lan

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
On Monday, January 11, 2021 at 2:07:03 PM UTC, Chris Angelico wrote: > On Tue, Jan 12, 2021 at 1:01 AM pascal z via Python-list > wrote: > > > > On Monday, January 11, 2021 at 1:45:31 PM UTC, Greg Ewing wrote: > > > On 12/01/21 1:12 am, pascal z wrote: > > > > As alternative, I pasted it into

Re: learning python building 2nd app, need advices

2021-01-11 Thread Chris Angelico
On Tue, Jan 12, 2021 at 1:01 AM pascal z via Python-list wrote: > > On Monday, January 11, 2021 at 1:45:31 PM UTC, Greg Ewing wrote: > > On 12/01/21 1:12 am, pascal z wrote: > > > As alternative, I pasted it into github and pasted it back into this > > > page, it's ok when pasting but when postin

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
On Monday, January 11, 2021 at 1:45:31 PM UTC, Greg Ewing wrote: > On 12/01/21 1:12 am, pascal z wrote: > > As alternative, I pasted it into github and pasted it back into this page, > > it's ok when pasting but when posting it fails keeping spaces... > The indentation in your last three posts lo

Re: learning python building 2nd app, need advices

2021-01-11 Thread Greg Ewing
On 12/01/21 1:12 am, pascal z wrote: As alternative, I pasted it into github and pasted it back into this page, it's ok when pasting but when posting it fails keeping spaces... The indentation in your last three posts looks fine here in the comp.lang.python newsgroup. If it doesn't look right

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
On Monday, January 11, 2021 at 12:00:28 PM UTC, Loris Bennett wrote: > pascal z writes: > > > tab to space on linux is not something easy to do > > I would argue that you are mistaken, although that depends somewhat on > your definition of 'easy'. > > > , I had to launch windows and use not

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import locale import os import csv from tkinter import messagebox as msg try: from tkinter import * import ttk except: import tkinter as tk #GUI package from tkinter import ttk def fx_BasicListing(): #argx mode = 1 pour basic li

Re: learning python building 2nd app, need advices

2021-01-11 Thread Loris Bennett
pascal z writes: > tab to space on linux is not something easy to do I would argue that you are mistaken, although that depends somewhat on your definition of 'easy'. > , I had to launch windows and use notepad++. There is the Linux command 'expand' , which I have never used, but which sounds

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
tab to space on linux is not something easy to do, I had to launch windows and use notepad++. Anyway, indentation should all be converted to spaces below #!/usr/bin/env python3 # -*- coding: utf-8 -*- import locale import os import csv from tkinter import messagebox as msg try: from tkinte

Re: learning python building 2nd app, need advices

2021-01-11 Thread pascal z via Python-list
tab to space on linux is not something easy to do, I had to launch windows and use notepad++. Anyway, indentation should all be converted to spaces below #!/usr/bin/env python3 # -*- coding: utf-8 -*- import locale import os import csv from tkinter import messagebox as msg try: from tkinter

Re: learning python building 2nd app, need advices

2021-01-08 Thread Richard Damon
On 1/8/21 6:10 PM, pascal z via Python-list wrote: > any way to attach a file because I loose indentation? Don't post via googlegroups, it thinks the world is HTML, which treats spaces in a funny matter. -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python building 2nd app, need advices

2021-01-08 Thread Greg Ewing
On 9/01/21 12:10 pm, pascal z wrote: any way to attach a file because I loose indentation? Indentation usually makes it through here if you indent with spaces rather than tabs. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: learning python building 2nd app, need advices

2021-01-08 Thread pascal z via Python-list
And something important to this app, is about listing files, how to avoid listing small application files parts .ini and binary files so if it's an application it would tell the size of of the folder of this application and not list the content or make it optionnal? -- https://mail.python.org/m

Re: learning python building 2nd app, need advices

2021-01-08 Thread pascal z via Python-list
any way to attach a file because I loose indentation? -- https://mail.python.org/mailman/listinfo/python-list

learning python building 2nd app, need advices

2021-01-08 Thread pascal z via Python-list
Hi, This is a python app I was working on, can you help making it a beautiful looking app like bleachbit or ccleaner? The whole code below (what it does: it lists all folders and files from a specified path and tells some infos like size in mb or gb... and export it to a csv file for further p