2014-04-01 62 views
0

我使用吡啶的OpenGL上下文,我的是,它告訴我,一個期望的縮進塊,我應該與此塊 類的TestContext(BaseContext)使用的字符:的Python + OpenGL上下文縮進塊

「」」 (動態確定的)BaseContext的一個子類,通過覆蓋各種方法,我們可以定製這個上下文的功能,但是教程並不要求我們這樣做。「」「」

回答

0

docstring還需要縮進。試試這個:

class TestContext(BaseContext): 
    """A subclass of the (dynamically determined) BaseContext, 
    by overriding various methods, we could customize the functionality 
    of this context, but the tutorial doesn't ask us to do this. 
    """ 
    pass 
+0

感謝ü非常多的幫助,但PLZ你能告訴我怎麼ü做到這件事我試圖用「」」完成它,卻徒勞無功 – user3140711

+0

我不明白你問什麼...什麼是不工作? – skamsie

+0

只是我寫了同樣的事情,我完成了與「」「的文本,並按下控制檯中的輸入,它告訴我,預期的打算... 我不明白什麼是我使用的問題PYthon 2.7 – user3140711