diff options
author | Guido van Rossum <guido@python.org> | 1991-04-04 17:26:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-04-04 17:26:32 (GMT) |
commit | db46c0e4f8427b38bad01d8a7a07e27e15f44b95 (patch) | |
tree | 936ae81133386033dc02038afd832598cb15b391 /Modules/stdwinmodule.c | |
parent | 324aa79f6689a8e698890ab8700224ae0966beb4 (diff) | |
download | cpython-db46c0e4f8427b38bad01d8a7a07e27e15f44b95.zip cpython-db46c0e4f8427b38bad01d8a7a07e27e15f44b95.tar.gz cpython-db46c0e4f8427b38bad01d8a7a07e27e15f44b95.tar.bz2 |
Fix window.setfont() to call drawing_setfont internally.
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r-- | Modules/stdwinmodule.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c index e00fc91..0a572e4 100644 --- a/Modules/stdwinmodule.c +++ b/Modules/stdwinmodule.c @@ -1329,19 +1329,16 @@ window_setfont(self, args) windowobject *self; object *args; { + object *v; TEXTATTR saveattr, winattr; - object *str; - if (!getstrarg(args, &str)) - return NULL; wgettextattr(&saveattr); wgetwintextattr(self->w_win, &winattr); wsettextattr(&winattr); - wsetfont(getstringvalue(str)); + v = drawing_setfont((drawingobject *)NULL, args); wgettextattr(&winattr); wsetwintextattr(self->w_win, &winattr); wsettextattr(&saveattr); - INCREF(None); - return None; + return v; } static struct methodlist window_methods[] = { |