Tag: pygobject

什么是unit testingPython GUI应用程序的推荐方式?

我目前很愚蠢的尝试维护Python桌面应用程序的两个并行代码库,一个是使用PyGObject内省的GTK 3,一个是使用PyGTK的GTK 2.我主要工作在PyGObject分支,然后将端口转换到PyGTK分支。 由于这些实现之间的所有细微差别,我常常会忽略一些事情,并导致我错过和意外释放的破坏,只会被用户抓住。 我试图找出一个好方法来devise一些unit testing,最好是适合在两个代码库上运行。 这不是一个过于复杂的程序,(它本质上是一个图书馆pipe理工具,像iTunes一样): – Main Window |- Toolbar with some buttons (add/edit/remove items, configure the program) | |- VPaned |— Top HPaned |—— ListView (listing values by which a library of items can be filtered) |—— ListView (listing the contents of the library |— Bottom HPaned |—— Image (displaying cover art […]