gfxdraw doesn't work with inherited surfaces

Issue #147 new
Former user created an issue

it seems that gfxdraw not works with objects that inherit from Surface

import pygame as pg
from pygame import gfxdraw

class Frame(pg.Surface,object):
    def __init__(self,x,y,w,h):

scr = pg.display.set_mode((500,500))
fr = Frame(50,50,300,300),pg.Rect(0,0,50,50),pg.Color('red'))

Traceback (most recent call last):

File "", line 13, in <module>,pg.Rect(0,0,50,50),pg.Color('red'))

TypeError: surface must be a Surface

Comments (0)

  1. Log in to comment