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

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  转载新闻请务必注明出处,这些媒体请不要转,谢谢   请不要上传第三方有版权的照片,请尊重版权,谢谢   批评商家需要注意  
 个人空间: 罗蓬特机器人 | 快乐的狮子 | 国际货运海运(家具设备食品材料货品) | 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, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友
    潜力帖子 精华帖子 热门帖子
    多房暴负:素里镇屋赔好惨
    有小溪的大地旧屋为啥便宜?
    要相信常识
    纽约大学上百名学生被捕,对宪法的...
    医生警告将因资本利得税改变辞职
    你的同事经常编瞎话吗?
    哥大抗议闹大了
    2024APR23 不报不知道,一报吓一跳
    空置房太多 免租金公寓也没人住了
    美国战略的最大噩梦
    取消BC毒品非刑事化的呼声正大涨
    破败的华埠唐人街
    不承认也是已经输给了雷军
    俄罗斯最终必输 北大教授预言
    真实的农村,是一片人性的荒漠
    The Value of Money
    再去chief peak
    这些是不是真货?
    同号雷达钞
    今天包粽子 兼和粉红吵架
    热烈恭贺钱币小站新任版主四季豆同学
    北温换硬币活动取消
    加拿大唯一无国籍的硬币
    每周版主推荐,美女精选(二七二)
    美国印第安人1元卷今日发货
    每周版主推荐,美女精选(二七一)
    电视剧繁花观后感之阿宝到底喜欢哪...
    每周版主推荐,美女精选(二七零)
    2024 雪中即景
    每周版主推荐,美女精选(二六九)
    在北美得了大病真是只能等死了
    国内最骄傲的两件事外卖和快递
    乌克兰已经花掉了美国七百多亿美元
    大家如何看待北京同仁堂汞超标5万倍...
    身在海外,痛骂国内人不反抗挺坏的
    95个小时,这是看急诊吗
    疫情4年后,海外华人去中国的观感
    在加做房东有罪吗?
    坎昆比夏威夷好玩
    中国没有恐袭
    BC省长宣布:BC将实行永久夏令时 但...
    卧槽 太贵了
    你们回国有很安全的感觉吗
    除了中国,还有第二个国家买火车票...
    请问为啥Tylor Swift这么火啊?

    最新新闻 热门新闻 热评新闻
    俄副防长被捕经历充满戏剧性 绍伊古亲信大清洗?(图)
    欧盟突袭中企:控制员工个人手机,要求获取数据(图)
    特斯拉营收12年最大跌幅 马斯克一句话让股价暴涨(图)
    丑闻不断!英国女狱警与男囚行为不当事件激增(图)
    俄副防长伊万诺夫被捕 面对受贿指控拒绝认罪(图)
    飘忽不定、服务政治 中国统计的法律与儿戏
    美国检察官要求对币安赵长鹏判处36个月监禁
    新病毒来了!法国每周上百儿童进急诊 已5人死亡(图)
    布林肯抵达上海 胡锡进:这次应当属于“恳求之旅”(图)
    加拿大教授认为“西方将因移民问题爆发内战” 马斯克赞同(图)
    中共新一轮金融巡视:只会让金融界更加黑暗腐败
    章子怡拒绝汪峰求助 直言败光家产是他咎由自取(图)
    美媒:“世界级名校校长告密,既可怖又可悲”
    FBI局长警告:美国发生“俄音乐厅”式恐袭可能增加
    风光后破产明星现状:有人摆摊卖菜,有人自杀去世(图)
    纽约华裔少年公然被围殴 市议员关注校园霸凌
    悄悄给儿子买女装!杭州好多家长都这么干...(图)
    女子被搭讪,损失480万元!紧急提醒 ...(图)
    “医生,救救我!”,28岁姑娘却面临失去子宫…
    11岁双胞胎兄弟失联,离家500米河里发现遗体(图)
    前央视一姐董卿久违露面 面容憔悴引关注(图)
    美国政府公开数据 2023年派驻台湾军事人员为……
    女子推尸体办贷款有反转?她可能真不知道人死了(图)
    美参议院通过涉TikTok法案:要求字节剥离TikTok(图)
    全球领导力调查:德国第一,俄罗斯垫底,中国…
    以色列扩大攻击,命令加沙北部更多的撤离
    46万家"阵亡" 一季度餐饮市场颇惨
    改革有底线 赵紫阳曝老邓种下祸根
    上百名学生被捕,哥伦比亚大学巴以冲突为何激化?
    英国首相:将为乌克兰提供“有史以来最大军援”(图)
    医生警告将因资本利得税改变辞职
    取消BC毒品非刑事化的呼声正大涨
    素里地税上涨7% 省府将强推市警局
    不合法 BC法庭取消租客的吸烟罚款
    BC:这天起素里警察局将接管市警务
    五味杂陈 李云迪金色大厅演出火了
    美恋童癖男约2女童开房 遭警击毙
    严重造假!中国首季数据5细节无法自圆其说(图)
    "不被欢迎" 白石被刺伤者妻子愤怒
    加拿大总理特鲁多 心理素质杠杠滴
    看了蒋雯丽的旧照 才明白为啥沦陷
    封禁TikTok议案 美参院朝终点迈进
    北温免费夜市下月回归 美食+美酒
    温村:5月1日起违反这规定罚款$250
    北美最大夜市-列治文夜市周五开幕

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


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

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

    页面生成: 0.0705 秒 and 7 DB Queries in 0.0024 秒