| 廣告聯系 | 簡體版 | 手機版 | 微信 | 微博 | 搜索:
歡迎您 游客 | 登錄 | 免費注冊 | 忘記了密碼 | 社交賬號注冊或登錄

首頁

溫哥華資訊

溫哥華地產

溫哥華教育

溫哥華財稅

新移民/招聘

黃頁/二手

旅游
搜索:  

 論壇通告:  請不要上傳第三方有版權的照片,請尊重版權,謝謝   轉載新聞請務必注明出處,這些媒體請不要轉,謝謝   批評商家需要注意  
 個人空間: 花隨風 | NotmeL8 | 羅蓬特機器人 | XY | 一襲絳襦落鵬城,疑似玄女下九天 | 白龍王許道長 | 豬頭看世界 | 顧曉軍 | lxls | 異鄉的世界 | 靜觀雲卷雲舒 | MEIXI | Amy Yi | 亂想 | 湖裡湖塗 | 呂洪來的個人空間 | 大溫房產和地產研究 | 53757645468 | 客觀中立而實事求是,唯服理據而杜絕辱罵 | 格局
 最新求助: 請問誰知道哪裡有賣理發的電動推子?   忽然有個疑問:戰爭時期,加拿大拿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, 潑婦之友, 潑婦之友, 潑婦之友, 潑婦之友, 潑婦之友
    潛力帖子 精華帖子 熱門帖子
    保守黨正式向少數黨政府提出加拿大...
    中國有兩艘航母在建造之中。。。。
    甘肅天水市政府被一窩端了!
    杠精大軸被招安了?還是被心怡了?
    154年前的今天是BC加入聯邦的日子
    美國優先?以色列優先!
    國語歌曲。二百三十五
    台語歌曲 。五十七
    老天很配合
    真的,我實在等不及了,tian共的誰...
    再來大童話
    有肉排吃貨嗎?
    哪個瓜大?
    美國撤銷巴西聯邦最高法院法官亞歷...
    對中國某幾屆領導人的感覺
    青龍偃月刀請您欣賞!
    加拿大海洋三省狂奔游 (三) New Bru...
    加拿大海洋三省狂奔游(二)Nova scotia
    加拿大海洋三省狂奔游(一)PEI
    從阿壩州到甘孜州,穿越川西
    RCM 2025年6/7月新幣
    “五到八年後再看,疫情後的2023年...
    又看完一部電視劇
    新疆伊犁 賽裡木湖 三大草原恰西 喀...
    新疆阿勒泰 五彩灘 喀納斯 魔鬼城
    在烏魯木齊看娘娘騎過的汗血寶馬
    一張天主教在華發行紙鈔略考
    5月2日換幣盛況
    維達大師,另類收藏,請您欣賞!
    清代福州台伏鈔票
    超級重磅!加拿大要進口中國電動車!
    皮爾今天在溫哥華 - 藍色wave - 保...
    幾分鍾前,中國強硬反擊,征34+50,...
    曼谷高樓直接倒了
    我說我希望特朗普贏,老公氣得眼睛...
    知乎?加西網上為什麼有老男人喜歡...
    明明有能力統台,大陸為何遲遲不動手?
    貌似ndp稍占上風。。。。。
    今天是感恩節,跟大家道個別,以後...
    咱最後還是投了ndp
    生平第一次被偷車了
    中國會不會武統台灣
    突發:台灣隊戰勝中國隊奧運奪冠,...
    溫哥華房姐出事了
    有在看總統辯論的嗎?

    最新新聞 熱門新聞 熱評新聞
    知名裝修企業創始人疑墮亡 公司突停業涉近百家門店
    川普撤銷對加州高鐵40億撥款 17年花130億建了個啥?
    溫哥華中型豪宅市場6月份溫和增長
    解密"雅魯藏布江水電站"為何是人類歷史最大工程
    廣東爆新疫情!千人全身紅疹關節痛 怒譙官方又瞞報
    飛機撞上學校 19人死亡百余人受傷
    黃仁勳坦言CEO不好當:總感覺公司快倒閉
    川普半年 美國版"一黨專政"和"定於一尊"都實現了
    黃石黑熊吃掉露營地游客的食物 已被"人道"擊斃
    致9兒童溺水 美加召回520萬個泳池
    演唱會捉奸:不認識的CEO出軌為何成全球熱話?
    若川普和普京9月同時訪中 不排除會面
    騎警巡邏車與SUV相撞 4人被送醫院
    美眾院通過法案 禁國防部展示台灣納入中國地圖
    BC男子中大獎後要去阿拉斯加釣魚
    阿拉斯加航空「客機全停飛」,原因曝光
    佩斯科夫:支持俄烏新一輪談判,俄代表團成員不變
    鄧小平和陳雲兩大死對頭,為了什麼又齊心了?
    受賄2.89億,中國電科原副總經理何文忠被判死緩
    女生為交社保被負債200萬元,社保權益豈能淪為...
    60年前咬掉性侵者舌頭被判刑,韓女子尋求翻案...
    演唱會"出軌門"更多內幕曝光:女方剛買豪宅…
    昔日老將陸續離職、萬達廣場被賣,王健林成孤家寡人
    涉嫌抄襲論文,南韓前總統夫人金建希"博士學位遭撤銷"
    普京特朗普將在北京會晤?克裡姆林宮回應
    微軟警告政府和企業文件共享服務器遭攻擊
    剛融了7個億的賈躍亭,又要"被抓"了?
    為何企業賺錢卻仍裁員?專家揭露"內幕"
    川普如果開除鮑威爾,如何賺一筆?
    中國社科院再現內訌 新一波大清洗來臨?
    慘 這家庭取消房屋保險後房被燒毀
    加拿大幸福城市排行榜 溫哥華倒數
    崩潰 溫數百戶因這拿不到熱泵回扣
    千人換妻派對 寧靜小鎮變"性愛趴基地" 居民崩潰
    LA車輛沖撞人群視頻曝光!30傷7命危 肇事者遭群毆
    仇外、排外?日本政局面臨歐洲化的威脅
    一場噩夢 加拿大女子被美ICE拘留
    佩斯科夫:支持俄烏新一輪談判,俄代表團成員不變
    鄧小平和陳雲兩大死對頭,為了什麼又齊心了?
    受賄2.89億,中國電科原副總經理何文忠被判死緩
    彭麗媛突然現身,暴露了三點不尋常
    女生為交社保被負債200萬元,社保權益豈能淪為...
    60年前咬掉性侵者舌頭被判刑,韓女子尋求翻案...
    演唱會"出軌門"更多內幕曝光:女方剛買豪宅…
    昔日老將陸續離職、萬達廣場被賣,王健林成孤家寡人

    更多方式閱讀論壇:

    Android: 加西網
    [下載]

    Android: 溫哥華論壇
    [下載]

    PDA版本: 論壇

    加西網微信

    加西網微博


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

    加西網為北美中文網傳媒集團旗下網站

    頁面生成: 0.0686 秒 and 7 DB Queries in 0.0019 秒