登录
首页 » Others » Tkinter实例

Tkinter实例

于 2020-12-02 发布
0 318
下载积分: 1 下载次数: 1

代码说明:

这系列教程完全以代码的形式来写的,目标是:读者看代码和注释就可以理解代码的意思。虽然作者力求在每个例子中做到功能尽量少,代码尽量的简洁,但为了演示某个功能,不得不添加了一些额外的内容,如有疑问,请参考:《An Introduction To Tkinter》:这是介绍 Tkinter 我见过最全的一本书了http://docs.python.org/lib/tkinter.html:python 模块中介绍关于 Tkinter 编程的入门级教程http://www.tcl.tk/:Tk 的官方网站,最权威 Tk 资料。就是这本书的章节先后顺序,建议从前至后进行阅读。问题与反馈:如果在练习中有疑问或问题欢迎与我联系,一起讨论学习作者联系方式:傅客电邮于北京年月日初步结果教程之篇第一个例子使用内置位图改变的前景色和肯景色设置宽度与高度使用图像与文本文本的多行显小教程之篇第个例子的外观效果显示文本与图像的焦教程之篇的宽度与高度设置文本在控件上的显示位置改变的前景色与背景色设置的边框设置的外观效果设置状态绑定与变量教程之篇第一个程序与变量绑定设置为只读设冒为密码输入框验证输入的內容教程之篇第例设置的事件处理函数改变的显小文本将变量与绑定设置的状态值教程之第例子为指定组创建两个不同的组使用相同的绑定事件处理函数改变外观效果教程之篇第一个可以选中多个使用支持鼠标移动选中位置使向支持和中添加个删除中的选中或取消中的得到当前中的个数返回指定索引的返回当前选中的的索引判断一个是否被选中与变量绑定与事件绑定教程之篇第一个例子指定创建的参数绑定变量使用事件处理函数打印当前的值控制显示位数设置的标签属性设置取得的值教程之篇第·个例了创建时指定参数。设置的值绑定变量设置的事件处理函数的当前内容册除字符(这是个有问题的程序)在指定位置插入文本教程之篇第一个例子设置的位置使用事件处理函数(不建议这样使用)绑定将的解除绑定解除与的关系教程之篇第例子添加下拉菜单向菜单中添加项向菜单中添加顶向菜单中添加分隔符快捷菜单菜单项的操作方法教程之的常用方法教程之第例了改变的宽度设置宽高比例绑定变量文本对齐属性教程之创建设置的显示值打印的值使用作为的选项教程值向中添加删除指定的在指定位置添加个教程之第向实例中添加添加了的支持教程之创建简单的设置的属性使用自凵制作提示框教程之篇第一个例子向中添加文本仗用索引添加内容使用内置的控制添加位置使用表达式来增强教程之使用来指定文本的属性同时使用两个文本指定同一个属性控制的级别对文本块添加使用自定义对文本块添加使用获得中的内容测试对的影响使用对文本属性的影响教程之篇自定义的两个内置属性在中创建按钮在中创建一个图像未实现绑定与事件使用实现编辑常用功能未实现教程之篇第例了创建一个指定的填充色指定的边框颜色指定边框的宽度画虚线使用画刷填充修改的坐标教程之创建的多个使用同一个通过来访问向其它添加返回其它改变在中的顺序教程之篇移动删除缩放绑定与添加绑定事件绑定新的与现有的教程之绘制弧形设置弧形的样式设置弧形的角度绘制位图绘制图像绘制直线直线的属性绘制椭圆创建多边形修饰图形绘制文本选中文本创建组件教程之篇第一个例子的关系向中添加多个组件固定设置到自由变化如何控制子组件的布局如何控制组件的布局改变组件的排放位置设置组件之间的间隙大小教程之篇使用绝对坐标将组件放到指定的位置使用相对坐标放置组件位置使用同时指定多个组件同时使用相对和绝对坐标使用来指定放置的容器深入用法事件与结合使用教程之篇第一个例子使用和来指定位置为其它组件预定位置将组件放置到预定位置上去将两个或多个组件同一个位置改变列(行)的属性值组件使用多列(多行)设置表格中组件的对齐属性教程之篇第一个字体例子仗用系统已有的字体宇体创建属性优先级得到字体的属性值使用系统指定的字体教程之使用用模态对话框使用模块打开文件对话框保存文件对话框使用颜色对话框使用消息对话框使用缺省焦点教程之测试鼠标点击事件测试鼠标的移动事件测试鼠标的释放事件进入事件教程之篇测试离开事件响应特殊键响应所有的按键事件只处理指定的按键消息使用组合键响应事件改变组件人小事件教程之篇两个事件同时绑定到一个控件为一个绑定一个事件。事件各个级别音传递使用的后果使用绑定教程之篇第一个例子:指定显小的文本初始化创建一个使用编码,到现在为止还没有使用过直接通过“就可以完成的显示,必须含有此语句但是不需要(严格地说是必须不这样使用),否则解释器抱怨进入消息循环控件的显示步骤创建这个控件指定这个空间的,即这个控件属于哪一个告诉有一个控什产生了还有更简单的一个例子:将打印到标题上,也不用创建了再没法儿简化了,就这样吧使用内置位图指定显示的位图初始化创建一个,使用编码,到现在为止还没有使用过百接通过“就可以完成的。上面的代码使用了内置位图

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 无线充电方案
    关于无线充电方案的比较,文档中描述了几种方案的比较。
    2021-05-06下载
    积分:1
  • 齿轮工具库CREO /UG/等三维建模软件齿轮工具库
    PROE CREO/UG齿轮库,可直接修改参数,在绘图区域打开文件后,修改参数可以得到各种齿轮。直齿 锥齿   人字齿
    2019-12-25下载
    积分:1
  • 路径损耗模型的MATLAB仿真
    无线信道的路径损耗模型的仿真,具体为自由空间的损耗和正态阴影路径损耗模型
    2020-12-06下载
    积分:1
  • 点目标飞机模型iSAR成像
    强力推荐的ISAR程序代码,自己调试过,可以运行,对学习雷达成像的朋友很有帮助!
    2020-11-27下载
    积分:1
  • 88E1116R_Datasheet
    88E1116R_Datasheet,marvell以太网phy芯片手册,全本88E1116RM A RV E LL. Alaska Gigabit Ethernet TransceiverOVERVIEWFEATURESThe Alaska 88E1116R Gigabit Ethernet Transceiver is10/100/1000BASE-TIEEE 802.3 complianta physical layer device containing a single GigabitSupports reduced pin count GMII(RGMID)interfaceEthernet transceiver. The transceiver implements theFour RGMii timing modesEthernet physical layer portion of the 1000BASE-T,100BASE-TX. and 10base-t standards. t is manufacIntegrated mdi interface termination resistors thateliminate twelve passive componentstured using standard digital CMOS process and con-tains all the active circuitry required to implement theEnergy Detect and Energy Detect+ low powerphysical layer functions to transmit and receive data onmodesstandard Cat 5 unshielded twisted pairThree loopback modes for diagnosticsThe 88E1116R device has two regulators to generateDownshift"mode for two-pair cable installationsall required voltages. The 88E1116R device can beFully integrated digital adaptive equalizers, echopowered by a single 1.8V, 2.5V, or 3. 3V supply Alternacancellers, and crosstalk cancellerstively, if the regulators are not used, then the 88E1116RAdvanced digital baseline wander correctiondevice can be powered by a 1. 8v and 1.2V supplyAutomatic MDi/MDIX crossover at all speeds ofThe 88E1116R device incorporates the Marvell@ VirtualoperationCable Tester (VCTTM)feature, which uses TimeAutomatic polarity correctionDomain Reflectometry(TDR)technology for the remotelEEE 802. 3u compliant Auto-Negotiationidentification of potential cable malfunctions, thusSoftware programmable LEd modes including LEDreducing equipment returns and service calls. UsingtestingVCT, the alaska 88E1116R device detects and reportspotential cabling issues such as pair swaps, pair polar-Supports IEEE 1149.1 JTAGity and excessive pair skew. The device will also detectMDC/MDIO Management Interfacecable opens, shorts or any impedance mismatch in theCRC checker, packet countercable and reporting accurately within one meter the disPacket generationtance to the faultVirtual Cable Tester(VCT)The 88E1116R device integrates MDI interface terminaAuto-Calibration for MAc Interface outputstion resistors into the Phy. this resistor integrationComa Mode supportfacilitates board layout and reduces board cost byRequires a single 1.8v supplyreducing the number of extenal components. The new10 pads can be supplied with 1.8V, 2.5V, or 3. 3VMarvell calibrated resistor scheme will achieve andexceed the accuracy requirements of the IEEE 802.3Two regulators generate all required voltagesRegulator can be supplied with 1.8V,2.5V or 3.3Vreturn loss specificationsCommercial gradeThe 88E1116R device supports the reduced gmll64-Pin QFN package(RGMI)for direct connection to a MAC/Switch portThe 88E1116R device uses advanced mixed-signal processing to perform equalization, echo and crosstalkcancellation, data recovery, and error correction at agigabit per second data rate. The device achievesrobust performance in noisy environments with very lowpower dissipationThe 88E 1116R device is offered in a 64-pin QFn pack-The 88E1116R device is footprint compatible with the88E1116 device As the 88E 1116R device employs integrated MDi interface terminations, all external mDIinterface termination resistors and capacitors must beremoved when migrating from the 88E1116 to88E1116R. See 88E1116 to 88E1116R Migration Appli-cation note for more detailsCopyright o 2007 MarvellCONFIDENTIALDoC. No. MV-S104224-00. Rev.March 1. 2007. AdvanceDocument Classification: Proprietary InformationPage 388E1116RMARVELLo Alaska Gigabit Ethernet TransceiverMagnMedia Types10/1001000Mbps88E1116R|a盖10BASEEthernet macRJ-45Device100BASE-TX1000BASE-TMAC InterfaceRGMII88E1116R Device used in Copper ApplicationDoc. No. MV-S104224-00. Rev.CONFIDENTIALCopyright o 2007 MarvellPage 4Document Classification: Proprietary InformationMarch 1. 2007. AdvanceTable of contentsSECTION 1. SIGNAL DESCRIPTION1.1 Pin Description101.1.1 Pin Type Definitions1264 Pin QFN Pin Assignment List- Alphabetical by Signal Name.……,…,,…,161.3 O State at Various Test or reset modes .mmm.,17SECtION 2. FUNCTIONAL SPECIFICATIONS2.1 Copper Media Interface..国面画192.2 MAC Interface(RGMII)4192.2.1 10/100 Mbps Functionality2.2.2 TX ER and RX ER Codingaaaaaiiaia t23Lo。 pback……………,….….….,.,…….…,…,….….……,…….……………212.3.1 MAC Interface Loopback212.3.2 Line Loopback.222.3.3 EXternal Loopback24 Synchronizing F|FQ….…,,…,…,,,,,,…,,,,,…,,,…,,,,…,……242.5 Copper Media Transmit and receive Function.man..m日a252.5.1 Transmit side Network Interface252.5.2 Encoder2.5.3 Receive Side Network Interface2.5. 4 Decoder2.6 Regulators and Power Supplies282.6.1 AVDD2.6.2 AVDDC282.6.3 AVDDR292.6.4 AVDDX2.6.5DVDD…292.6.6 VDDO26.7 VDDOR.292.7 Power Management302.7.1 Low Power Modes2.72 Low Power Operating Modes……2.7.3 RGMl Effect on Low Power modes3228Auto- Negotiation.........……33Copyright o 2007 MarvellCONFIDENTIALDoC. No. MV-S104224-00. Rev.March 1. 2007. AdvanceDocument Classification: Proprietary InformationPage 588E1116RMARVELL Alaska Gigabit Ethernet Transceiver2.9 Downshift Feature…352.10 Advanced virtual Cable Tester362.10.1 Maximum Pe2.10.2 First Peak372.10.3 Offsetp2. 10. 4 Sample Poin2.10.5 Pulse Amplitude and Pulse Width392. 10.6 Drop Link...392.10.7 VCTTM With Link Up392.11 Data Terminal Equipment (DTE)Detect........2.12 CRC Error Counter and frame Counter412.12. 1 Enabling the crc error counter and frame counter.412.13 Packet generator412.14 MDI/MDIX Crossover422.15P。 olarity Correction..…432.16LED,,,,,,,,,,,…,…,,442.16.1 LED Polarity452.16.2 Pulse Stretching and Blinking.462. 16.3 Bi-Color LED Mixing472.16.4 Modes of Operation482.17 EEE 1149.1 Controller522.17.1 BYPASS Instruction522.17.2 SAMPLE/PRELOAD Instruction.52217.3 EXTEST Instruction552,17.4 The clamP Instruction552,17.5 The high-z Instruction552.17.6 ID CODE Instruction552.18 Interrupt.552.19 Automatic and Manual Impedance Calibration.……,…,…,…,…,…,…,……562. 19. MAC Interface calibration circuit562.19.2 MAC Interface Calibration Register Definitions2. 19.3 Changing Auto Calibration Targets2. 19. 4 Manual Settings to The Calibration Registers“““582.20 Configuring the 88E1116R Device..2.20. 1 Hardware Configuration612.20.2 Software Configuration-Management Interface632.21 Temperature sensor64Doc. No. MV-S104224-00. Rev.CONFIDENTIALCopyright o 2007 MarvellDocument Classification: Proprietary InformationMarch 1. 2007. AdvanceSECTION 3 REGISTER DESCRIPTION65SECTION 4, ELECTRICAL SPECIFICATIONS1104.1. Absolute Maximum Ratings,…,…,…,…,,…,…,…,…,…,…,,…,…,……,1104.2. Recommended Operating Conditions..,,.,……,,……1114.3. Package Thermal Information.………….……….…………1124.3.1 Thermal Conditions for 64-pin QFn Package1124. 4. Current Consumption...........面量量…1134.4.1 Current Consumption AVDD..1134.4.2 Current Consumption AVDDC..1134.4.3 Current Consumption AVDDR1144.4.4 Current Consumption AVDDX1144.4.5 Current Consumption DVDD4.4.6 Current Consumption VDDo1154.4.7 Current Consumption VDDOR1154.4.8 Current Consumption Center Tap1154.5. DC Operating Conditions1164.5.1 Non-RGMlI Digital Pins1164.5.2 Internal resistor Description4.5.3 Stub-Series Transceiver LogIc (55/.21174.5 4 EEE DC Transceiver Parameters1194.6. AC Electrical Specifications1204.6.1 Reset Timing ..1204.6.2 XTAL IN/XTAL OUT Timing1214.6.3 LED to CONFIG Timing1214.7 RGMII Interface Timing……,,…1224.7.1 RGMl AC Characteristics4.7.2 RGMII Delay Timing for different RGMiI Modes1234.8. MDC/MDIO Timing…12549. JTAG Timing…,,…1264.10.EEE AC Transceiver parameters1274.11. Latency Timing........….…1284.11.1 RGMII to 1000BASE-T Transmit Latency Timingaa“aa1284.11.2 RGMII to 100BASE-TX Transmit Latency Timing1284.11.3 RGMiI to 10BASE-T Transmit Latency Timing4. 11. 4 1000BASE-T to RGMll Receive Latency Timing1304. 11.5 100BASE-TX to RGMII Receive Latency Timing.1304.11.610 BASE-T to RGMll Receive Latency Timing……….….…………,130SECTION 5. PACKAGE MECHANICAL DIMENSIONS1315.1 64-Pin QFN Package...131Copyright o 2007 MarvellCONFIDENTIALDoC. No. MV-S104224-00. Rev.March 1. 2007. AdvanceDocument Classification: Proprietary InformationPage 788E1116RMARVELL Alaska Gigabit Ethernet TransceiverSECTION 6. ORDER INFORMATION1336.1 Ordering Part Numbers and Package Markings1336.1.1 RoHS 5/6 Marking Example1346.1.2 RoHS 6/6 Marking Example135Doc. No. MV-S104224-00. Rev.CONFIDENTIALCopyright o 2007 MarvellPage 8Document Classification: Proprietary InformationMarch 1. 2007. AdvanceSignal DescriptionSection 1. Signal DescriptionThe 88E1116R device is a 10/100/1000BASE-T Gigabit Ethernet transceiverFigure 1: 88E1116R Device 64-Pin QFN Package(Top view)文gg9廿廿廿廿廿廿凵廿廿廿凵廿守令导好寸守哥导$85#將RX CTRL4932TSTPTRXDIO5031MDIPIORXD[51EPAD-VSS30d MDIN[O]VDDOR52290 AVDDRX CLK5328叫NCRXD[2]54AVDDRXD]5526MD|P[1VDDOR56VREF57MARVEL L③24E MDIP[2TXD0]□5823MDIN[2TXD[1]B5988E1116R22AVDDTX_CLK F6021AVDDTXD[2Top ViewMDIP[3TXD3]□62190 MDIN[3]TⅩCTRL6318□NCCONFIG[O]64CTRL18三s回口cc×O百口口艺艺安安Copyright o 2007 MarvellCONFIDENTIALDoc. No. MV-S104224-00 RevMarch1.2007. AdvanceDocument Classification: Proprietary InformationPage 988E1116RMARVELL. Alaska Gigabit Ethernet Transceiver1.1 Pin Description1.1.1 Pin Type DefinitionsPin Ty peDefinitionHInput with hysteresisVOInput and outputInput onlOutput onlPUIntemal pullPDInternal pull downOpen drain outputTri-state outputADC sink capabilityDoC. No. MV-S104224-00 RevCONFIDENTIALCopyright o 2007 MarvellPage 10Document Classification: Proprietary InformationMarch.2007. Advance
    2020-12-03下载
    积分:1
  • 基于matlab的gui显示动态卷积,圆周卷积
    基于matlab的gui显示动态卷积,圆周卷积,数字信号处理的计算机实验
    2020-12-11下载
    积分:1
  • BP神经网络 手写体
    matlab代码,里面含有一个BP网络完整代码,以及mnist.mat数据集
    2020-06-18下载
    积分:1
  • 安卓学生信息管理app
    用Android studio 开发的学生信息管理app 源代码 课设报告
    2021-05-06下载
    积分:1
  • 倒车雷达超声波测距系统
    51单片机 倒车雷达超声波测距 汇编程序和相信注释 项目报告论文 还有仿真图和原理图经过测试 可以测得的距离为0.25-5米。希望对大家有所帮助。谢谢!
    2020-11-02下载
    积分:1
  • 三维模型的布尔运算研究
    研究了三角形表面模型的布尔运算。传统的CSG 算法是基于基本实体的布尔运算进行的,对于由三角形或多边形描述的表面模型的复杂模型运算则十分困难。通过构建模型的BSP 树,利用BSP 树的空间分割能力,把参与运算的模型分割成两部分,然后,根据交、并、差各种布尔运算,组合分割后的结果,实现了不规则三维模型的布尔运算。
    2020-12-06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载