Changeset 464 – Pyragua

Changeset 464

Show
Ignore:
Timestamp:
07/25/10 18:35:31 (22 months ago)
Author:
ark
Message:

- The gaguesplash was downloaded to use as pyragua splah. A splash with a gauge bar, that show loading.
- Pyragua knows now about its execution_path. It's used to get resources, such as images.
- Pyragua icon loaded to main window.

Tasks:
- Command line options must be parsed.
- Config must be loaded.
- Splash must be shown and loaded.

Location:
trunk
Files:
8 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r463 r464  
     12010-07-25  Jonathan Sandoval Cardona  <jsandoval@utp.edu.co> 
     2 
     3        * pyragua.py (exec_path): attribute added to this module, to know execution path. 
     4 
     5        * img: Copied olf image resources to trunk. New ones needs to be created. 
     6 
     7        * gaugesplash.py: Added to pyragua shared library. 
     8 
    192010-07-15  Jonathan Sandoval Cardona  <jsandoval@utp.edu.co> 
    210 
  • trunk/pyragua-ide

    r462 r464  
    1616## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
    1717 
     18import os.path 
     19import gettext 
     20gettext.install("pyragua-ide") 
    1821 
    19 from pyragua.pyragua import Pyragua 
     22from pyragua import pyragua 
    2023 
    21 pyragua = Pyragua() 
    22 pyragua.start() 
     24# Relative execution path of pyragua-ide. Used to get resources 
     25pyragua.exec_path = os.path.dirname(__file__) 
     26 
     27pyragua_ide = pyragua.Pyragua() 
     28pyragua_ide.start() 
  • trunk/pyragua/ui/ipyraguaui.py

    r459 r464  
    3333        pass 
    3434 
    35      
     35    def show_splash(self, uri_image): 
     36        """Show a splash window loading image from uri_image. 
     37         
     38        """ 
     39    def set_splash_ticks(self, num_ticks): 
     40        """Set the num of ticks that the splash windows will have 
     41        to dissapear. 
     42        """ 
     43 
     44    def splash_tick(self, new_message=""): 
     45        """A tick for the splash.  Tries to update the current message 
     46        shown in splash. 
     47        """ 
     48 
  • trunk/pyragua/ui/mainwindow.py

    r458 r464  
    2020""" 
    2121 
     22import os.path 
     23 
    2224import wx 
    2325import wx.aui 
     26 
     27 
    2428 
    2529class MainWindow(object): 
     
    4145class PyraguaMainFrame(wx.Frame): 
    4246    def __init__(self, parent, id_=-1, title=""): 
     47        from pyragua import pyragua 
    4348        #todo: Change the size and position values for something from the config. 
    4449        wx.Frame.__init__(self, parent, id_, "Pyragua", 
    4550                          wx.Point(100, 100), wx.Size(800, 600)) 
     51 
     52        self.SetIcon(wx.Icon(os.path.join(pyragua.exec_path, "img/pyragua.ico"), 
     53                                          wx.BITMAP_TYPE_ICO)) 
    4654 
    4755        self._aui_manager = wx.aui.AuiManager()