Exploring Python for next desktop GUI Project

2014-07-24 Thread Noble Bell
I am exploring the idea of creating my next desktop GUI project in Python and 
would like a little advice from you folks about a couple of requirements.

My requirements will be:
1. Needs to be portable across platforms with native LAF (Windows,Linux,OSX)
2. Python 2 or 3? Which will serve me better in the future?

Thanks in advance.
Noble

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Noble Bell
On Thursday, July 24, 2014 10:57:22 AM UTC-5, Noble Bell wrote:
> I am exploring the idea of creating my next desktop GUI project in Python and 
> would like a little advice from you folks about a couple of requirements.
> 
> 
> 
> My requirements will be:
> 
> 1. Needs to be portable across platforms with native LAF (Windows,Linux,OSX)
> 
> 2. Python 2 or 3? Which will serve me better in the future?
> 
> 
> 
> Thanks in advance.
> 
> Noble

I was leaning toward Python 3 and Tkinter. I suppose the best way to do the GUI 
with Tkinter is to just roll-up my sleeves and do it via code rather than with 
the aid of a GUI editor.

Thanks to all of you for your replies. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Exploring Python for next desktop GUI Project

2014-07-24 Thread Noble Bell
On Thursday, July 24, 2014 2:32:04 PM UTC-5, Ian wrote:
> On Thu, Jul 24, 2014 at 1:02 PM, Chris "Kwpolska" Warrick
> 
>  wrote:
> 
> > AFAIK, Qt follows the system style properly, and it looks quite native
> 
> > on every Windows OS.  No idea about ttk though.
> 
> 
> 
> My understanding is that Qt merely emulates the native LAF, although
> 
> it does a good job of it. wxPython on the other hand actually uses
> 
> native widgets wherever possible.

If I were to us wxPython then I would be limited to Python 2.x at present. If I 
were to use PyQt I would have to pay, as I understand the licenses, for it to 
use in commercial programs and/or programs that I ask for donations. If I am 
not mistaken PyQT is available for Python 3. I am not familiar with PySide much 
other than I have heard, though, it is not being updated anymore.

Coming from development experience in Java I know how notorious and ugly GUI 
programming can be at times.

Doing development work at my day job in java/.net I just wanted to use 
something at home to tinker around with and do some hobby programming and 
perhaps sell something or such if I develop something useful. Python has struck 
my fancy.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Exploring Python for next desktop GUI Project

2014-07-25 Thread Noble Bell
On Thursday, July 24, 2014 6:35:02 PM UTC-5, Terry Reedy wrote:
> On 7/24/2014 1:04 PM, Chris "Kwpolska" Warrick wrote:
> 
> 
> 
> > And it might be better to stay with Python 2, there are still
> 
> > things that don't work with Py3k that you might find crucial.
> 
> 
> 
> It is true that there are 3rd-party modules that do not work with 3.x, 
> 
> including a few that one might want to use is a new project.
> 
> 
> 
> It is also true that there are language features in 3.4 that do not work 
> 
> with 2.x, or 3.2- or 3.3, including some that one might want to use in a 
> 
> new project.  For instance, Unicode works much better in 3.3 than in any 
> 
> version before. That is *only* available in 3.3+.
> 
> 
> 
> And it is true that there are 'feature' still in 2.7 that do not work in 
> 
> 3.x.  But these are mostly nuisances that we are better of without.
> 
> 
> 
> -- 
> 
> Terry Jan Reedy

I would like to thank everyone for their insights. You all have been most 
helpful. I believe that I am going to start out using Tk and Python 3.x and see 
where that leads me. If I find that I don't like it I will try PySide. I intend 
on messing around with PyGame and Django in the future as well.
-- 
https://mail.python.org/mailman/listinfo/python-list


Detecting user's installed Python/Tkinter packages during install of app

2014-10-16 Thread Noble Bell
I am thinking of writing a new mac and/or windows application using python 3.x 
and the tkinter gui toolkit. A question that I have is this..

