List Info

Thread: Tkinter Icon Suse 10




Tkinter Icon Suse 10
user name
2006-08-25 19:14:49
Hi everyone

It's been a long time since I left Python for .NET 2003, but then again I need it to make an app under Linux Suse 10 and I have a question
I'm trying to put an icon to my window...
Here is the code so far:

###Start Code###

import Tkinter
from Tkinter import *

root = Tk()
root.iconbitmap("Change.ico")
root.mainloop()

###End Code###

It works great under Windows but on an Suse 10 Machine it complains about the file. Is this because the icon files are not the same as in Windows or should I be using another sentence to make it work?
I know it's a dumb question but I'm out of practice and I couldn't find docs on Google (maybe I didn't look where I supposed to)
Ups..I forgot, I'm using Python 2.4.1

Regards
--
Alberto
Tkinter Icon Suse 10
user name
2006-08-25 22:35:24
On Fri, 25 Aug 2006 15:14:49 -0400
"Alberto Troiano" <alberto.troianogmail.com> wrote:

> Hi everyone
> 
> It's been a long time since I left Python for .NET
2003, but then again I
> need it to make an app under Linux Suse 10 and I have a
question
> I'm trying to put an icon to my window...
> Here is the code so far:
> 
> ###Start Code###
> 
> import Tkinter
> from Tkinter import *
> 
> root = Tk()
> root.iconbitmap("Change.ico")
> root.mainloop()
> 
> ###End Code###
> 
> It works great under Windows but on an Suse 10 Machine
it complains about
> the file. Is this because the icon files are not the
same as in Windows or
> should I be using another sentence to make it work?
> I know it's a dumb question but I'm out of practice
and I couldn't find docs
> on Google (maybe I didn't look where I supposed to)
> Ups..I forgot, I'm using Python 2.4.1
> 

Hi Alberto,

you will have to use an xbm bitmap file for the iconbitmap,
like

    root.iconbitmap("Change.xbm")

HTH

Michael
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor
Tkinter Icon Suse 10
user name
2006-08-26 15:19:18
Hey..thanks for the reply

I found some XBM on the PC (Suse) but still no luck
The error says that the bitmap is not defined
Was the code OK or I have to change it?

Thanks

2006/8/25, Alberto Troiano <gmail.com">alberto.troianogmail.com>:
Hi everyone

It's been a long time since I left Python for .NET 2003, but then again I need it to make an app under Linux Suse 10 and I have a question
I'm trying to put an icon to my window...
Here is the code so far:

###Start Code###

import Tkinter
from Tkinter import *

root = Tk()
root.iconbitmap("Change.ico")
root.mainloop()

###End Code###

It works great under Windows but on an Suse 10 Machine it complains about the file. Is this because the icon files are not the same as in Windows or should I be using another sentence to make it work?
I know it's a dumb question but I'm out of practice and I couldn't find docs on Google (maybe I didn't look where I supposed to)
Ups..I forgot, I'm using Python 2.4.1

Regards
--
Alberto



--
Alberto Troiano
Tkinter Icon Suse 10
user name
2006-08-27 16:16:21
I tried that but still the same error. Any other idea?

Rgds,

Alberto

2006/8/25, Alberto Troiano <gmail.com">alberto.troianogmail.com >:
Hi everyone

It's been a long time since I left Python for .NET 2003, but then again I need it to make an app under Linux Suse 10 and I have a question
I'm trying to put an icon to my window...
Here is the code so far:

###Start Code###

import Tkinter
from Tkinter import *

root = Tk()
root.iconbitmap("Change.ico")
root.mainloop()

###End Code###

It works great under Windows but on an Suse 10 Machine it complains about the file. Is this because the icon files are not the same as in Windows or should I be using another sentence to make it work?
I know it's a dumb question but I'm out of practice and I couldn't find docs on Google (maybe I didn't look where I supposed to)
Ups..I forgot, I'm using Python 2.4.1

Regards
--
Alberto



--
Alberto Troiano
Tkinter Icon Suse 10
user name
2006-08-27 17:40:33
I found this mailing list message to be enlightening:
http://mail.python.org/pipermail/python-list/
2005-March/273123.html
On 8/27/06, Alberto Troiano <alberto.troianogmail.com> wrote:
> I tried that but still the same error. Any other idea?
>
> Rgds,
>
> Alberto
>
>
> 2006/8/25, Alberto Troiano <alberto.troianogmail.com
>:
> >
>
> Hi everyone
>
> It's been a long time since I left Python for .NET
2003, but then again I
> need it to make an app under Linux Suse 10 and I have a
question
> I'm trying to put an icon to my window...
> Here is the code so far:
>
> ###Start Code###
>
> import Tkinter
> from Tkinter import *
>
> root = Tk()
> root.iconbitmap("Change.ico")
> root.mainloop()
>
> ###End Code###
>
> It works great under Windows but on an Suse 10 Machine
it complains about
> the file. Is this because the icon files are not the
same as in Windows or
> should I be using another sentence to make it work?
> I know it's a dumb question but I'm out of practice
and I couldn't find docs
> on Google (maybe I didn't look where I supposed to)
> Ups..I forgot, I'm using Python 2.4.1
>
> Regards
> --
>  Alberto
>
>
>
> --
> Alberto Troiano
> _______________________________________________
> Tutor maillist  -  Tutorpython.org
> http://
mail.python.org/mailman/listinfo/tutor
>
>
>


-- 
--H.F.
My penguin is bigger than yours, mister...
_______________________________________________
Tutor maillist  -  Tutorpython.org
http://
mail.python.org/mailman/listinfo/tutor
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )