在我的应用程序中,我创建了一个新线程,创建主窗口的一个实例。
In my application, I create a new thread which creates an instance of MainWindow.
为启动外壳客户机,我们必须先初始化GTK环境,创建一个主窗口,然后向其中添加控件,如下面的代码片断所示。
To start our skin client, we must first initialize the GTK environment, create a main window, and add widgets to it, as in the following code snippets.
该方法的前两行的用途在GUI程序的开头部分很常见:它们创建和显示主窗口。
The first two lines of this method do something you would expect to happen at the start of a GUI program: they create and show a main window.
答案是设计图面最终成为第一个组件,因为您在主窗口初始化例程中将该控件创建为Form(请参见图13)。
The answer is that the design surface ends up being the first component because you create this control, as a Form, during the main window initialization routine (see Figure 13 ).
可以看到主屏幕列出了每个项目和相关的图片,提供了Ajax窗口用来创建、读取、更新和删除项目。
You can see the main screen listing each item and the associated graphics offer Ajax windows for creating, reading, updating, and deleting items.
下一步是创建画布部件并使之充满整个主窗口。
The next step has created a Canvas widget and had it fill the entire MainWindow.
下一步,我们将在这个主窗口中创建标签和按钮对象,作为主窗口的子部件。
Next, we've created Label and Button objects as child widgets inside the MainWindow.
在循环完成后,另一套画布、密码文本框和Submit按钮将被创建并封装到t k主窗口中。
After the loop, another canvas, password text box, and Submit button are created and packed into the Tk main window.
在这个程序中,和前一程序一样,首先创建一个主窗口,并且设置窗口的宽和高为 $size像素。
Here we've created a MainWindow as before and configured it to be $size pixels wide and high.
应用程序的主框架只由四个步骤组成:(1)创建一个应用程序;(2)创建一个或多个窗口;(3)在窗口中添加一些窗口小部件;(4)调用app. run事件循环。
The skeleton of an application consists of just four steps: (1) create an application; (2) create one or more Windows; (3) add some widgets to the Windows; (4) call the app.run event-loop.
创建新的路径覆盖在主窗口的顶部部分(1)。
当你创建自己的程序时,最好让你的主窗口文件名与包名相同,这样就可以使用这种简短的形式。
When creating your own applications, you will want to create a file for your main window with the same name as the package, so it can be referred to using this shorter form.
当然,进度对话框比直接在程序主窗口创建动画要容易得多。
Process dialogs are, of course, much easier to program than building animation right into the main window of a program.
创建新的追踪点,点击创建按钮然后点击在主图像窗口用鼠标左键放置一个新的追踪位置。
To create new trackers, click the create button and then click in the main image window with the left mouse button to place a new tracker.
主窗口是在启动进程时创建的窗口。
The main window is the window that is created when the process is started.
下面,以这个组为例进行说明,这将在Gor m主窗口中创建一个新的目标,并且你可以将出口(Outlets)和行为关联到相应的部分。
Next you instantiate the class, what creates a new object (the instance) in the Gorm main window, and you connect the outlets and the actions to the corresponding components.
下面,以这个组为例进行说明,这将在Gor m主窗口中创建一个新的目标,并且你可以将出口(Outlets)和行为关联到相应的部分。
Next you instantiate the class, what creates a new object (the instance) in the Gorm main window, and you connect the outlets and the actions to the corresponding components.
应用推荐