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

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  请不要上传第三方有版权的照片,请尊重版权,谢谢   转载新闻请务必注明出处,这些媒体请不要转,谢谢   批评商家需要注意  
 个人空间: XY | 五木森林 | 罗蓬特机器人 | 吕洪来的个人空间 | 猪头看世界 | 细雨飘渺 | Amy Yi | 乱想 | 客观中立而实事求是,唯服理据而杜绝辱骂 | 真情Z下海 | 我的心灵天空 | Invisible world | 三文鱼 | 静观云卷云舒 | 顾晓军 | A70Plus | 花随风 | sasa0f | 大温房产和地产研究 | simajibr1
 最新求助: 请问谁知道哪里有卖理发的电动推子?   忽然有个疑问:战争时期,加拿大拿PR卡未入籍的永久居民会被强制服兵役吗?   这个银条   如何修改会员名?
 论坛转跳:
     发帖回帖获取加西镑, 兑换精彩礼物

论坛首页 -> 电子电玩

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

分页: 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, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友
    潜力帖子 精华帖子 热门帖子
    艾念得书小,不知道他写什么
    ___还是这个好看
    建议:所有的太阳系需要【宇宙会议...
    王志安反美反台,今日被美国原机遣...
    谁决定打台湾,谁就是历史的罪人
    重击倒数计时伊朗不就范 川普火了...
    北方人指路,怎么离不开东南西北
    一枚炮弹击中了伊拉克
    床铺遗言
    老川还要来北京?
    明天TACO吗?
    鹬蚌相争,渔翁得利?
    搞不好,这一屋子人,最后会一个不剩
    从渴望诺贝尔和平奖蜕变。。。
    五角大厦出新招 暗助川普摆脱战争罪
    Royal Canadian Mint 皇家铸币厂202...
    Royal Canadian Mint 皇家铸币厂202...
    TransLink推出限量版Hello Kitty公交卡
    换币活动
    加拿大将发行纪念皇家军团(The Roy...
    加拿大将发行第二枚夜光币
    Royal Canadian Mint 皇家铸币厂202...
    奥兰多(二)迪士尼动物王国
    奥兰多(一)
    Royal Canadian Mint 2026年2月新币
    坎昆(一)
    推荐一个digital的手持放大镜
    RCM 2026年1月新币
    拆卷有惊喜
    炉关寻觅记
    特朗普又干了件冒天下之大不韪的事...
    本宫钢琴弹奏原声第1弹 一首前奏曲
    谢谢管理员秉公执法废除reddragon的id
    超级重磅!加拿大要进口中国电动车!
    皮尔今天在温哥华 - 蓝色wave - 保...
    几分钟前,中国强硬反击,征34+50,...
    曼谷高楼直接倒了
    我说我希望特朗普赢,老公气得眼睛...
    知乎?加西网上为什么有老流氓刘厅...
    明明有能力统台,大陆为何迟迟不动手?
    貌似ndp稍占上风。。。。。
    今天是感恩节,跟大家道个别,以后...
    咱最后还是投了ndp
    生平第一次被偷车了
    中国会不会武统台湾

    最新新闻 热门新闻 热评新闻
    一年消失1362家 国家级灾难已至
    《人民的名义》高育良怎么做才能安全落地?沙瑞金都告诉他答案了
    4月8日追剧日历,《家事法庭》点映收官,《冰湖重生》今日开播
    逐玉:樊长玉假扮丫鬟扣押世子,谢征吃醋强吻爱妻引纷争!
    100万不够?美国人存多少钱才能舒适退休
    四大郁金香节争奇斗艳 繁花似锦!
    中国第一大岛 为何成了日俄争夺的焦点?
    最后一刻急刹车!川普宣布停火两周 并透露原因
    可跑30万公里 专家点名4款2026最可靠SUV
    36连败,太丢人了!CBA"头号混子球队"
    18岁少女发明净水黑科技:微塑料去除率超95%
    阿提米丝2号最强相机竟是10年前老产品
    开年就封杀!房车为啥成了城市"公敌"
    里程碑:第一针逆龄基因治疗注射进人体
    亲日辱华?57岁的陈红被儿子和丈夫害惨了
    重要信号:美三大死对头 联手封杀中国
    穆吉塔巴可能死亡!大型陵墓正在建造
    列治文火爆新餐厅 只专注湖南米粉
    安徽失联女童已遇害,凶手是女邻居,正脸曝光
    宇宙最震撼一刻:地球落下美到窒息
    世界锉咧等!川普开始倒数,全球临"金融末日"
    卖一头猪亏500元 中共"托举"养猪业入寒冬
    罕见一幕:中国民众掀起一场无声的反抗
    泼天的富贵来了,克里姆林宫喜笑颜开
    经济疲软 加拿大央行今年利率变吗
    24岁加国女子病逝 医生称诊断有误
    素里发生枪击和车祸 一男子被控罪
    支付宝中奖1个亿的锦鲤女孩,结局令人唏嘘
    温哥华锡克教大游行 周末多街封路
    加拿大矿企10名员工遭绑架,9人遇难
    经济疲软 加拿大央行今年利率变吗
    罕见信号 互联网泡沫前夜再现?(图
    加国首条高铁反对声浪大 卡尼辩护
    加国房价下降 对首次购房者仍不利
    世界锉咧等!川普开始倒数,全球临"金融末日"
    川普正在掐表威胁 伊朗人盾护能源
    24岁加国女子病逝 医生称诊断有误
    盟友被斩首 北京疑海康威视有内鬼 老总在内300多人被带走
    等不起了!BC居民"打飞的"海外治病
    宇宙最震撼一刻:地球落下美到窒息
    卖一头猪亏500元 中共"托举"养猪业入寒冬
    罕见一幕:中国民众掀起一场无声的反抗
    泼天的富贵来了,克里姆林宫喜笑颜开
    安徽失联女童已遇害,凶手是女邻居,正脸曝光
    列治文火爆新餐厅 只专注湖南米粉

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


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

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

    页面生成: 0.0431 秒 and 7 DB Queries in 0.0015 秒