bzr-config (alpha) ready

Alexander Belchenko bialix at ukr.net
Tue Jan 16 20:17:04 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jan Hudec пишет:
> 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 Right now   __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.
> 
Michael Lange in Tkinter-discuss mailing list wrote:
> Hi Alexander,
>
> on linux you will need the fully qualified path to an .xbm bitmap preceded by an "@",
> like self.root.iconbitmap('@/usr/share/icons/olive-branches.xbm').
>
> I hope this helps
>
> Michael

I need some time to implement this. Right now I just disable icon on non-windows
for compatibility.

- --
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFrTLAzYr338mxwCURAro9AKCIY0FrYXHXrRLeqSiW06FUC1N2YACeNOis
s/q58ZpEvmHfqyB9l9dO1u0=
=nEO0
-----END PGP SIGNATURE-----




More information about the bazaar mailing list