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

首页

新闻资讯

论坛

温哥华地产

大温餐馆点评

温哥华汽车

温哥华教育

黄页/二手

旅游
搜索:  

 论坛通告:  转载新闻请务必注明出处,这些媒体请不要转,谢谢   请不要上传第三方有版权的照片,请尊重版权,谢谢   批评商家需要注意  
 个人空间: XY | 我大爷 | 乱想 | 白龙王许道长 | 罗蓬特机器人 | 忽然听到一個墨西哥女仔唱。呐呐呐呐呐呢呐 | 客观中立而实事求是,唯服理据而杜绝辱骂 | 快乐的狮子 | 顾晓军 | 国际货运海运(家具设备食品材料货品) | 湖里湖涂 | 血流成河 | 大温房产和地产研究 | 一只叶拉拉 | 滄海一聲笑 | 我的退休生活 | 我在温哥华 | 五木森林 | lxls | 大伙一起玩
 最新求助: 请问谁知道哪里有卖理发的电动推子?   忽然有个疑问:战争时期,加拿大拿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, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友, 泼妇之友
    潜力帖子 精华帖子 热门帖子
    手机截屏方法 转
    4月份房市发生变化,经济下行开始
    租客联合起来拒付房租
    房屋应该彻底市场化
    多房暴负:西温house跌好惨
    Lougheed新楼房降价促销啦 抢啊
    帅皇帝
    炸锅!美国加油回来被收税!注意边...
    一名加拿大移民的血泪长文:我妻之死
    美国施压 路透:墨西哥将不对中国电...
    2024Apr18 这么多"完了"贴
    身在海外,痛骂国内人不反抗挺坏的
    去美国加油回来要交税了
    泽连斯基:中国可以“加速”和平进程
    王毅同伊朗外长阿卜杜拉希扬通电话
    The Value of Money
    再去chief peak
    这些是不是真货?
    同号雷达钞
    今天包粽子 兼和粉红吵架
    热烈恭贺钱币小站新任版主四季豆同学
    北温换硬币活动取消
    加拿大唯一无国籍的硬币
    每周版主推荐,美女精选(二七二)
    美国印第安人1元卷今日发货
    每周版主推荐,美女精选(二七一)
    电视剧繁花观后感之阿宝到底喜欢哪...
    每周版主推荐,美女精选(二七零)
    2024 雪中即景
    每周版主推荐,美女精选(二六九)
    95个小时,这是看急诊吗
    疫情4年后,海外华人去中国的观感
    在加做房东有罪吗?
    坎昆比夏威夷好玩
    中国没有恐袭
    BC省长宣布:BC将实行永久夏令时 但...
    卧槽 太贵了
    你们回国有很安全的感觉吗
    除了中国,还有第二个国家买火车票...
    请问为啥Tylor Swift这么火啊?
    有人今天不做大餐吗
    挖坟的ID大聚会
    啊呀,猪队友又惹祸了:刘梦颖亲自...
    台湾故宫国宝,法理上的所有权
    国移啊国移

    最新新闻 热门新闻 热评新闻
    上海212套豪宅"日光"收金70亿 1.1亿"楼王"被选走(图)
    雷军回应造车亏损:没听说有一家是挣钱的(图)
    以反击恰逢哈梅内伊生日,消息人士:是有限度反击
    川渝多地燃气费异常上涨 燃气公司:或有两点原因
    “狠人”王健林:万达总部大楼和万达电影均易主(图)
    可能封禁TikTok的立法被重提,并纳入众议院外援法案
    以色列实施报复 伊朗接下来咋办?
    伊以冲突:谁对伊朗有影响力?(图)
    北京半马冠军疑被取消:田协未显示成绩(图)
    将耗资144亿美元!超9亿人的印度大选19日启动(图)
    亲巴学生校内示威 哥大校长无奈请警“清场”
    Meta开源大模型Llama 3:性能直逼GPT-4(图)
    突发!以色列对伊朗发动导弹攻击
    突发 美官员称以色列导弹袭击伊朗 多航班被叫停
    “带走一整条供应链” 这些年中国撤走多少外企?(图)
    大爆炸画面曝光! 乌奇袭俄空军基地 俄战损惨重(图)
    "肮脏的亚洲人" 华裔兄弟自卫被控罪 数百人抗议(图)
    范曾和黄永玉的恩怨:用画作痛骂对方(图)
    一天超2万道闪电 南宁出现11级强风+雷雨(图)
    抗议者大闹谷歌园区 28名谷歌人参与 全被炒鱿鱼!(图)
    以色列和伊朗的冲突与中国的角色
    微博新“附注”功能真的能减少虚假信息吗?
    抓狂!豪华公寓$3100万维修大账单
    洛杉矶豪宅入室案 嫌犯1死1伤 邻居称租户是华人(图)
    这些好习惯你有吗?做到这一点「延寿15年」
    奇才!上海小学生科创赛获奖作品被指“已达硕博水平”(图)
    最新排名出炉 温哥华机场北美第一
    你家有洗衣机吗?政府希望你“以旧换新”促经济(图)
    世卫组织警告:人类感染禽流感令人担忧 恐有人传人(图)
    吹哨人:波音产有瑕疵飞机 零件不合就蛮力硬怼…(图)
    关系紧张 房东毁了她加国的新生活
    小杜悲剧!加国民众悲观愤怒创新高
    免费高贵林社区节下周办 多种美食
    美国宣布制裁伊朗!让他付出代价
    传中共3中全会要抓正国级政治骗子
    大温卖房中文手写合同 法官这样判
    短租市场变天!BC省长今日宣布新规
    素里六个春夏值得去游玩的好地方
    BC租客提前终止租约 这次房东赢了
    双方觉火烧眉毛 中国对他来访欢迎
    把小黑熊从树上拉下自拍!不想活了?
    抓狂!豪华公寓$3100万维修大账单
    最新排名出炉 温哥华机场北美第一
    周海媚在北京下葬 陵园环境曝光
    “毫无幸福感!”大批华人退籍回流(图)

    更多方式阅读论坛:

    Android: 加西网
    [下载]

    Android: 温哥华论坛
    [下载]

    PDA版本: 论坛

    加西网微信

    加西网微博


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

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

    页面生成: 0.0712 秒 and 9 DB Queries in 0.0025 秒