commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/src/uidrivers/wx UIdriver.py


From: Arturas Kriukovas
Subject: gnue/forms/src/uidrivers/wx UIdriver.py
Date: Wed, 10 Jul 2002 09:28:16 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Arturas Kriukovas <address@hidden>      02/07/10 09:28:16

Modified files:
        forms/src/uidrivers/wx: UIdriver.py 

Log message:
        i18n changes. Added support for language font encodings via 'encodings'
        dictionary. wxWindows level support.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/uidrivers/wx/UIdriver.py.diff?tr1=1.182&tr2=1.183&r1=text&r2=text

Patches:
Index: gnue/forms/src/uidrivers/wx/UIdriver.py
diff -c gnue/forms/src/uidrivers/wx/UIdriver.py:1.182 
gnue/forms/src/uidrivers/wx/UIdriver.py:1.183
*** gnue/forms/src/uidrivers/wx/UIdriver.py:1.182       Mon Jul  8 23:05:09 2002
--- gnue/forms/src/uidrivers/wx/UIdriver.py     Wed Jul 10 09:28:16 2002
***************
*** 51,56 ****
--- 51,79 ----
  _IdToGFObj = {}
  _IdToUIObj = {}
  
+ # Finishing creation of dictionary for lnguage font encodings
+ 
+ encodings['iso8859-1'] = wxFONTENCODING_ISO8859_1
+ encodings['iso8859-2'] = wxFONTENCODING_ISO8859_2
+ encodings['iso8859-3'] = wxFONTENCODING_ISO8859_3
+ encodings['iso8859-4'] = wxFONTENCODING_ISO8859_4
+ encodings['iso8859-5'] = wxFONTENCODING_ISO8859_5
+ encodings['iso8859-6'] = wxFONTENCODING_ISO8859_6
+ encodings['iso8859-7'] = wxFONTENCODING_ISO8859_7
+ encodings['iso8859-8'] = wxFONTENCODING_ISO8859_8
+ encodings['iso8859-9'] = wxFONTENCODING_ISO8859_9
+ encodings['iso8859-10'] = wxFONTENCODING_ISO8859_10
+ encodings['iso8859-11'] = wxFONTENCODING_ISO8859_11
+ encodings['iso8859-12'] = wxFONTENCODING_ISO8859_12
+ encodings['iso8859-13'] = wxFONTENCODING_ISO8859_13
+ encodings['iso8859-14'] = wxFONTENCODING_ISO8859_14
+ encodings['iso8859-15'] = wxFONTENCODING_ISO8859_15
+ encodings['koi8'] = wxFONTENCODING_KOI8
+ encodings['cp1250'] = wxFONTENCODING_CP1250
+ encodings['cp1251'] = wxFONTENCODING_CP1251
+ encodings['cp1252'] = wxFONTENCODING_CP1252
+ 
+ 
  # hack for wxPython 2.2 (2.3+ doesn't need this)
  def _eventObjTowxWindow(event):
    eo = event.GetEventObject()
***************
*** 87,93 ****
  #
  def initFont(widget, affectsLayout=1):
    if int(gConfig('fixedWidthFont')):
!     
widget.SetFont(wxFont(int(gConfig('pointSize')),wxMODERN,wxNORMAL,wxNORMAL))
  
  #
  # GFUserInterface
--- 110,117 ----
  #
  def initFont(widget, affectsLayout=1):
    if int(gConfig('fixedWidthFont')):
!     widget.SetFont(wxFont(int(gConfig('pointSize')),wxMODERN,wxNORMAL,\
!       wxNORMAL,FALSE,'',encodings[gConfig('formFontEncoding')]))
  
  #
  # GFUserInterface



reply via email to

[Prev in Thread] Current Thread [Next in Thread]