[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-forms/src/uidrivers/wx GFwxApp.py common.py
From: |
Jan Ischebeck |
Subject: |
gnue-forms/src/uidrivers/wx GFwxApp.py common.py |
Date: |
Tue, 11 Nov 2003 07:34:50 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue-forms
Branch:
Changes by: Jan Ischebeck <address@hidden> 03/11/11 07:34:50
Modified files:
src/uidrivers/wx: GFwxApp.py common.py
Log message:
add check for unsupported font encodings
add copyright header
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/uidrivers/wx/GFwxApp.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/uidrivers/wx/common.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: gnue-forms/src/uidrivers/wx/GFwxApp.py
diff -c gnue-forms/src/uidrivers/wx/GFwxApp.py:1.2
gnue-forms/src/uidrivers/wx/GFwxApp.py:1.3
*** gnue-forms/src/uidrivers/wx/GFwxApp.py:1.2 Mon Feb 17 02:32:53 2003
--- gnue-forms/src/uidrivers/wx/GFwxApp.py Tue Nov 11 07:34:50 2003
***************
*** 1,3 ****
--- 1,33 ----
+ #
+ # This file is part of GNU Enterprise.
+ #
+ # GNU Enterprise is free software; you can redistribute it
+ # and/or modify it under the terms of the GNU General Public
+ # License as published by the Free Software Foundation; either
+ # version 2, or (at your option) any later version.
+ #
+ # GNU Enterprise is distributed in the hope that it will be
+ # useful, but WITHOUT ANY WARRANTY; without even the implied
+ # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ # PURPOSE. See the GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public
+ # License along with program; see the file COPYING. If not,
+ # write to the Free Software Foundation, Inc., 59 Temple Place
+ # - Suite 330, Boston, MA 02111-1307, USA.
+ #
+ # Copyright 2000-2003 Free Software Foundation
+ #
+ # FILE:
+ # uidriver/wx/GFwxApp.py
+ #
+ # DESCRIPTION:
+ # wx application wrapper.
+ # Part of a wxPython based user interface driver for GNUe forms.
+ #
+ # NOTES:
+ #
+
from wxPython.wx import *
from gnue.common.apps import GDebug
Index: gnue-forms/src/uidrivers/wx/common.py
diff -c gnue-forms/src/uidrivers/wx/common.py:1.7
gnue-forms/src/uidrivers/wx/common.py:1.8
*** gnue-forms/src/uidrivers/wx/common.py:1.7 Fri Sep 5 15:33:59 2003
--- gnue-forms/src/uidrivers/wx/common.py Tue Nov 11 07:34:50 2003
***************
*** 1,6 ****
--- 1,36 ----
+ #
+ # This file is part of GNU Enterprise.
+ #
+ # GNU Enterprise is free software; you can redistribute it
+ # and/or modify it under the terms of the GNU General Public
+ # License as published by the Free Software Foundation; either
+ # version 2, or (at your option) any later version.
+ #
+ # GNU Enterprise is distributed in the hope that it will be
+ # useful, but WITHOUT ANY WARRANTY; without even the implied
+ # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ # PURPOSE. See the GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public
+ # License along with program; see the file COPYING. If not,
+ # write to the Free Software Foundation, Inc., 59 Temple Place
+ # - Suite 330, Boston, MA 02111-1307, USA.
+ #
+ # Copyright 2000-2003 Free Software Foundation
+ #
+ # FILE:
+ # uidriver/wx/common.py
+ #
+ # DESCRIPTION:
+ # Common Font and Event Handler routines
+ # Part of a wxPython based user interface driver for GNUe forms.
+ #
+ # NOTES:
+
import string
from wxPython.wx import *
from gnue.common import events
+ from gnue.common.apps import GDebug
# Finishing creation of dictionary for language font encodings
encodings = {
***************
*** 23,29 ****
'koi8-r': wxFONTENCODING_KOI8,
'cp1250': wxFONTENCODING_CP1250,
'cp1251': wxFONTENCODING_CP1251,
! 'cp1252': wxFONTENCODING_CP1252
}
--- 53,61 ----
'koi8-r': wxFONTENCODING_KOI8,
'cp1250': wxFONTENCODING_CP1250,
'cp1251': wxFONTENCODING_CP1251,
! 'cp1252': wxFONTENCODING_CP1252,
! 'big5': wxFONTENCODING_BIG5,
! 'gb2312': wxFONTENCODING_GB2312
}
***************
*** 50,57 ****
def initFont(widget, affectsLayout=1):
if int(gConfigForms('fixedWidthFont')):
widget.SetFont(wxFont(getPointSize(),wxMODERN,wxNORMAL,\
!
wxNORMAL,FALSE,'',encodings[gConfigForms('textEncoding')]))
#####################################################################
--- 82,95 ----
def initFont(widget, affectsLayout=1):
if int(gConfigForms('fixedWidthFont')):
+ try:
+ enc=encodings[gConfigForms('textEncoding')]
+ except:
+ GDebug.printMesg(1,_('Encoding %s is not supported by the wx UI
driver') %\
+ gConfigForms('textEncoding'))
+ enc=encodings['iso8859-1']
widget.SetFont(wxFont(getPointSize(),wxMODERN,wxNORMAL,\
! wxNORMAL,FALSE,'',enc))
#####################################################################
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-forms/src/uidrivers/wx GFwxApp.py common.py,
Jan Ischebeck <=