If my application uses a version of python/tkinter that is not on the users 
computer will I be able to detect that during an install and automatically 
install the proper files silently?

Thanks in advance..

Noble
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Detecting user's installed Python/Tkinter packages during install of app

2014-10-16 Thread Noble Bell
On Thursday, October 16, 2014 5:14:44 PM UTC-5, Skip Montanaro wrote:
> On Thu, Oct 16, 2014 at 4:54 PM, Noble Bell  wrote:
> 
> > If my application uses a version of python/tkinter that is not on the users 
> > computer will I be able to detect that during an install and automatically 
> > install the proper files silently?
> 
> 
> 
> You mean, like this?
> 
> 
> 
> % python -c 'import _tkinter ; print _tkinter.TCL_VERSION'
> 
> 8.5
> 
> 
> 
> Skip

Not exactly. I mean when a end user is installing my application can the 
installer detect the presence of the correct version of python and tkinter and 
if they are not present have the installer silently install them to the users 
machine.

NB
-- 
https://mail.python.org/mailman/listinfo/python-list


OS X Menubar in Tkinter

2014-10-19 Thread Noble Bell
I am using Python 3.4 on Mac OS X and Tinter 8.5. Does anyone have any code 
that they would share with me on how to remove the "Python" menu in the menubar 
at the top next to the "apple'? 

I would like to have the name of my program there instead and my menu. I can 
add menus but not sure how to do the special menubar. Any help would be 
appreciated.

NB
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: OS X Menubar in Tkinter

2014-10-20 Thread Noble Bell
On Sunday, October 19, 2014 7:49:34 PM UTC-5, Ned Deily wrote:
> In article ,
> 
>  Noble Bell  wrote:
> 
> > I am using Python 3.4 on Mac OS X and Tinter 8.5. Does anyone have any code 
> 
> > that they would share with me on how to remove the "Python" menu in the 
> 
> > menubar at the top next to the "apple'? 
> 
> > 
> 
> > I would like to have the name of my program there instead and my menu. I 
> > can 
> 
> > add menus but not sure how to do the special menubar. Any help would be 
> 
> > appreciated.
> 
> 
> 
> The name that shows up in the menu is derived by OS X from the 
> 
> application name in the executing application bundle.  If you don't 
> 
> package your program up as an OS X application bundle, defaults will be 
> 
> used; in the case of Python OS X framework builds, Python provides a 
> 
> Python.app within the framework to allow the Python process to be 
> 
> automatically promoted to a full OS X gui process.  Probably the 
> 
> simplest approach is to use py2app to create a double-clickable app with 
> 
> the name you want.  There's an example in an answer to a similar 
> 
> question on Stackoverflow.  And there are some old but still relevant 
> 
> details documented in the Tcl/TkAqua FAQ.
> 
> 
> 
> https://pypi.python.org/pypi/py2app
> 
> http://stackoverflow.com/questions/8695926/remove-default-python-submenu-
> 
> with-tkinter-menu-on-mac-osx
> 
> http://wiki.tcl.tk/12987
> 
> 
> 
> -- 
> 
>  Ned Deily,
> 
>  n...@acm.org

Thank you. I will take a look at all that this afternoon. Seems like I might 
have seen that post on stack overflow but not for sure.
-- 
https://mail.python.org/mailman/listinfo/python-list


Py2App - Could not import Tkinter error from resulting app

2014-10-20 Thread Noble Bell
I have just created a python 3.4 application and created the setup.py file and 
then created an app with py2app.

When I ran the resulting application I get an error in the console telling me 
that it could not import tkinter.

Any ideas on how to correct this? Did I do something wrong?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: OS X Menubar in Tkinter

2014-10-20 Thread Noble Bell
On Monday, October 20, 2014 5:47:14 AM UTC-5, Noble Bell wrote:
> On Sunday, October 19, 2014 7:49:34 PM UTC-5, Ned Deily wrote:
> 
> > In article ,
> 
> > 
> 
> >  Noble Bell  wrote:
> 
> > 
> 
> > > I am using Python 3.4 on Mac OS X and Tinter 8.5. Does anyone have any 
> > > code 
> 
> > 
> 
> > > that they would share with me on how to remove the "Python" menu in the 
> 
> > 
> 
> > > menubar at the top next to the "apple'? 
> 
> > 
> 
> > > 
> 
> > 
> 
> > > I would like to have the name of my program there instead and my menu. I 
> > > can 
> 
> > 
> 
> > > add menus but not sure how to do the special menubar. Any help would be 
> 
> > 
> 
> > > appreciated.
> 
> > 
> 
> > 
> 
> > 
> 
> > The name that shows up in the menu is derived by OS X from the 
> 
> > 
> 
> > application name in the executing application bundle.  If you don't 
> 
> > 
> 
> > package your program up as an OS X application bundle, defaults will be 
> 
> > 
> 
> > used; in the case of Python OS X framework builds, Python provides a 
> 
> > 
> 
> > Python.app within the framework to allow the Python process to be 
> 
> > 
> 
> > automatically promoted to a full OS X gui process.  Probably the 
> 
> > 
> 
> > simplest approach is to use py2app to create a double-clickable app with 
> 
> > 
> 
> > the name you want.  There's an example in an answer to a similar 
> 
> > 
> 
> > question on Stackoverflow.  And there are some old but still relevant 
> 
> > 
> 
> > details documented in the Tcl/TkAqua FAQ.
> 
> > 
> 
> > 
> 
> > 
> 
> > https://pypi.python.org/pypi/py2app
> 
> > 
> 
> > http://stackoverflow.com/questions/8695926/remove-default-python-submenu-
> 
> > 
> 
> > with-tkinter-menu-on-mac-osx
> 
> > 
> 
> > http://wiki.tcl.tk/12987
> 
> > 
> 
> > 
> 
> > 
> 
> > -- 
> 
> > 
> 
> >  Ned Deily,
> 
> > 
> 
> >  n...@acm.org
> 
> 
> 
> Thank you. I will take a look at all that this afternoon. Seems like I might 
> have seen that post on stack overflow but not for sure.

Creating the app with py2app fixed my problem. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: OS X Menubar in Tkinter

2014-10-21 Thread Noble Bell
On Tuesday, October 21, 2014 12:59:08 AM UTC-5, Mark Lawrence wrote:
> On 21/10/2014 02:34, Noble Bell wrote:
 
> I'm pleased to see that you have an answer.  In return would you please 
> 
> access this list via 
> 
> https://mail.python.org/mailman/listinfo/python-list or read and action 
> 
> this https://wiki.python.org/moin/GoogleGroupsPython to prevent us 
> 
> seeing double line spacing and single line paragraphs, thanks.

I was not aware of the issue. Sorry. I will correct my posts in the future. 
Thanks for pointing it out to me.

NB
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Py2App - Could not import Tkinter error from resulting app

2014-10-21 Thread Noble Bell
On Monday, October 20, 2014 11:07:51 PM UTC-5, Terry Reedy wrote:
 
> tkinter imports _tkinter
> 
> _tkinter connects with tclx.dll and tkx.dll (x is variable)
> 
> So one possibility is no accessible tcl/tx.  I have no idea how py2app 
> 
> is supposed to handle this on your undisclosed system.
> -- 
> 
> Terry Jan Reedy

Thanks for the reply. I am using a Mac.
The problem turns out that for some reason when I installed the py2app utility 
it got installed under python 2.7 instead of python 3, which I am using, and 
that caused it to create the bundle under 2.x instead of 3.x. The result was it 
was trying to use python 2.x instead of 3.x syntax.

I realized this problem shortly after I posted the question and tried to go 
back to google groups and delete my post before anyone had seen it.

NB
-- 
https://mail.python.org/mailman/listinfo/python-list