Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: [OT] windows GUI programming question (VB/MFC / WTL / .NET)?

Author: Russell Reagan

Date: 20:04:40 01/15/04

Go up one level in this thread


On January 15, 2004 at 16:17:52, Omid David Tabibi wrote:

>I guess I should give it a try. You know of any good tutorial websites?
>
>And, is it possible to acces a dll from Python? As I always write the core of my
>programs in C/C++ anyway, regardless of the GUI language.

As Andrei mentioned, you can use boost::python (boost is your friend!) to create
python modules written in C/C++. I have seriously considered writing the low
level stuff and exporting it as a chess python module, then writing everything
else in python.

I haven't had the time I'd like to be able to use and learn python more, but
when I have used it, I enjoyed it very much (and I can't remember thinking that
about any other language).

I remember when I was still learning the basic language facilities, and I read
some code from a newsgroup post. I was very suprised that I could understand the
code perfectly, even though the poster used nondescriptive variable names and
data structures I had not yet learned (like dictionaries).

The only drawback I could think of is that if you plan on distributing your
program, it might be a little more headache either for you (to have an installer
that installs python) or for the user (to install python). And that you would
have to distribute the source code. Then I found py2exe, which will create
standalone windows programs from your python script. So...I guess that removes
all of the excuses for me... :)



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.