[Idle-dev] EditorWindow.py: Fix the wrap constant on the text widget

Josh Robb josh_robb@fastmail.fm
Tue, 1 Oct 2002 01:19:06 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0196_01C268E8.89603440
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Does what it says... fixes a case problem.

For me this was a regression from idle-python to idle-fork. I never want
this behavior in a file editor window. Maybe it should be configurable in
the future but for now at least it should go back to a sane default. (One
day i'll get a chance to look at the configuration system but not yet).

j.

------=_NextPart_000_0196_01C268E8.89603440
Content-Type: application/octet-stream;
	name="wrap.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="wrap.diff"

Index: EditorWindow.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/idlefork/idle/EditorWindow.py,v
retrieving revision 1.32
diff -c -r1.32 EditorWindow.py
*** EditorWindow.py	26 Sep 2002 22:13:22 -0000	1.32
--- EditorWindow.py	30 Sep 2002 22:28:32 -0000
***************
*** 61,67 ****
          self.break_set =3D False
          self.vbar =3D vbar =3D Scrollbar(top, name=3D'vbar')
          self.text_frame =3D text_frame =3D Frame(top)
!         self.text =3D text =3D Text(text_frame, name=3D'text', =
padx=3D5, wrap=3DNone,
                  foreground=3DidleConf.GetHighlight(currentTheme,
                          'normal',fgBg=3D'fg'),
                  background=3DidleConf.GetHighlight(currentTheme,
--- 61,67 ----
          self.break_set =3D False
          self.vbar =3D vbar =3D Scrollbar(top, name=3D'vbar')
          self.text_frame =3D text_frame =3D Frame(top)
!         self.text =3D text =3D Text(text_frame, name=3D'text', =
padx=3D5, wrap=3DNONE,
                  foreground=3DidleConf.GetHighlight(currentTheme,
                          'normal',fgBg=3D'fg'),
                  background=3DidleConf.GetHighlight(currentTheme,

------=_NextPart_000_0196_01C268E8.89603440--