/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/resource.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/resource.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1303 by jonathan, Wed Jun 25 09:39:51 2003 UTC revision 1542 by bh, Fri Aug 1 16:13:49 2003 UTC
# Line 5  Line 5 
5  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
6  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
7    
8    """Acess to UI-related resources"""
9    
10    __version__ = "$Revision$"
11    # $Source$
12    # $Id$
13    
14    
15  import os  import os
16  import Thuban  import Thuban
17    
# Line 14  from wxPython.wx import wxBITMAP_TYPE_XP Line 21  from wxPython.wx import wxBITMAP_TYPE_XP
21  bitmapdir = os.path.join(Thuban.__path__[0], os.pardir, "Resources", "Bitmaps")  bitmapdir = os.path.join(Thuban.__path__[0], os.pardir, "Resources", "Bitmaps")
22  bitmap_extensions = {wxBITMAP_TYPE_XPM: ".xpm",  bitmap_extensions = {wxBITMAP_TYPE_XPM: ".xpm",
23                       wxBITMAP_TYPE_ANY: ""}                       wxBITMAP_TYPE_ANY: ""}
24                        
25  def GetBitmapResource(file, type):  def GetBitmapResource(file, type):
26      filename = os.path.join(bitmapdir, file) + bitmap_extensions[type]      filename = os.path.join(bitmapdir, file) + bitmap_extensions[type]
27      return wxBitmap(filename, type)      return wxBitmap(filename, type)

Legend:
Removed from v.1303  
changed lines
  Added in v.1542

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26