Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Cucole Lee
Why Thinter? You can try wxpython. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie wrote: >The Sendmail MTA has been ported to many platforms including windows. >But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to look at eg. Exim + Cygwin, and resort to a Linux appliance if

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards wrote: >Unless you've got a static IP address, a domain name, and a valid MX >record that will match up when they do a reverse DNS lookup, it's >pretty unlikely that you're going to have much luck running an SMTP >server. Most other SMTP se

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards wrote: >Unless you've got a static IP address, a domain name, and a valid MX >record that will match up when they do a reverse DNS lookup, it's >pretty unlikely that you're going to have much luck running an SMTP >server. Most other SMTP ser

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:11 PM, Gilles wrote: > On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie > wrote: >>Having spent a long time managing e-mail servers, everything Ivan said >>in his reply is true as well. I had forgotten a lot of that since I >>haven't been running my own mail server (

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Aseem Bansal
@Chris “Kwpolska” Warrick Yeah, as I mentioned I was able to use it to create .py files and the GUI ran. But when I made the .exe from the .py using cxfreeze it created exe but the GUI did not run. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico wrote: >One thing to check when you change how you send mail is your SPF >record. I run the mail server for kepl.com.au and have set its SPF to: > >"v=spf1 ip4:122.107.147.136 ip4:203.214.67.43 ip4:192.168.0.0/16 -all" > >If your SPF is as strict

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:38 PM, Gilles wrote: > On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico > wrote: >>One thing to check when you change how you send mail is your SPF >>record. I run the mail server for kepl.com.au and have set its SPF to: >> >>"v=spf1 ip4:122.107.147.136 ip4:203.214.67

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Eric S. Johansson
On Mon, 22 Jul 2013 08:11:25 -0400, Gilles wrote: On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie wrote: The Sendmail MTA has been ported to many platforms including windows. But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to look at

Re: Play Ogg Files

2013-07-22 Thread Devyn Collier Johnson
On 07/21/2013 10:10 AM, Stefan Behnel wrote: Devyn Collier Johnson, 20.07.2013 14:25: On 07/20/2013 12:21 AM, Stefan Behnel wrote: Devyn Collier Johnson, 20.07.2013 03:06: I am making a chatbot that I host on Launchpad.net/neobot. I am currently converting the engine from BASH code to Python3

Re: Play Ogg Files

2013-07-22 Thread Devyn Collier Johnson
On 07/21/2013 01:50 AM, Chris Angelico wrote: On Sun, Jul 21, 2013 at 3:39 PM, David Hutto wrote: With linux you can have your package listed in synaptic, and can use with a sudo apt-get install whatever ogg player like ogg123, and windows I don't work with that much, but I'm pretty sure I've

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:51 AM, Chris Angelico wrote: >> Thanks for the tip. I didn't know about SPF >> http://en.wikipedia.org/wiki/Sender_Policy_Framework > > It's a great way of detecting legit vs forged mail. If anyone tries to > send mail purporting to be from anyth...@kepl.com.au and the receiving >

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:08 AM, Michael Torrie wrote: > On 07/22/2013 06:51 AM, Chris Angelico wrote: >>> Thanks for the tip. I didn't know about SPF >>> http://en.wikipedia.org/wiki/Sender_Policy_Framework >> >> It's a great way of detecting legit vs forged mail. If anyone tries to >> send mail

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Grant Edwards
On 2013-07-22, Gilles wrote: > On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards > wrote: >>Unless you've got a static IP address, a domain name, and a valid MX >>record that will match up when they do a reverse DNS lookup, it's >>pretty unlikely that you're going to have much luck running a

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:19 AM, Gilles wrote: > On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards > wrote: >> Unless you've got a static IP address, a domain name, and a valid MX >> record that will match up when they do a reverse DNS lookup, it's >> pretty unlikely that you're going to have much lu

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread Kevin Walzer
On 7/22/13 4:54 AM, Cucole Lee wrote: Why Thinter? You can try wxpython. Well, it's partly a matter of taste, but I for one find wxPython's API...inelegant. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- http://mail.python.or

Re: could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread Robert Kern
On 2013-07-22 16:44, dmitre...@gmail.com wrote: Hi all, could you change PYPI downloads number for not-uploaded packages from zeros to real posivive numbers? For example, my projects download links are binded to my website , and thus people see misleading zeros, e.g. https://pypi.python.org/pyp

could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread dmitrey15
Hi all, could you change PYPI downloads number for not-uploaded packages from zeros to real posivive numbers? For example, my projects download links are binded to my website , and thus people see misleading zeros, e.g. https://pypi.python.org/pypi/openopt Downloads (All Versions): 0 downloads in

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:21 AM, Michael Torrie wrote: > My mail server did a number of things: > 1. ensure IP address of sending server has a reverse name (domain didn't > particularly matter) > 2. ensure the HELO address in SMTP matches IP address of sending server > 3. check sender IP address

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 2:25 AM, Michael Torrie wrote: > On 07/22/2013 08:15 AM, Chris Angelico wrote: >> If legit mail is rejected for failing an SPF check, it's the sending >> admin's problem, not yours. You should never have problems with it if >> it's set up correctly. And since rejected mail

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Kevin Walzer
On 7/21/13 10:42 AM, Gilles wrote: Hello Every once in a while, my ISP's SMTP server refuses to send perfectly legit e-mails because it considers them as SPAM. So I'd like to install a dead-simple SMTP server on my XP computer just to act as SMTP backup server. All I'd need is to change

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:11 AM, Gilles wrote: > On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie > wrote: >> The Sendmail MTA has been ported to many platforms including windows. >> But... > > Thanks for the tip. Since I couldn't find a good, basic, native > Windows app, I was indeed about to look at e

Re: Homework help requested, thanks to everyone.

2013-07-22 Thread Skip Montanaro
John> Another project I thought of was a Pig Latin translator. (But do kids today John> even know what Pig Latin is? Am I showing my age?) Chris> Even if they don't, they'll grok it no problem. It's simple enough. Google for "Python pig latin" to see a lot of "prior art". And it might be usefu

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 08:15 AM, Chris Angelico wrote: > If legit mail is rejected for failing an SPF check, it's the sending > admin's problem, not yours. You should never have problems with it if > it's set up correctly. And since rejected mail gets reported to the > transmitting MTA, you don't need to dr

Re: odd behavoiur seen

2013-07-22 Thread Chris Hinsley
On 2013-07-22 18:36:41 +, Chris Hinsley said: Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] Other clues, I use it on a recursive function: @memoize(64) def next_move(board, colour, alpha, beta, ply): if ply <=

odd behavoiur seen

2013-07-22 Thread Chris Hinsley
Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] def memoizer(*args, **kwargs): key = str(args) + str(kwargs) if key in lru_cache: lru_list.remove(key) lru_list.append(

How to read a make file in python and access its elements

2013-07-22 Thread san
How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know how to load the .mk file and acce

Re: odd behavoiur seen

2013-07-22 Thread Peter Otten
Chris Hinsley wrote: > On 2013-07-22 18:36:41 +, Chris Hinsley said: > >> Folks, I have this decorator: >> >> def memoize(maxsize): >> def _memoize(func): >> lru_cache = {} >> lru_list = [] > > Other clues, I use it on a recursive function: > > @memoize(64) > def next_m

Re: odd behavoiur seen

2013-07-22 Thread Chris Hinsley
On 2013-07-22 19:47:33 +, Peter Otten said: Chris Hinsley wrote: On 2013-07-22 18:36:41 +, Chris Hinsley said: Folks, I have this decorator: def memoize(maxsize): def _memoize(func): lru_cache = {} lru_list = [] Other clues, I use it on a recursive function: @memoize(64) def next

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Nobody
On Mon, 22 Jul 2013 14:19:57 +0200, Gilles wrote: > Incidently, how do ISP MTAs find whether the remote MTA is legit or > running on some regular user's computer? Look up the IP address in a database. If they don't have a database, perform a reverse DNS lookup and reject anything which looks like

Re: could you change PYPI downloads number for not-uploaded packages?

2013-07-22 Thread Ben Finney
Robert Kern writes: > On 2013-07-22 16:44, dmitre...@gmail.com wrote: > > For example, my projects download links are binded to my website , > > and thus people see misleading zeros […] > In short, if you want to have download counts, you will need to host > your package downloads from PyPI its

Re: How to read a make file in python and access its elements

2013-07-22 Thread Ben Finney
san writes: > I have a scenario, where i need to load the make file and access its > elements. What do you mean by “elements” of a make file? Is that a term with a specific meaning, or do you mean some particular parts of the make file? > I have tried reading the make file as text file and pa

Re: How to read a make file in python and access its elements

2013-07-22 Thread Dave Angel
On 07/22/2013 03:09 PM, san wrote: How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know h

Re: Play Ogg Files

2013-07-22 Thread alex23
On 20/07/2013 10:25 PM, Devyn Collier Johnson wrote: I have not heard of Pyaudio; I will look into that. As for Pygame, I have not been able to find any good documentation for playing audio files. Plus, I recently learned that Pygame is not Python3 compatible. Another option would be Pyglet, wh

Re: How to read a make file in python and access its elements

2013-07-22 Thread alex23
On 23/07/2013 5:09 AM, san wrote: How to read/load the cmake file in python and access its elements. I have a scenario, where i need to load the make file and access its elements. I have tried reading the make file as text file and parsing it,but its not the ideal solution Please let me know ho

How to tick checkboxes with the same name?

2013-07-22 Thread malayrev
I faced a problem: to implement appropriate search program I need to tick few checkboxes which turned out to have the same name (name="a", id="a1","a2","a3","a4"). Set_input('a', True) does not work (I use Grab library), this command leads to the error "checkboxgroup must be set to a sequence".

Re: How to tick checkboxes with the same name?

2013-07-22 Thread Joel Goldstick
On Tue, Jul 23, 2013 at 12:10 AM, wrote: > I faced a problem: to implement appropriate search program I need to tick few > checkboxes which turned out to have the same name (name="a", > id="a1","a2","a3","a4"). Set_input('a', True) does not work (I use Grab > library), this command leads to th

Re: How to tick checkboxes with the same name?

2013-07-22 Thread Steven D'Aprano
On Mon, 22 Jul 2013 21:10:18 -0700, malayrev wrote: > I faced a problem: to implement appropriate search program I need to > tick few checkboxes which turned out to have the same name (name="a", > id="a1","a2","a3","a4"). Set_input('a', True) does not work (I use Grab > library) Instructions for

Re: Play Ogg Files

2013-07-22 Thread David Hutto
Devyn, are you just trying to use this in an application? Would a browser based web app work. I ask because there will still be some sort of DB interaction, so could it be an option to go with a browser command? On Mon, Jul 22, 2013 at 8:37 PM, alex23 wrote: > On 20/07/2013 10:25 PM, Devyn Coll

Re: Beginner - GUI devlopment in Tkinter - Any IDE with drag and drop feature like Visual Studio?

2013-07-22 Thread David Hutto
There is the matter of how much time you want to put into this. There is the standard gtk library for python, and in the future, as soon as I'm well enough to focus, having recent problems, I'll be using the blender game engine to enhance my software to a 3d graphical form...to make my apps pop. S

PyGLet on Python 3

2013-07-22 Thread John Ladasky
On 07/21/2013 08:10 PM, Joseph Clark wrote: > John, have you taken a look at pyglet? It's an alternative to pygame and I > found it pretty slick once I got the hang of it. There is a development > version that's compatible with python 3 and I've never had a bug with it. It > wraps OpenGL itse

tkinter progress bar

2013-07-22 Thread hsiwrek
Hi, How can I add a tkinter progress bar in python 3.2 to start before a loop and end after it. I am looking for a very simple solution. def MyFunc(): Start progress bar for fileName in fileList: … End progress bar Thanks a lot in advance. -- http://mail.python.org/mailman