Opened 16 years ago
Closed 15 years ago
#588 closed defect (fixed)
wxGUI: About GRASS GIS window doesn't let you view full lic or devs
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.4.0 |
Component: | Compiling | Version: | 6.4.0 RCs |
Keywords: | wingrass, license | Cc: | martinl |
CPU: | Unspecified | Platform: | MSWindows XP |
Description
In the latest wingrass installers if you do help-> about grass gis you get a window with License >> and Developers >> buttons. they expand but do not have scrollable boxes so you only see the first few lines of text.
Hamish
Attachments (4)
Change History (19)
comment:1 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
follow-up: 4 comment:2 by , 16 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
reopening ticket. the job ain't done until changes have been committed into the SVN repository.
thanks for the patch; context diffs are ok, but fyi 'diff -u' is preferable.
comment:3 by , 16 years ago
Keywords: | wingrass license added |
---|
... oh yeah, I'll mention that the old setup works perfectly in latest Linux devbr6 (opens new popup window), it's only on MS-Windows where the expansion breaks.
comment:4 by , 16 years ago
Replying to hamish:
reopening ticket. the job ain't done until changes have been committed into the SVN repository.
thanks for the patch; context diffs are ok, but fyi 'diff -u' is preferable.
yes, next time please attach patches produced 'diff -u' format not patched files...
Martin
follow-up: 6 comment:5 by , 16 years ago
appologies. i selected original files by accident. will keep that in mind. am i supposed to commit something to svn, or did someone do so already?
l.
comment:6 by , 16 years ago
Replying to xpolok00:
appologies. i selected original files by accident. will keep that in mind. am i supposed to commit something to svn, or did someone do so already?
It's not so easy, you need write access to SVN first [1]. Good start is to attach diffs against selected SVN branch, it will simplify life of developers...
Martin
[1] http://trac.osgeo.org/grass/wiki/HowToContribute#WriteaccesstotheMainGRASS-SVNrepository
by , 16 years ago
Attachment: | wxgui.py.diff added |
---|
Patch of gui/wxpython/wxgui.py from grass-6.4.svn_src_snapshot_2009_05_23.tar.gz
by , 16 years ago
Attachment: | menudata.xml.diff added |
---|
Patch of gui/wxpython/xml/menudata.xml from grass-6.4.svn_src_snapshot_2009_05_23.tar.gz
follow-up: 8 comment:7 by , 15 years ago
Completely broken on my Mac now. I get the error...
Traceback (most recent call last):
File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/wxgui.py", line 551, in OnAboutGRASS
copyrightFile = open(os.path.join(os.getenv("GISBASE"), "COPYING"), 'r') IOError : [Errno 2] No such file or directory: '/Applications/Grass/GRASS-6.4.app/Contents/MacOS/COPYING'
Why not just make this an HTML file and have it open like the rest of the help files?
Michael
comment:8 by , 15 years ago
Replying to cmbarton:
Completely broken on my Mac now. I get the error...
Traceback (most recent call last):
File "/Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc
/wxpython/wxgui.py", line 551, in OnAboutGRASS
copyrightFile = open(os.path.join(os.getenv("GISBASE"), "COPYING"), 'r') IOError : [Errno 2] No such file or directory: '/Applications/Grass/GRASS-6.4.app/Contents/MacOS/COPYING'
It's seems to me that you are reporting another bug - missing COPYING file in your installation (which is critical issue).
Why not just make this an HTML file and have it open like the rest of the help files?
Do you mean "about window"? Why not use the default widget which is provided by wxPython library?
Martin
follow-up: 12 comment:9 by , 15 years ago
Fixed in develbranch_6 r39300. The AboutBox dialog is too small for all the GRASS information and you can't add scrollbars. So I've made this a tabbed notebook that visually matches the rest of the interface. Please test. If it works on other platforms (Linux and Windows), I'll backport to releasebranch and trunk.
Michael
follow-up: 11 comment:10 by , 15 years ago
Component: | wxGUI → Compiling |
---|
Backported to releasebranch and trunk.
Changing to compiling because the requisite files have not been getting into the compiled binaries in Windows and Mac. Once the files (AUTHORS, COPYING, GPL.TXT, etc.) get copied into the binaries correctly, they will also display in full.
Michael
comment:11 by , 15 years ago
Replying to cmbarton:
Backported to releasebranch and trunk.
I'm not too crazy about the aesthetics of the fix (tabs come out on a dark grey background for me), but it solves the main problem and I don't have any better ideas to offer.
Changing to compiling because the requisite files have not been getting into the compiled binaries in Windows and Mac. Once the files (AUTHORS, COPYING, GPL.TXT, etc.) get copied into the binaries correctly, they will also display in full.
does 'g.version -c' display the GPL message and project contact details on Mac ??? The Makefile should be copying that stuff into $(ETC), not the packager.
Hamish
comment:12 by , 15 years ago
Cc: | added |
---|
Replying to cmbarton:
Fixed in develbranch_6 r39300. The AboutBox dialog is too small for all the GRASS information and you can't add scrollbars. So I've made this a tabbed notebook that visually matches the rest of the interface. Please test. If it works on other platforms (Linux and Windows), I'll backport to releasebranch and trunk.
I am no happy with this change. I would really incline to use *standard* dialogs as much as possible. I hope that the reported bug can be fixed without removing wx.AboutDialog
.
Martin
comment:13 by , 15 years ago
There are 2 things. The worst bug is that the needed files are/were not being copied into the binaries by the makefile. William says he has fixed this on the Mac (I haven't yet tested) but I saw comments on the same issue in Windows today.
The 2nd thing is that the information in the files (AUTHOR, COPYING, etc) is too big to go into a standard AboutDialog. It is cut off and there is no way to add scroll bars to the AboutDialog. Even with the new menu buttons, it is still too big (the AUTHORS and GPL.TXT files are several screen pages long). So this just won't fit into a standard AboutDialog and we have to do something custom in any case. I thought the flatnotebook at least matches the rest of the interface, but if someone wants to try another kind of control that's OK. However, any control used for this information will need scrollbars at the least and it would be better to break the information up into its natural chunks (represented by the files in $GISBASE).
I'd recommend either changing this to closed or at least to enhancement rather than defect once the Makefiles are fixed on Mac and Windows.
Michael
comment:14 by , 15 years ago
grass64.svn rev39432 self compiled in the osgeo4w-stack
info, copyright, license, authors are readable
closing the report?
best regards helli
comment:15 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Sure. I'll close it.
Michael
I've downloaded Grass 6.4.0 form SVN (grass-6.4.svn_src_snapshot_2009_05_23.tar.gz) and was able to reprodice the bug. I found out there's no way (AFAIK) to add scrollbars to wx.AboutBox, so i solved the bug by adding two new menu items, "GRASS GIS Authors" and "GRASS GIS License" and somewhat modified the original about box.
modified files are:
diff patch for wxgui.py:
diff patch for menudata.xml:
i'm attaching both files just in case ...