bzr-config (alpha) ready

Jan Hudec bulb at ucw.cz
Tue Jan 16 20:04:16 GMT 2007


On Tue, Jan 16, 2007 at 01:59:56 +0200, Alexander Belchenko wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Thanks for the feedback!
> 
> Marius Kruger пишет:
> > Hi,
> > its quite cool.
> > it makes it easy to modify the conf file, which is not
> > self documenting at this stage (like for example the Apache conf).
> >
> > I had a little problem with the icon file,
> > the file exists on my system and the content,
> > looks right ( I could edit it with the gimp).
> >
> > so I just commented out those lines
> > and it works.
> >
> > Traceback (most recent call last):
> >  File "bzr-config.py", line 9, in ?
> >    sys.exit(bzrconf.main())
> >  File "/stuph/projects/bzr/bzr.repo/bzr-config/bzrconf/__init__.py", line
> > 20, in main
> >    app = Application([gm, am])
> >  File
> > "/stuph/projects/bzr/bzr.repo/bzr-config/bzrconf/gui/tkgui/__init__.py",
> > line 22, in __init__
> >    self.root.iconbitmap('olive-branches.ico')
> >  File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1451, in wm_iconbitmap
> >    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
> > _tkinter.TclError: bitmap "olive-branches.ico" not defined
> >
> 
> Hmmm. Setting up custom icon for application works well only on win32...
> But it seems that on Linux it requires to use different icon format.
> At this moment I'd like to disable icon on Linux, and later provide
> expected icon for X.

Well, iconbitmap expects a loaded bitmap (or pixmap). You can try iconname,
but I expect you'll have to load the image file first. Note, that you need
iconmask too, because pixmap does not contain transparency information.

Besides, X build of Tk may not understand .ico format, so you may need to use
png or xpm.

-- 
						 Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070116/6303543e/attachment.pgp 


More information about the bazaar mailing list