| 广告联系 | 繁体版 | 手机版 | 微信 | 微博 | 搜索:
欢迎您 游客 | 登录 | 免费注册 | 忘记了密码 | 社交账号注册或登录

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  请不要上传第三方有版权的照片,请尊重版权,谢谢   转载新闻请务必注明出处,这些媒体请不要转,谢谢   批评商家需要注意  
 个人空间: 猪头看世界 | XY | 一袭绛襦落鹏城,疑似玄女下九天 | NotmeL8 | 罗蓬特机器人 | 白龙王许道长 | Invisible world | 异乡的世界 | 五木森林 | lxls | 吕洪来的个人空间 | 湖里湖涂 | 静观云卷云舒 | 乱想 | 顾晓军 | 呱呱叫厨房 | 格局 | 逸言堂 | 真情Z下海 | 花随风
 最新求助: 请问谁知道哪里有卖理发的电动推子?   忽然有个疑问:战争时期,加拿大拿PR卡未入籍的永久居民会被强制服兵役吗?   这个银条   如何修改会员名?
 论坛转跳:
     发帖回帖获取加西镑, 兑换精彩礼物

论坛首页 -> 电子电玩

Python 24小时自学 (发表于10年前)

分页: 1, 2, 3  下一页  



回复主题  图片幻灯展示  增添帖子到书签中  给帖子中的发贴者批量赠送献花或者花篮    |##| -> |=|        发表新主题
阅读上一个主题 :: 阅读下一个主题  
作者 正文
泼妇之友
(只看此人)




文章 时间: 2014-8-21 18:01 引用回复

-------------------------- 帖子以下内容: 隐藏 --------------------------
注意: 帖子隐藏的部分需要支付 100 北美盾才能观看, 目前已有 5 人购买观看.
 
花篮
分享
_________________


上一次由泼妇之友于2014-8-29 00:45修改,总共修改了25次
楼主 | 电梯直达
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
nessus
(只看此人)




文章 时间: 2014-8-21 18:07 引用回复
LZ,这里做广告是要交费的。
 
花篮
分享
沙发 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-21 20:03 引用回复
#### 用 Python 画出正弦波??



docs.python.org/2/library/math.html
 
花篮
分享
_________________


上一次由泼妇之友于2014-9-03 03:05修改,总共修改了2次
板凳 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-21 20:06 引用回复
pi=3.1415926535897932384626;


abs.jpg


py-sine.jpg

 
花篮
分享
_________________


上一次由泼妇之友于2014-9-03 03:06修改,总共修改了1次
地板 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
A70Plus
(只看此人)



文章 时间: 2014-8-21 20:59 引用回复
好像用的还不是很多。
 
花篮
分享
5 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-23 11:37 引用回复
RGB Specifications #

If you need to explicitly specify a color, you can use a string with the following format:

#RRGGBB
RR, GG, BB are hexadecimal representations of the red, green and blue values, respectively. The following sample shows how you can convert a color 3-tuple to a Tk color specification:

tk_rgb = "#%02x%02x%02x" % (128, 192, 200)
Tk also supports the forms “#RGB” and “#RRRRGGGGBBBB” to specify each value with 16 and 65536 levels, respectively.

You can use the winfo_rgb widget method to translate a color string (either a name or an RGB specification) to a 3-tuple:

rgb = widget.winfo_rgb("red")
red, green, blue = rgb[0]/256, rgb[1]/256, rgb[2]/256
Note that winfo_rgb returns 16-bit RGB values, ranging from 0 to 65535. To map them into the more common 0-255 range, you must divide each value by 256 (or shift them 8 bits to the right).


effbot.org/tkinterbook...olor-names
 
花篮
分享
_________________
6 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-23 13:17 引用回复
www.tutorialspoint.com...amming.pdf



Creating a GUI application ( using Tkinter) is an easy task. All you need to do is perform the following steps:

1. Import the Tkinter module.

2. Create the GUI application main window.

3. Add one or more of the above-mentioned widgets to the GUI application.

4. Enter the main event loop to take action against each event triggered by the user.

wiki.python.org/moin/TkInter



代码:

import Tkinter
top = Tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()




This would create a window.
 
花篮
分享
_________________


上一次由泼妇之友于2014-8-23 13:22修改,总共修改了1次
7 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-23 13:20 引用回复
www.tutorialspoint.com...amming.pdf

Tkinter Widgets

tk 把控件叫 "Widgets" , 记着就好。

Tkinter provides various controls, such as buttons, labels and text boxes used in a GUI application. These controls are commonly called widgets.

There are currently 15 types of widgets in Tkinter. We present these widgets as well as a brief description in the following table:

Operator Description
Button The Button widget is used to display buttons in your application.
Canvas The Canvas widget is used to draw shapes, such as lines, ovals, polygons and rectangles, in your application.
Checkbutton The Checkbutton widget is used to display a number of options as checkboxes. The user can select multiple options at a time.
Entry The Entry widget is used to display a single-line text field for accepting values from a user.
Frame The Frame widget is used as a container widget to organize other widgets.
Label The Label widget is used to provide a single-line caption for other widgets. It can also contain images.
Listbox The Listbox widget is used to provide a list of options to a user.
Menubutton The Menubutton widget is used to display menus in your application.
Menu The Menu widget is used to provide various commands to a user. These commands are contained inside Menubutton.
Message The Message widget is used to display multiline text fields for accepting values from a user.
Radiobutton The Radiobutton widget is used to display a number of options as radio buttons. The user can select only one option at a time.
Scale The Scale widget is used to provide a slider widget.
Scrollbar The Scrollbar widget is used to add scrolling capability to various widgets, such as list boxes.
Text The Text widget is used to display text in multiple lines.
Toplevel The Toplevel widget is used to provide a separate window container.
Spinbox The Spinbox widget is a variant of the standard Tkinter Entry widget, which can be used to select from a fixed number of values.
PanedWindow A PanedWindow is a container widget that may contain any number of panes, arranged horizontally or vertically.
LabelFrame A labelframe is a simple container widget. Its primary purpose is to act as a spacer or container for complex window layouts.
tkMessageBox This module is used to display message boxes in your applications.




------------------------------------------------------------------


Standard attributes:
Let's take a look at how some of their common attributes.such as sizes, colors and fonts are specified.

Dimensions

Colors

Fonts

Anchors

Relief styles

Bitmaps

Cursors



Geometry Management:

All Tkinter widgets have access to specific geometry management methods, which have the purpose of organizing widgets throughout the parent widget area. Tkinter exposes the following geometry manager classes: pack, grid, and place.

The pack() Method - This geometry manager organizes widgets in blocks before placing them in the parent widget.

The grid() Method - This geometry manager organizes widgets in a table-like structure in the parent widget.

The place() Method -This geometry manager organizes widgets by placing them in a specific position in the parent widget.
 
花篮
分享
_________________
8 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-23 13:46 引用回复
SQL Database Access

www.tutorialspoint.com...access.htm

The Python standard for database interfaces is the Python DB-API. Most Python database interfaces adhere to this standard.

You can choose the right database for your application. Python Database API supports a wide range of database servers:

GadFly

mSQL

MySQL

PostgreSQL

Microsoft SQL Server 2000

Informix

Interbase

Oracle

Sybase

Here is the list of available Python database interfaces: Python Database Interfaces and APIs .You must download a separate DB API module for each database you need to access. For example, if you need to access an Oracle database as well as a MySQL database, you must download both the Oracle and the MySQL database modules.

The DB API provides a minimal standard for working with databases using Python structures and syntax wherever possible. This API includes the following:

Importing the API module.

Acquiring a connection with the database.

Issuing SQL statements and stored procedures.

Closing the connection

We would learn all the concepts using MySQL, so let's talk about MySQLdb module only.

www.tutorialspoint.com...access.pdf



carsfound.jpg

 
花篮
分享
_________________


上一次由泼妇之友于2014-8-23 15:37修改,总共修改了1次
9 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
泼妇之友
(只看此人)



文章 时间: 2014-8-23 13:47 引用回复
** in depth

www.tutorialspoint.com...python.htm
 
花篮
分享
_________________


上一次由泼妇之友于2014-9-03 03:07修改,总共修改了2次
10 楼 | 返回顶端
阅读会员资料 发送站内短信 主题 User photo gallery 礼物  
 
回复主题     |##| -> |=|     论坛首页 -> 电子电玩 所有的时间均为 美国太平洋时间
1页,共3 分页: 1, 2, 3  下一页  


