| ||
| ° Home ° Forums ° Statistics ° Sign Up ° Search ° Manual ° |
| PM forums / Using GanttPV / GanttPV works on Linux |
| Author | Message |
| pm5 Member |
# Posted: 2 Oct 2004 05:58:46 - Hi, Thought you might want to know that, I tried GanttPV on my Linux desktop, and so far it works fine. My platform is Debian testing (sarge) with Python 2.3.4, wxGTK 2.4.2.6. I just type 'python Gantt.py' in command line. At first the it showed a lot of exception tracebacks, but later I found a 'is24' variable in GanttReport.py and set it to 1, and then all went fine. |
| Brian Member |
# Posted: 3 Oct 2004 13:36:20 - That's great news. I tried to code GanttPV so that it would also run on Linux, but didn't have ready access to a Linux machine and couldn't test it. The wxPython libraries changed part of the drawing interface when they moved from 2.4 to 2.5. I retained the 2.4 version code in case someone needed it. (Good thing I did!) The variable 'is24' selects either the 2.4 or 2.5 syntax. Does the program remember where the scripts are? Saving that information is one of the few things that differs by platform. |
| pm5 Member |
# Posted: 26 Oct 2004 07:12:26 - Sorry I've been quite busy this month. About the scripts, do you mean once I've used 'Find Scripts' to add them in the menu, next time I startup GanttPV they will remain there? In that case it doesn't work. I don't even know it works this way! |
| Brian Member |
# Posted: 9 Nov 2004 19:51:22 - That's the way it is supposed to work, but it doesn't always. On my test Mac OS X 10.2.8, GanttPV remembers where the scripts are. On my new test Windows 2000 machine, it doesn't. I will track down and fix the problem eventually, but other changes have a higher priority at the moment. |
| turnerst |
# Posted: 2 Mar 2006 06:25:53 - Hi, I also managed to get GanttPV working on Linux. I downloaded the source and extracted to a folder. I then ran the program using: python ganttpv/GanttPV.py Everything seemed to work apart from there were no icons being shown in the toolbar. I edited the ui.py script and replaced the location of the icons to use a folder called icons rather than the full path which is in the UI.py code. I copied the icons folder under the ganttpv folder and now I have icons as well. I get loads of debug messages - I could set the debug = 1 flag to debug = 0 in all the source code if I wanted to ... now I'm going to try the program and see what it does! The fonts do not look well spaced on my Mandriva 2006 desktop - they look bunched up. |
| Alexander Moderator |
# Posted: 3 Mar 2006 13:14:57 ° Edited by: Alexander - Hi Turnest. Thanks for sharing the good news. If you'd like to change the grid report fonts, they are controlled by these two lines in GanttReport.py: attr.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.NORMAL)) self.SetLabelFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD)) The parameters are, in order: the point size, the font family, italic, and bold. Let me know if you'd like more info on that. Regards, Alexander |
| Brian Member |
# Posted: 8 Mar 2006 21:17:05 - Before you experiment with different fonts, you might want to try commenting out the lines Alexander identified. We need SetFont and SetLabelFont on the Mac because someone changed the wx.grid font defaults on the Mac. On Windows we just comment these two lines out because the default fonts work fine. The defaults might work on Linux, too. Let us know what you find out. Thanks for sharing your Linux experiences. |
| Zabber |
# Posted: 5 Apr 2006 02:31:45 - I tried installting in fedora core 4, I get the following error : Traceback (most recent call last): File "ganttpv/GanttPV.py", line 51, in ? import wx, wx.grid ImportError: No module named wx Not very strong with python, How do i procedd further. |
| Brian Member |
# Posted: 5 Apr 2006 04:26:28 - The "No module named wx" error means that it can't find wxPython. Make sure you have wxPython installed. There should be an .rpm for it. It probably came with your fedora core Linux distribution, so that is the first place I would look. Or if you can't find it there, it is available on thewxPython download page. I currently use wxPython version 2.6 for development of GanttPV, but it can be made to work with earlier and later versions. The other requirement is that you must have Python 2.3 or later installed. But you must have Python or you wouldn't be getting that error message. |
| Blake Member |
# Posted: 11 May 2006 11:21:53 ° Edited by: Blake - To get wxPython on Fedora, I just ran yum install compat-wxGTK2 yum install wxPython.i386 I ran the first yum because just installing wxPython.i386 gave me some install conflicts. By the way, it wasn't necessary for me to edit UI.py to get the icons to show up. I just copied the icons folder under ganttpv. |
| Yokiyoki |
# Posted: 11 Dec 2007 08:36:04 - Hi, on gentoo I needed to emerge wxpython, too |
| This topic is closed. You can`t post a reply. |
|
Powered by mini BB forum software © 2001-2010 |