From 7e56135a5af0d03afb36242bdf908c4da9b1e798 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 Jan 2003 03:19:23 +0000 Subject: [PATCH] Don't use string module git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/samples/pySketch/pySketch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wxPython/samples/pySketch/pySketch.py b/wxPython/samples/pySketch/pySketch.py index 3e783da5ea..1a02372fdf 100644 --- a/wxPython/samples/pySketch/pySketch.py +++ b/wxPython/samples/pySketch/pySketch.py @@ -42,7 +42,7 @@ getting mucked up; when the user quits, we get errors about being unable to call del on a 'None' object. """ -import string, cPickle, os.path +import cPickle, os.path from wxPython.wx import * import traceback, types @@ -2454,7 +2454,7 @@ class EditTextObjectDialog(wxDialog): """ obj.setText(self.textCtrl.GetValue()) obj.setTextFont(self.fontCombo.GetValue()) - obj.setTextSize(string.atoi(self.sizeCombo.GetValue())) + obj.setTextSize(int(self.sizeCombo.GetValue())) obj.setTextBoldface(self.boldCheckbox.GetValue()) obj.setTextItalic(self.italicCheckbox.GetValue()) obj.setTextUnderline(self.underlineCheckbox.GetValue())