Re: [Tutor] tkinter window not showing max, min and close buttons

2015-07-21 Thread Alan Gauld

On 21/07/15 06:05, Chris Roy-Smith wrote:

I am working my way through Alan Gauld's tutorial and have just started
the section on GUI. The windows that are created look odd with no title
bar or maximise, minimise or close window button.



The simplest program that should show the icons is:

>>> import Tkinter
>>> top = Tkinter.Tk()
>>> top.mainloop()

What do you  see when you type just those lines at
the >>> prompt?

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] tkinter window not showing max, min and close buttons

2015-07-21 Thread Chris Roy-Smith

On 21/07/15 17:02, Alan Gauld wrote:

On 21/07/15 06:05, Chris Roy-Smith wrote:

I am working my way through Alan Gauld's tutorial and have just started
the section on GUI. The windows that are created look odd with no title
bar or maximise, minimise or close window button.



The simplest program that should show the icons is:

 >>> import Tkinter
 >>> top = Tkinter.Tk()
 >>> top.mainloop()

What do you  see when you type just those lines at
the >>> prompt?


All I get is a white square, with no way to close without using kill

I have done a bit of tinkering and have found that it is only my user 
account that behaves this way.


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] tkinter window not showing max, min and close buttons

2015-07-21 Thread Alan Gauld

On 21/07/15 08:15, Chris Roy-Smith wrote:

On 21/07/15 17:02, Alan Gauld wrote:

On 21/07/15 06:05, Chris Roy-Smith wrote:

I am working my way through Alan Gauld's tutorial and have just started
the section on GUI. The windows that are created look odd with no title
bar or maximise, minimise or close window button.



The simplest program that should show the icons is:

 >>> import Tkinter
 >>> top = Tkinter.Tk()
 >>> top.mainloop()

What do you  see when you type just those lines at
the >>> prompt?


All I get is a white square, with no way to close without using kill

I have done a bit of tinkering and have found that it is only my user 
account that behaves this way.


OK, No idea why that would be happening but it may be a Unity
setting - I use Mint/Cinnamon  because I hated Unity...

Can you try logging out and back in using a different desktop - say XFCE 
and see if that
changes anything. That will hopefully narrow it down to a Unity v User 
settings issue.


In either case it will probably be an issue for another forum since its 
unlikely to be
a Python issue, but please keep me in the loop since it might affect 
other tutorial

users.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Identifying V3 examples

2015-07-21 Thread Alan Gauld

Forwarding to group, please use Reply All when replying to the group.

On 21/07/15 14:27, Jon Paris wrote:

Just about everywhere I had looked Alan!

I had figured out the print() bit pretty early on but some other things were 
more problematic - particularly when 2to3 basically just added commented names 
that effectively said to fix it manually. I subsequently found out that the 
original example (a praised published example) was using poor V2 coding 
practice and that that was the main reason that 2to3 couldn’t convert it.


Name some names.
It's hard to guess without seeing examples.



I guess I had just hoped that there were one or two sites that had taken the 
step of converting V2 examples or at least specialized in V3 examples.


Some tutorial sites (including mine) have v3 versions. But libraries 
take longer to update,

especially since writing documentation tends to be a non-favourite job...

Some libraries, such as Pillow, should be v3 since it was largely 
motivated by v3.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] tkinter window not showing max, min and close buttons

2015-07-21 Thread Chris Roy-Smith

On 21/07/15 21:52, Alan Gauld wrote:

On 21/07/15 08:15, Chris Roy-Smith wrote:

On 21/07/15 17:02, Alan Gauld wrote:

On 21/07/15 06:05, Chris Roy-Smith wrote:

I am working my way through Alan Gauld's tutorial and have just started
the section on GUI. The windows that are created look odd with no title
bar or maximise, minimise or close window button.



The simplest program that should show the icons is:

 >>> import Tkinter
 >>> top = Tkinter.Tk()
 >>> top.mainloop()

What do you  see when you type just those lines at
the >>> prompt?


All I get is a white square, with no way to close without using kill

I have done a bit of tinkering and have found that it is only my user
account that behaves this way.


OK, No idea why that would be happening but it may be a Unity
setting - I use Mint/Cinnamon  because I hated Unity...

Can you try logging out and back in using a different desktop - say XFCE
and see if that
changes anything. That will hopefully narrow it down to a Unity v User
settings issue.

In either case it will probably be an issue for another forum since its
unlikely to be
a Python issue, but please keep me in the loop since it might affect
other tutorial
users.

Thanks Alan, other desktops allow correct operation. Only Unity 3D has 
the fault, Unity-2D works fine. I had not considered that the desktop 
could be the problem. I hope to find the offending file or setting in 
the Unity configuration, as I would prefer to know how to fix this if I 
need to in the future. A clean install and restore isn't an option 
because my backup also has the offending error :( I have narrowed it 
down to 1 machine, so a little detective work should identify the 
offending file.


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Identifying V3 examples

2015-07-21 Thread Jon Paris
The one example I specifically remember was this one 
http://code.activestate.com/recipes/532908-text-to-pdf-converter-rewrite/ - I 
happened to be looking for a simple pdf utility and this one was well reviewed. 
I subsequently have been told that the parts that 2to3 had trouble with were 
bad practice to begin with - but what do I know. Most of the other examples 
2to3 converted (once I discovered it existed and how to use it in my setup) or 
I was able to decipher myself.

I’ll take a look at your tutorial - thanks.


Jon Paris
jon.f.pa...@gmail.com



On Jul 21, 2015, at 1:35 PM, Alan Gauld  wrote:

> Forwarding to group, please use Reply All when replying to the group.
> 
> On 21/07/15 14:27, Jon Paris wrote:
>> Just about everywhere I had looked Alan!
>> 
>> I had figured out the print() bit pretty early on but some other things were 
>> more problematic - particularly when 2to3 basically just added commented 
>> names that effectively said to fix it manually. I subsequently found out 
>> that the original example (a praised published example) was using poor V2 
>> coding practice and that that was the main reason that 2to3 couldn’t convert 
>> it.
> 
> Name some names.
> It's hard to guess without seeing examples.
> 
> 
>> I guess I had just hoped that there were one or two sites that had taken the 
>> step of converting V2 examples or at least specialized in V3 examples.
> 
> Some tutorial sites (including mine) have v3 versions. But libraries take 
> longer to update,
> especially since writing documentation tends to be a non-favourite job...
> 
> Some libraries, such as Pillow, should be v3 since it was largely motivated 
> by v3.
> 
> -- 
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
> 

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] tkinter window not showing max, min and close buttons

2015-07-21 Thread Chris Roy-Smith

On 22/07/15 08:07, Chris Roy-Smith wrote:

On 21/07/15 21:52, Alan Gauld wrote:

On 21/07/15 08:15, Chris Roy-Smith wrote:

On 21/07/15 17:02, Alan Gauld wrote:

On 21/07/15 06:05, Chris Roy-Smith wrote:

I am working my way through Alan Gauld's tutorial and have just
started
the section on GUI. The windows that are created look odd with no
title
bar or maximise, minimise or close window button.



The simplest program that should show the icons is:

 >>> import Tkinter
 >>> top = Tkinter.Tk()
 >>> top.mainloop()

What do you  see when you type just those lines at
the >>> prompt?


All I get is a white square, with no way to close without using kill

I have done a bit of tinkering and have found that it is only my user
account that behaves this way.


OK, No idea why that would be happening but it may be a Unity
setting - I use Mint/Cinnamon  because I hated Unity...

Can you try logging out and back in using a different desktop - say XFCE
and see if that
changes anything. That will hopefully narrow it down to a Unity v User
settings issue.

In either case it will probably be an issue for another forum since its
unlikely to be
a Python issue, but please keep me in the loop since it might affect
other tutorial
users.


Thanks Alan, other desktops allow correct operation. Only Unity 3D has
the fault, Unity-2D works fine. I had not considered that the desktop
could be the problem. I hope to find the offending file or setting in
the Unity configuration, as I would prefer to know how to fix this if I
need to in the future. A clean install and restore isn't an option
because my backup also has the offending error :( I have narrowed it
down to 1 machine, so a little detective work should identify the
offending file.


Problem solved.
Unity settings are stored using GConf.
Resetting Unity with the following:

dconf reset -f /org/compiz/

then log out and back in.
This fixed a few other mysteries at the same time (some windows could 
not be moved)

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor




___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Identifying V3 examples

2015-07-21 Thread Alan Gauld

On 21/07/15 21:19, Jon Paris wrote:

The one example I specifically remember was this one 
http://code.activestate.com/recipes/


For Activestate check the languages tab.
You can choose to see only Python 2 or Python 3 recipes.

HTH

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor