如果您使用的是GIMP V2.7树,您将看到许多新编写的代码,用于在GIMP处于新的单一窗口模式时管理可停靠的对话框。
If you are using the GIMP V2.7 tree, you can see a lot of newly written code used to manage the dockable dialogs when GIMP is in the new single-window mode.
只要您编写的代码用来产生要求用户与之交互的组件(如对话框),就要编写测试,但实际上编写测试要在编写代码之前进行。
Write the tests as soon as there is code to be written that produces something a user will interact with (such as a dialog), but before actually writing the code.
目标是替换操作:我们将编写一个死循环来代替弹出 Hello World 对话框,并引起挂起。
The goal is to replace the action: instead of a pop-up dialog for Hello World, we will code an infinite loop and cause a hang.
应用推荐