Building tkinter on Windows

2013-09-08 Thread Westley Martínez
Hello. Can anyone tell me how to build tkinter on Windows? I've downloaded the source, ran Tools/buildbot/external.bat to build the external dependencies. I copied tcl85g.dll and tk85g.dll to PCBuild. I built the Visual Studio solution. Everything built fine without errors. Everything seem

Logical error in filling QTableWidget and filling all of nodes

2013-09-08 Thread Mohsen Pahlevanzadeh
Dear All, I have the following code (PyQt): / searchFrameObject.tableWidget.setRowCount(rowCounter) searchFrameObject.tableWidget.setColumnCount(5) for row in range(rowCounter): for column in range(5): for result in query: item = QtGui.QTableWidgetItem(_f

Re: Installing resource data files and finding them

2013-09-08 Thread Ben Finney
Ben Finney writes: > I will need to change both the build configuration and the application > code, so that instead it allows the resource files to be installed to > an appropriate location on the target system, and seeks the data files > in the correct location when run later. I've used an ugly

Re: Can I trust downloading Python?

2013-09-08 Thread llanitedave
I capitalize "Free" to avoid confusing it with "free as in beer". On Sunday, September 8, 2013 3:01:58 AM UTC, Ben Finney wrote: > Aaron Martin writes: > > > > > Hi, I am thinking about getting a software but it requires python, so > > > that brought up a few questions. Is it safe do download

Re: Weighted choices

2013-09-08 Thread Cameron Simpson
On 08Sep2013 20:21, Dennis Lee Bieber wrote: | However, I would not use a dictionary for this. An ordered list should | work better... for small samples a list containing repeats (by weight) of | each choice, and then use a random integer whose range is 0..len(list)-1 | would suffice. | | c

Re: Can I trust downloading Python?

2013-09-08 Thread Terry Reedy
On 9/8/2013 9:29 AM, Wolfgang Keller wrote: Definitely get the latest version (currently 3.3, soon 3.4). Python keeps getting new features and improvements. Python scripts or applications might not be compatible with Python 3.x and require 2.x instead. And the other way around. -- Terry Jan

Re: Weighted choices

2013-09-08 Thread Antoon Pardon
Op 08-09-13 04:12, Jason Friedman schreef: choices = dict() choices["apple"] = 10 choices["pear"] = 20 choices["banana"] = 15 choices["orange"] = 25 choices["kiwi"] = 30 I want to pick sets of fruit, three in a set, where the chance of selecting a given fruit is proportional to its weight. In t

Re: Can I trust downloading Python?

2013-09-08 Thread Chris Angelico
On Mon, Sep 9, 2013 at 2:08 AM, Charles Hottel wrote: > I think this article is relevant althought the code examples are not Python > but C: > > http://cm.bell-labs.com/who/ken/trust.html That is quite true, and yet not truly helpful here :) It's like pointing out that we could be being fed false

Re: Can I trust downloading Python?

2013-09-08 Thread Charles Hottel
"Steven D'Aprano" wrote in message news:522c6e4e$0$29988$c3e8da3$54964...@news.astraweb.com... > On Sat, 07 Sep 2013 21:04:59 -0600, Michael Torrie wrote: > >> As for trusting python in general, I do trust the python developers, but >> recent NSA revelations call just about all aspects of comput

Re: Can I trust downloading Python?

2013-09-08 Thread Wolfgang Keller
> Definitely get the latest version (currently 3.3, soon 3.4). Python > keeps getting new features and improvements. Python scripts or applications might not be compatible with Python 3.x and require 2.x instead. Sincerely, Wolfgang -- https://mail.python.org/mailman/listinfo/python-list

Re: Can I trust downloading Python?

2013-09-08 Thread Steven D'Aprano
On Sat, 07 Sep 2013 21:04:59 -0600, Michael Torrie wrote: > As for trusting python in general, I do trust the python developers, but > recent NSA revelations call just about all aspects of computing, trust, > and privacy into doubt. "Recent" revelations? Where have you been for the last, oh, 20 o