Discussion:
[Tutor] tkinter window not showing max, min and close buttons
Chris Roy-Smith
2015-07-21 05:05:07 UTC
Permalink
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.

system Python 2.7 (32 bit)
Ubuntu Linux (unity)

How might I get things to look like in the tutorial?

Thank you
Chris Roy-Smith

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-07-21 07:02:11 UTC
Permalink
Post by Chris Roy-Smith
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.
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Chris Roy-Smith
2015-07-21 07:15:20 UTC
Permalink
Post by Alan Gauld
Post by Chris Roy-Smith
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.
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-07-21 11:52:44 UTC
Permalink
Post by Chris Roy-Smith
Post by Alan Gauld
Post by Chris Roy-Smith
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.
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Chris Roy-Smith
2015-07-21 22:07:17 UTC
Permalink
Post by Alan Gauld
Post by Chris Roy-Smith
Post by Alan Gauld
Post by Chris Roy-Smith
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.
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Chris Roy-Smith
2015-07-21 22:52:17 UTC
Permalink
Post by Chris Roy-Smith
Post by Alan Gauld
Post by Chris Roy-Smith
Post by Alan Gauld
Post by Chris Roy-Smith
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.
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)
Post by Chris Roy-Smith
_______________________________________________
https://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Loading...