注:
  • 以上论坛所有发言仅代表发帖者个人观点, 并不代表本站观点或立场, 加西网对此不负任何责任。
  • 投资理财及买房卖房版面的帖子不构成投资建议。投资有风险,责任请自负
  • 对二手买卖中的虚假信息,买卖中的纠纷等均与本站无关。
  • 黄页热门商家 免费个人广告
    发布商业广告

    不能在本论坛发表新主题
    不能在本论坛回复主题
    不能在本论坛编辑自己的文章
    不能在本论坛删除自己的文章
    不能在本论坛发表投票
    不能在这个论坛添加附件
    可以在这个论坛下载文件

    论坛转跳: 

    泼妇之友, nessus, 泼妇之友, 泼妇之友, A70Plus, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友
    潜力帖子 精华帖子 热门帖子
    最新卫片显示:床铺的大坑旁边出现...
    是不是等于跪了?
    美国钻地弹伊朗大显神威
    挽救IBM:【宇宙丝绸之路】的建设设...
    谈谈公民老黑的离开 ,老黑的经济和...
    【注意不要再做这些事,否则将会被...
    我也发个回国吃吃玩玩住酒店的感想
    事关​全民!加拿大五大行...
    除了打仗还在发生一件可以改变人类...
    快过沙子慢过水
    ‘This Country Is a Paradise’
    中国城市房价跌幅榜
    国内餐馆水平大跌
    元初龙眼
    刘厅长,窗外有蓝天!
    从阿坝州到甘孜州,穿越川西
    “五到八年后再看,疫情后的2023年...
    又看完一部电视剧
    新疆伊犁 赛里木湖 三大草原恰西 喀...
    新疆阿勒泰 五彩滩 喀纳斯 魔鬼城
    在乌鲁木齐看娘娘骑过的汗血宝马
    一张天主教在华发行纸钞略考
    5月2日换币盛况
    维达大师,另类收藏,请您欣赏!
    清代福州台伏钞票
    四川官钱局钞票
    大汉四川军政府军用银票
    今年新币发行计划
    要出一个新的一元
    古董金币
    超级重磅!加拿大要进口中国电动车!
    皮尔今天在温哥华 - 蓝色wave - 保...
    几分钟前,中国强硬反击,征34+50,...
    曼谷高楼直接倒了
    我说我希望特朗普赢,老公气得眼睛...
    知乎?加西网上为什么有老男人喜欢...
    明明有能力统台,大陆为何迟迟不动手?
    貌似ndp稍占上风。。。。。
    今天是感恩节,跟大家道个别,以后...
    咱最后还是投了ndp
    生平第一次被偷车了
    中国会不会武统台湾
    突发:台湾队战胜中国队奥运夺冠,...
    温哥华房姐出事了
    有在看总统辩论的吗?

    最新新闻 热门新闻 热评新闻
    流亡那么多年后,达赖喇嘛为何决定延续转世制度?
    一次看懂:马斯克的"美国党"可能长啥样?
    38岁抗癌网红宣布停掉天价药,决定为自己活一回
    小行星撞地球?来看看科学家密切关注的天体
    天王嫂方媛怀第三胎 短裙配厚底鞋被误认学生妹
    面对中国压力,达赖喇嘛明确其继任者条件
    瑞士:间谍活动威胁日益严重,主要来自俄、中
    考核压力下的"自救":中国银行人"互换指标"
    突发:印尼一艘载65人客轮在巴厘岛附近沉没
    川美爆火毕业作品《祷》买家现身:原来是他!
    美国称朝鲜网络特工伪装身份渗透全球多国企业
    广州男模被骗到缅甸 亲属:前老板邀请赴泰拍封面
    王毅赴布鲁塞尔 欧盟敦促北京停止破坏欧洲安全
    比亚迪搁置墨西哥建厂计划 副总裁李柯回应
    天降美钞!男子去世,家人直升机"撒钱告别"
    彭博:美国以稳定币巩固美元地位 促中国探讨使用
    "中共中央决策议事协调机构",究竟是什么东西?
    因手机存副总统万斯光头丑照 他被拒绝入境美国
    加国这政策今起出台 钱包鼓一丢丢
    上海交大生遭足球砸头倒地 又遭肇事家长狂踹痛殴
    美国哈佛和中国罗刹之间没有任何"共同的人性"
    凯特王妃谈抗癌:只是装得很勇敢 困难的还在后面
    南韩网友疯传64岁准法务部长「超狂肌肉照」
    日本鹿儿岛海域发生5.5地震 此前已有超800次地震
    美参议员撑大而美法案投关键一票 被质问时语塞
    1亿美元成太空垃圾? 贝佐斯"甲烷卫星"失联 收摊
    伊能静在法国被拍屁股下垂凹陷 秦昊大肚腩
    美、越签订贸易协议 产地涉中国等地将征40%关税
    房产"最佳投资"?加国数据揭真相
    逃离加国人数创历史新高 BC省最猛
    受邀出席中国抗日阅兵 他被逼在中美之间站队
    以色列向中国喊话:你不买,伊朗就崩溃
    五台山僧人怒扔信众供奉的大米 官方通报
    媒体对决川普落败!CBS母公司支付川普巨额和解
    又是大温这网红景点 亚裔男子失踪
    房价不敢跌?加拿大住房部长的难言之隐曝光
    川普拟携豪华CEO天团访北京 ? 被曝"4大目的"
    不记得石破茂名字?川普自创新称呼引热议
    加国这政策今起出台 钱包鼓一丢丢
    因手机存副总统万斯光头丑照 他被拒绝入境美国
    上海交大生遭足球砸头倒地 又遭肇事家长狂踹痛殴
    "中共中央决策议事协调机构",究竟是什么东西?
    美国哈佛和中国罗刹之间没有任何"共同的人性"
    美、越签订贸易协议 产地涉中国等地将征40%关税
    伊能静在法国被拍屁股下垂凹陷 秦昊大肚腩

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


    Powered by phpBB 2.0.8
    Terms & Conditions    Privacy Policy    Political ADs    Activities Agreement    Contact Us    Sitemap    

    加西网为北美中文网传媒集团旗下网站

    页面生成: 0.0708 秒 and 7 DB Queries in 0.0025 秒