官术网_书友最值得收藏!

How it works...

The methods title() and iconbitmap() of the Tk class are very self-descriptive—the first one sets the window title, whereas the second one takes the path to the icon that is associated to the window.

The geometry() method configures the size of the window with a string that follows the following pattern:

{width}x{height}+{offset_x}+{offset_y}

In case you add more secondary windows to your application, these methods are also available in the Toplevel class.

主站蜘蛛池模板: 台南市| 临武县| 永善县| 桂平市| 松滋市| 宁阳县| 诸暨市| 景德镇市| 崇明县| 松原市| 鸡东县| 张家口市| 洛南县| 从江县| 平顶山市| 福鼎市| 凤山市| 琼结县| 东源县| 句容市| 泸定县| 永康市| 云浮市| 涞源县| 湖口县| 富蕴县| 五原县| 济南市| 中牟县| 同德县| 阿拉善右旗| 武胜县| 斗六市| 油尖旺区| 遂川县| 通海县| 隆子县| 施秉县| 泰和县| 涟水县| 平度市|