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

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  转载新闻请务必注明出处,这些媒体请不要转,谢谢   请不要上传第三方有版权的照片,请尊重版权,谢谢   批评商家需要注意  
 个人空间: 血流成河 | 我大爷 | XY | 乱想 | 快乐的狮子 | 客观中立而实事求是,唯服理据而杜绝辱骂 | 忽然听到一個墨西哥女仔唱。呐呐呐呐呐呢呐 | 顾晓军 | 白龙王许道长 | 宽广的未来! | 罗蓬特机器人 | 我在温哥华 | 国际货运海运(家具设备食品材料货品) | nessus | 我的退休生活 | 星空 | 大温房产和地产研究 | 花随风 | 湖里湖涂 | 吕洪来的个人空间
 最新求助: 请问谁知道哪里有卖理发的电动推子?   忽然有个疑问:战争时期,加拿大拿PR卡未入籍的永久居民会被强制服兵役吗?   这个银条   如何修改会员名?
 论坛转跳:
     发帖回帖获取加西镑, 兑换精彩礼物

论坛首页 -> 电子电玩

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

分页: 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, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友
    潜力帖子 精华帖子 热门帖子
    华裔房东要入住 租客败诉耿耿于怀
    多房暴负:素里镇屋赔好惨
    有小溪的大地旧屋为啥便宜?
    日子过得好的时候,民主问题不大,...
    加拿大人均国内生产总值暴跌4200元,...
    终于把税给报了
    吃包子
    我对方慧兰的印象
    为什么加拿大有这么多的老鼠
    沈阳砍人你就着急了,白石砍人连续2...
    宋朝甲胄
    一问都不好,一劝都不回
    这个加拿大医生应该建议病人去美国...
    苛税猛于虎
    经济这副鬼样,内卷只是刚刚开始
    The Value of Money
    再去chief peak
    这些是不是真货?
    同号雷达钞
    今天包粽子 兼和粉红吵架
    热烈恭贺钱币小站新任版主四季豆同学
    北温换硬币活动取消
    加拿大唯一无国籍的硬币
    每周版主推荐,美女精选(二七二)
    美国印第安人1元卷今日发货
    每周版主推荐,美女精选(二七一)
    电视剧繁花观后感之阿宝到底喜欢哪...
    每周版主推荐,美女精选(二七零)
    2024 雪中即景
    每周版主推荐,美女精选(二六九)
    在北美得了大病真是只能等死了
    国内最骄傲的两件事外卖和快递
    乌克兰已经花掉了美国七百多亿美元
    大家如何看待北京同仁堂汞超标5万倍...
    身在海外,痛骂国内人不反抗挺坏的
    95个小时,这是看急诊吗
    疫情4年后,海外华人去中国的观感
    在加做房东有罪吗?
    坎昆比夏威夷好玩
    中国没有恐袭
    BC省长宣布:BC将实行永久夏令时 但...
    卧槽 太贵了
    你们回国有很安全的感觉吗
    除了中国,还有第二个国家买火车票...
    请问为啥Tylor Swift这么火啊?

    最新新闻 热门新闻 热评新闻
    为何加国聪明投资者会购买独立屋?
    白酒就辣椒...喝酒四巨头,一年全离世(图)
    肿瘤医生评论《我妻之死》的治疗及加拿大医疗(图)
    中国人到欧美旅游,为何就成了一宗罪?(图)
    头号红左女通缉犯,栽在了跳舞上(图)
    刚刚,中国造船的世界第一,被夺走(图)
    没有未来!23岁留学生来加一年喊回国(图)
    离谱 加国月租千元只能住客厅帐篷
    松鸡山著名GG登山步道本周末开放
    继北大之后,中国大学运动会快成“洋相大会”了(图)
    恐怖!男子500万RMB买别墅 进门惊见遗体(图)
    今年还会吗?BC热穹致600多人死亡
    日本排放她痛骂日本 质疑燃气被锤认错求放过(图)
    加航推付费改座位新政 令民众不满
    明天温哥华这里响枪 别慌其实是..
    涉嫌受贿的伊万诺夫有一栋估值10亿卢布豪宅?克宫回应(图)
    意大利威尼斯开收进城费,交5欧元就可进城(图)
    男子帮女子报警被砍断手筋,两打人者最高判3年半(图)
    地下钱庄2年流水2个亿!此类行为为何屡禁不止?(图)
    川普到工地带火一名工人 “他代表了美国大多数”(图)
    禁令出了一大堆,为什么禁不住各地的逐利冲动?(图)
    女子突被移民局告知:公民身份有误
    日本制造再曝丑闻 这一巨头承认了
    曾经高考的热门捷径“艺考”,如今只能困在二本(图)
    北京当局要求:公务员骑车出行,自带水杯…(图)
    11岁女孩遭妈妈前男友性侵,为何只判了16年?(图)
    哈马斯高官:可以放下武器,如能按照1967年...(图)
    美国田纳西州通过法案,允许教师带枪到学校(图)
    侵占数百万美元国有土地,乌克兰农业部长被捕(图)
    印尼男女因婚外行为被处鞭刑,每人20下伤口醒目(图)
    华裔房东要入住 租客败诉耿耿于怀
    快领福利!BC免费空调看你能否薅到
    物价太贵 许多加拿大人吃过期食品
    "我妻之死"全网爆红:没有深情只有
    最新!一半美国人的态度发生了巨大转变(图)
    回国航班紧急迫降!大批华人滞留,辗转4天才落地(图)
    南方异动要变天 谁将取代习?(图)
    “宁可收掉TikTok,也不会出售”
    借钱修车"误"还款 加男汽车被拖走
    国际人权专家:台湾人,勇敢废死吧!
    备受争议 温村小山社会住房已开建
    加航推付费改座位新政 令民众不满
    松鸡山著名GG登山步道本周末开放
    视:波音747客机在美着陆失败 "上下弹跳"惊呆网友
    汽车失控冲进温市中心诊所 1人伤

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


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

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

    页面生成: 0.0746 秒 and 8 DB Queries in 0.0035 秒