gwsmhg
Peter Williams
pwil3058 at bigpond.net.au
Wed Jun 17 21:42:29 CDT 2009
Peter Williams wrote:
> Alex K wrote:
>> Hi!
>>
>> Could anyone please help me installing gwsmhg on Windows? I didn't
>> find ready-to-use binary package, so I tried to run it from Python
>> scripts myself. But I stuck: python25 - yes
>> pygtk2 - yes
>> pygtksourceview - fail
>> pycairo - yes
>> pygobject2 - yes
>>
>> As I understood, pygtksourceview version 1 required?
>
> It shouldn't be as I'm using pygtksourceview-2.4.0-1.fc10.x86_64 on my
> development machine.
>
>> I can't find compiled module for Python. (no problems finding
>> pygtksourceview2, but gwsmhg doesn't work with it)
>>
>
> I suspect this a problem with pygtksourceview2 on Windows rather than
> with gwsmhg. Does it work with other programs?
>
> The next release of gwsmhg will have a work around for this problem by
> using the normal gtk.TextView widget when pygtksourceview import fails.
> This will mean that some minor features (such as a right margin
> indicator at 80 characters) will be lost.
>
> In the meantime, the attached patch to v-0.4 should do the same trick.
>
> Could you let me know if it works? Plus any other problems encountered
> on Windows as I am unable to test on Windows at the moment (although I
> am trying to resurrect an old XP laptop with a broken screen, by
> plugging it into a TV, to do testing in the future)?
I've got this working and tested a patched gwsmhg which revealed that
the patch missed one import of gtksourceview. In
gswmhg_pkg/file_tree.py replace "gtksourceview" with
"gwsmhg_pkg.sourceview" and it should work.
Cheers
Peter
--
Peter Williams pwil3058 at bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
More information about the Mercurial-devel
mailing list