Re: Command Line Inputs from Windows

2015-01-02 Thread Mark Lawrence
On 02/01/2015 21:29, Chris Angelico wrote: On Sat, Jan 3, 2015 at 6:44 AM, Ken Stewart wrote: This works: I may have some details wrong, and it's likely to be a little different on Win7, but poke around and look for a missing %*. Or, better still, make sure you have the py.exe launcher; then

Re: Command Line Inputs from Windows

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 2:41 PM, James Scholes wrote: > Chris Angelico wrote: >> The latter form is governed by the association. I don't know off-hand >> where that's set in the registry, but you should be able to poke >> around in folder settings to find it (but, thank you very much >> Microsoft,

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Gregory Ewing
Chris Angelico wrote: On Sat, Jan 3, 2015 at 4:15 AM, Rick Johnson wrote: Those who refuse to be a part of the modern world can suffer the troubles of forking the code into their ancient systems -- and i will not loose any sleep over the issue. By the way, is this "loose" part of your "moder

PythonFOSDEM 2015 - Selected Talks

2015-01-02 Thread Stéphane Wirtel
Hi all, We are really proud to announce the official listing for the selected talks of the PythonFOSDEM 2015 (during the FOSDEM 2015 : https://fosdem.org/2015/). This year, it's a real surprise for us, firstly we received 42 proposals for this edition 2015 and secondly, we move to a bigger

Re: Looking for sample python script using Tkinter

2015-01-02 Thread Rick Johnson
On Friday, January 2, 2015 5:03:35 PM UTC-6, access...@gmail.com wrote: > I have a script that I trying to go from command line > entry to interface entry. [...] I have a few requirements > when capturing the data: >Must be able to navigate to a file and capture entire >filename and pathnam

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Rick Johnson
On Friday, January 2, 2015 11:54:49 AM UTC-6, Rustom Mody wrote: > And how does this strange language called English fits > into your rules and (no) special cases scheme? Oh i'm not blind to the many warts of the English language, for it has many undesirable qualities indeed, however, it *is* the

Re: Looking for sample python script using Tkinter

2015-01-02 Thread Christian Gollwitzer
Am 03.01.15 um 00:03 schrieb accessnew...@gmail.com: I have a script that I trying to go from command line entry to interface entry. I am tinkering with Tkinter and want to review some Tkinter interface building scripts. Really basic stuff covering file selection and making some of the data ca

Looking for sample python script using Tkinter

2015-01-02 Thread accessnewbie
I have a script that I trying to go from command line entry to interface entry. I am tinkering with Tkinter and want to review some Tkinter interface building scripts. Really basic stuff covering file selection and making some of the data captured required I am learning how to use Tkinter (Pytho

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 16:22:21 UTC-4, Emil Oppeln-Bronikowski wrote: > On Fri, Jan 02, 2015 at 11:53:26AM -0800, André Roberge wrote: > > How could it then be used? > > Maybe I failed to explain myself fully. What I meant to say is building a > distribution-ready program that utilizes your l

Re: Command Line Inputs from Windows

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 6:44 AM, Ken Stewart wrote: > This works: > python myScript.py arg1 arg2 arg3 > > This doesn’t work: > myScript.py arg1 arg2 arg3 The latter form is governed by the association. I don't know off-hand where that's set in the registry, but you should be able to poke around in

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 4:15 AM, Rick Johnson wrote: > Those who refuse to be a part of the modern world can > suffer the troubles of forking the code into their ancient > systems -- and i will not loose any sleep over the issue. By the way, is this "loose" part of your "modern world", or is that

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 4:54 AM, Rustom Mody wrote: > And how does this strange language called English fits into your rules > and (no) special cases scheme? > > http://www.omgfacts.com/lists/3989/Did-you-know-that-ough-can-be-pronounced-TEN-DIFFERENT-WAYS I learned six, which is no more than ther

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread Emil Oppeln-Bronikowski
On Fri, Jan 02, 2015 at 11:53:26AM -0800, André Roberge wrote: > How could it then be used? Maybe I failed to explain myself fully. What I meant to say is building a distribution-ready program that utilizes your library; not your library being turn into a executable. Or maybe something is going

Command Line Inputs from Windows

2015-01-02 Thread Ken Stewart
Court of King Arthur, I’d appreciate any help you can provide. I’m having problems passing command line parameters from Windows 7 into a Python script (using Python 3.4.2). It works correctly when I call the interpreter explicitly from the Windows command prompt, but it doesn’t work when I e

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 15:22:22 UTC-4, Emil Oppeln-Bronikowski wrote: > On Fri, Jan 02, 2015 at 11:11:05AM -0800, André Roberge wrote: > > Sorry if this was asked before: have you tried building a portable version > using py2exe/Nuitka/etc? I always hit a wall when it comes to building > aga

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread Emil Oppeln-Bronikowski
On Fri, Jan 02, 2015 at 11:11:05AM -0800, André Roberge wrote: Sorry if this was asked before: have you tried building a portable version using py2exe/Nuitka/etc? I always hit a wall when it comes to building against huge libraries like Python-Qt. -- People are like potatos. They die when you

Re: [ANN] EasyGUI_Qt version 0.9

2015-01-02 Thread André Roberge
On Friday, 2 January 2015 06:29:37 UTC-4, wxjm...@gmail.com wrote: > Le mercredi 31 décembre 2014 23:24:50 UTC+1, André Roberge a écrit : > > EasyGUI_Qt version 0.9 has been released. This is the first announcement > > about EasyGUI_Qt on this list. snip > I toyed and I spent a couple of hours w

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Rustom Mody
On Friday, January 2, 2015 10:45:17 PM UTC+5:30, Rick Johnson wrote: > On Friday, January 2, 2015 8:01:50 AM UTC-6, Chris Angelico wrote: > > I'm not sure that I'd want to. Handling case insensitivity is fine > > when you're restricting everything to ASCII, but it's rather harder > > when you allow

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Rick Johnson
On Friday, January 2, 2015 8:01:50 AM UTC-6, Chris Angelico wrote: > I'm not sure that I'd want to. Handling case insensitivity is fine > when you're restricting everything to ASCII, but it's rather harder > when you allow all of Unicode. For instance, U+0069 and U+0049 would > be considered case-i

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Mark Lawrence
On 02/01/2015 14:01, Chris Angelico wrote: On Sat, Jan 3, 2015 at 12:51 AM, Ervin Hegedüs wrote: it may be at the concrete example in OP is better the glob - but I think in most cases the re modul gives more flexibility, I mean the glob modul can handle the upper/lower chars? I'm not sure tha

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 1:10 AM, Ervin Hegedüs wrote: > I didn't want to solve the OP's problem - I just gave an idea. > Here was another possible solution, I think the OP can choose the > right one :) Heh. Fortunately, even in cases where the OP can't recognize the right choice, the rest of pytho

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ervin Hegedüs
Hi Chris, On Sat, Jan 03, 2015 at 01:01:31AM +1100, Chris Angelico wrote: > On Sat, Jan 3, 2015 at 12:51 AM, Ervin Hegedüs wrote: > > it may be at the concrete example in OP is better the glob - but > > I think in most cases the re modul gives more flexibility, I mean > > the glob modul can handl

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Chris Angelico
On Sat, Jan 3, 2015 at 12:51 AM, Ervin Hegedüs wrote: > it may be at the concrete example in OP is better the glob - but > I think in most cases the re modul gives more flexibility, I mean > the glob modul can handle the upper/lower chars? I'm not sure that I'd want to. Handling case insensitivit

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ervin Hegedüs
Hi, On Fri, Jan 02, 2015 at 11:59:17PM +1100, Chris Angelico wrote: > On Fri, Jan 2, 2015 at 11:36 PM, Ervin Hegedüs wrote: > >> And worse, the given re would delete a file named "uni" which doesn't > >> sound ANYTHING like what the OP wanted :-) > > > > yes, you're right - I've missed out a "."

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Chris Angelico
On Fri, Jan 2, 2015 at 11:36 PM, Ervin Hegedüs wrote: >> And worse, the given re would delete a file named "uni" which doesn't >> sound ANYTHING like what the OP wanted :-) > > yes, you're right - I've missed out a "." before the "*". :) Another reason to avoid regexps when you don't actually nee

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ervin Hegedüs
Hi, On Fri, Jan 02, 2015 at 05:35:52AM -0600, Tim Chase wrote: > On 2015-01-02 21:21, Cameron Simpson wrote: > > >def unlinkFiles(): > > >dirname = "/path/to/dir" > > >for f in os.listdir(dirname): > > >if re.match("^unix*$", f): > > >os.remove(os.path.join(dirname, f))

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Tim Chase
On 2015-01-02 21:21, Cameron Simpson wrote: > >def unlinkFiles(): > >dirname = "/path/to/dir" > >for f in os.listdir(dirname): > >if re.match("^unix*$", f): > >os.remove(os.path.join(dirname, f)) > > That is a very expensive way to check the filename in this > particula

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread MRAB
On 2015-01-02 10:21, Cameron Simpson wrote: On 02Jan2015 10:00, Ervin Hegedüs wrote: On Thu, Jan 01, 2015 at 05:13:31PM -0600, Anthony Papillion wrote: I have a function I'm writing to delete wildcarded files in a directory. I tried this: def unlinkFiles(): os.remove("/home/anthony/backup

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ervin Hegedüs
Hi, On Fri, Jan 02, 2015 at 09:21:53PM +1100, Cameron Simpson wrote: > On 02Jan2015 10:00, Ervin Hegedüs wrote: > >On Thu, Jan 01, 2015 at 05:13:31PM -0600, Anthony Papillion wrote: > >>I have a function I'm writing to delete wildcarded files in a directory. > >>I tried this: > >> > >>def unlinkF

Re: Own network protocol

2015-01-02 Thread Connor
Hi, You can use the TML/SIDEX SDK to setup a server on a Raspberry_Pi. It enables peer to peer communcation beased on the Blocks Extensible Exchange protocol. The Python interface is easy to use and you can find tutorial videos on youtube, how to install it on a raspberry_py. Search for "How

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Cameron Simpson
On 02Jan2015 10:00, Ervin Hegedüs wrote: On Thu, Jan 01, 2015 at 05:13:31PM -0600, Anthony Papillion wrote: I have a function I'm writing to delete wildcarded files in a directory. I tried this: def unlinkFiles(): os.remove("/home/anthony/backup/unix*") This doesn't seem to work because i

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ervin Hegedüs
Hi, On Thu, Jan 01, 2015 at 05:13:31PM -0600, Anthony Papillion wrote: > Hi Everyone, > > I have a function I'm writing to delete wildcarded files in a directory. > I tried this: > > def unlinkFiles(): > os.remove("/home/anthony/backup/unix*") > > This doesn't seem to work because it's a wi

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Ben Finney
Anthony Papillion writes: > I have a function I'm writing to delete wildcarded files in a > directory. Is the brute-force method (explicit, easy to understand) good enough? import os import os.path import glob paths_to_remove = glob.glob( os.path.join([

Re: How do I remove/unlink wildcarded files

2015-01-02 Thread Emil Oppeln-Bronikowski
This doesn't seem to work because it's a wildcard filename. What is the proper way to delete files using wildcards? You could try glob[1] and then iterate over collected list (it also gives you a chance to handle errors like unreadable/not owned by you files). [1] https://docs.python.org/2/

How do I remove/unlink wildcarded files

2015-01-02 Thread Anthony Papillion
Hi Everyone, I have a function I'm writing to delete wildcarded files in a directory. I tried this: def unlinkFiles(): os.remove("/home/anthony/backup/unix*") This doesn't seem to work because it's a wildcard filename. What is the proper way to delete files using wildcards? Thanks, Anthony