Getting started...

I recently installed wxPython 2.8.12.1 on a Windows Vista (32-bit) platform and went through all of their demos to test the installation --- no errors occurred.
These were all run with Python 2.6.6 and these demos are great --- some very good work!

I am in the early stages of the design of a GUI layout (using wxPython) to play Sudoku in which the user can enter values for any of the 81 "cells" and then try to find its solution (I already have some Python code for the solution of Sudoku puzzles). I have looked at some web postings on Python based GUI's for Sudoku; but, would like to implement my own GUI design.

My questions:
1) Is wxPython the right tool for this?
2) If I manage to create the GUI with wxPython, can I transform it into a *.exe that will execute on almost any Win32 platform?

Please keep in mind this is will be my first attempt to write a wxPython GUI and perhaps this might be too difficult for my first wxPython GUI.

Any advice, tips, etc. would be welcomed.

Best regards...

I

to play Sudoku

My questions:
1) Is wxPython the right tool for this?

See wxLUA, there's a sudoku example w/ source.

2) If I manage to create the GUI with wxPython, can I transform it into a *.exe
that will execute on almost any Win32 platform?

I guess py2exe will do the trick (although I don't use w$).

···

On Sat, 21 Jan 2012 19:35:21 +0100 Virgil Stokes <vs@it.uu.se> wrote:

--
Obviously the only rational solution to your problem is suicide.

If you search the archive of this list, I think there have been 2 or 3 threads about sudoku games in the last few years.

···


Best Regards,
Michael Moriarity

I recently installed wxPython 2.8.12.1

Welcome!

These were all run with Python 2.6.6 and these demos are great — some very good work!

Yes, the Demo is great.

I am in the early stages of the design of a GUI layout (using wxPython) to play Sudoku …

My questions:

  1. Is wxPython the right tool for this?

Yes. (Among others of course).

  1. If I manage to create the GUI with wxPython, can I transform it into a *.exe that will execute on almost any Win32 platform?

Yes–at least I think it should for all after, say, WinXP. Less sure about older versions. I’ve tested it on XP, Vista, and 7 and it’s fine. As was mentioned, py2exe is the way to do that. If you try that, I highly recommend GUI2Exe by Andrea Gavana, makes things so much easier, it’s great.

Please keep in mind this is will be my first attempt to write a wxPython GUI and perhaps this might be too difficult for my first wxPython GUI.

Maybe the part about drawing the playing board itself could be a harder, since it is not just placing a few common widgets on a panel.

Any advice, tips, etc. would be welcomed.

The author of a Sodoku application in wxPython is on this list and may have some advice for you. One thing people might tell you is to draw the board yourself using wx.DC, which is a bit of learning in its own right. Otherwise, I’d say dive in, and as you need help, write the list, particularly if you can include a small runnable sample of whatever problems you might encounter. Good luck.

Che

···

On Sat, Jan 21, 2012 at 1:35 PM, Virgil Stokes vs@it.uu.se wrote:

Beside py2exe there are numerous ways to pack your application into an
executable,
GUI2Exe enables you to interact with most of them, although you need
to download the source for every such method.

I myself prefer to use pyinstaller for packing all i need into one
executable (you don't need to build a setup script in this case).

Tips:
1. If you are interested that your app will work with all platform
(32 / 64 bit),
you should compile your application with python 32 bit (as you wrote).
2. If you are working multi-threaded, you should create your
executable after including the freeze_support() command when you start
your main.

···

On Jan 22, 6:07 am, C M <cmpyt...@gmail.com> wrote:

On Sat, Jan 21, 2012 at 1:35 PM, Virgil Stokes <v...@it.uu.se> wrote:
> I recently installed wxPython 2.8.12.1

Welcome!

> These were all run with Python 2.6.6 and these demos are great --- some
> very good work!

Yes, the Demo is great.

> I am in the early stages of the design of a GUI layout (using wxPython) to
> play Sudoku ...

> My questions:
> 1) Is wxPython the right tool for this?

Yes. (Among others of course).

> 2) If I manage to create the GUI with wxPython, can I transform it into a
> *.exe that will execute on almost any Win32 platform?

Yes--at least I think it should for all after, say, WinXP. Less sure about
older versions. I've tested it on XP, Vista, and 7 and it's fine. As was
mentioned, py2exe is the way to do that. If you try that, I highly
recommend GUI2Exe by Andrea Gavana, makes things so much easier, it's great.

> Please keep in mind this is will be my first attempt to write a wxPython
> GUI and perhaps this might be too difficult for my first wxPython GUI.

Maybe the part about drawing the playing board itself could be a harder,
since it is not just placing a few common widgets on a panel.

> Any advice, tips, etc. would be welcomed.

The author of a Sodoku application in wxPython is on this list and may have
some advice for you. One thing people might tell you is to draw the board
yourself using wx.DC, which is a bit of learning in its own right.
Otherwise, I'd say dive in, and as you need help, write the list,
particularly if you can include a small runnable sample of whatever
problems you might encounter. Good luck.

Che

Thanks Che for your prompt and informative response.

Best regards, --V
···

wxPython-users+unsubscribe@googlegroups.com
http://groups.google.com/group/wxPython-users?hl=en :slight_smile:

Hey folks,

I am in the early stages of the design of a GUI layout (using wxPython) to
play Sudoku ...

The author of a Sodoku application in wxPython is on this list and may have
some advice for you.

I"m one of those, and there are probably others!

I've enclosed mine. I really should put in in the wiki or something...

One thing people might tell you is to draw the board
yourself using wx.DC, which is a bit of learning in its own right.

Indeed -- that's what mine does -- I htink it's the way to go -- you
could use text controls, but you woun'dt have the control ober the
look.

My version also used numpy arrays to store the board -- demonstrating
some nifty features of that package as well.

particularly if you can include a small runnable sample of whatever problems

yup:

http://wiki.wxpython.org/MakingSampleApps

-Chris

sudoku-chb.py (10.7 KB)

···

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov