开发石头剪刀布游戏遇Tk_GetPixmap: DIBSection参数错误求助
Tkinter弹出'Tk_GetPixmap: Error from DIBSection'错误排查问题
我正在开发一款石头剪刀布游戏,运行程序时弹出tkinter消息框,标题为Tk_GetPixmap: Error from DIBSection,提示内容为The parameter is incorrect(参数不正确),并附有错误截图。
但我的代码中并未直接使用DIBSection或Tk_GetPixmap,也没有生成回溯信息,调试难度很大。我查询了相关问题,发现现有案例均是代码中显式使用DIBSection导致的,目前暂时无法创建最小复现示例,完整代码可按需提供。
补充:以下是可能引发错误的代码片段:
def start_round(self): def rd_animate(): #--::Animation::--# self.remove_wdgs() self.PF_ani_lbl["text"] = "ROUND {}".format(self.round_no) self.after(1000, self.place_wdgs) print("start_round") self.round = {} #--::Animation::--# rd_animate()
内容的提问来源于stack exchange,提问作者Pycoder
相关产品推荐
相关产品推荐

