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

首頁

新聞資訊

論壇

溫哥華地產

大溫餐館點評

溫哥華汽車

溫哥華教育

黃頁/二手

旅游
搜索:  

 論壇通告:  轉載新聞請務必注明出處,這些媒體請不要轉,謝謝   請不要上傳第三方有版權的照片,請尊重版權,謝謝   批評商家需要注意  
 個人空間: XY | 亂想 | 羅蓬特機器人 | 忽然聽到一個墨西哥女仔唱。呐呐呐呐呐呢呐 | 客觀中立而實事求是,唯服理據而杜絕辱罵 | 湖裡湖塗 | 五木森林 | 血流成河 | 我大爺 | 滄海一聲笑 | 大溫房產和地產研究 | 分享你的人生,尋找新的朋友 | 靜觀雲卷雲舒 | 顧曉軍 | 不會游泳的魚 | 天涯逐夢 | 我的退休生活 | 玫瑰和糖 | 白龍王許道長 | dwx
 最新求助: 請問誰知道哪裡有賣理發的電動推子?   忽然有個疑問:戰爭時期,加拿大拿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, 潑婦之友, 潑婦之友, 潑婦之友, 潑婦之友, 潑婦之友
    潛力帖子 精華帖子 熱門帖子
    加拿大央行准備降息了
    大家都知道毒品汎滥是流浪汉掉[饕
    多房暴負:溫市豪宅跌破2012年
    大溫租客夫婦告房東 張口要賠9萬
    重磅!央行行長稱加國央行即將降息
    美國四月經濟大幅衰退 美股大漲
    我就是不明白,這貼是怎麼掘了瘟凍...
    美軍還沒撤,俄軍就進駐了尼日爾境...
    加西不眠夜完了
    為何電動車滯銷?
    今天買了些加航股票
    續了房貸 3年 variable closed
    你有自由意志麼??????
    尋找生肉貨源
    朱令案,有新轉機!
    The Value of Money
    再去chief peak
    這些是不是真貨?
    同號雷達鈔
    今天包粽子 兼和粉紅吵架
    熱烈恭賀錢幣小站新任版主四季豆同學
    北溫換硬幣活動取消
    加拿大唯一無國籍的硬幣
    每周版主推薦,美女精選(二七二)
    美國印第安人1元卷今日發貨
    每周版主推薦,美女精選(二七一)
    電視劇繁花觀後感之阿寶到底喜歡哪...
    每周版主推薦,美女精選(二七零)
    2024 雪中即景
    每周版主推薦,美女精選(二六九)
    在北美得了大病真是只能等死了
    國內最驕傲的兩件事外賣和快遞
    烏克蘭已經花掉了美國七百多億美元
    大家如何看待北京同仁堂汞超標5萬倍...
    身在海外,痛罵國內人不反抗挺壞的
    95個小時,這是看急診嗎
    疫情4年後,海外華人去中國的觀感
    在加做房東有罪嗎?
    坎昆比夏威夷好玩
    中國沒有恐襲
    BC省長宣布:BC將實行永久夏令時 但...
    臥槽 太貴了
    你們回國有很安全的感覺嗎
    除了中國,還有第二個國家買火車票...
    請問為啥Tylor Swift這麼火啊?

    最新新聞 熱門新聞 熱評新聞
    普京誓要拿下這張大單!中國:視俄方幾許誠意(圖)
    加州一張床賓州一套房? 50城掙多少錢才能買房?(圖)
    催淚彈上場 紐約市長:校園抗議有外部煽動者存在!(圖)
    筆記本電腦焊死內存不讓用戶升級 惠普等廠商回應
    擊落中國空飄氣球?!韓媒:3月20日KA-1攻擊機建功(圖)
    溫哥華又要變天 周末要雨中跑馬了
    中國留學生報稅被CRA抽查不回復 結果悲劇了(圖)
    美大學反以示威多東方面孔 疑中國留學生積極參與
    仍然後怕!梅大高速塌方 多名親歷者憶那一瞬間(圖)
    逾10億美元串謀欺詐 郭文貴助理王雁平認罪(圖)
    溫市評為米其林餐廳最便宜城市之一
    價廉物美...為了它 北京三高招“豁出去”(圖)
    凱特王妃罹癌後 兩夫妻正經歷地獄般折磨(圖)
    巴基斯坦巴士墜谷 已有20人喪生 還有多人受傷(圖)
    勾結毒販....加銀行巨頭涉洗錢案料越挖越多(圖)
    “好像二戰前”,如此之多的國家在磨刀霍霍(圖)
    「特斯拉告特斯拉」 馬斯克在印度打商標侵權官司(圖)
    傳遞巴黎奧運聖火變裝皇後參一咖 法國極右派怒嗆(圖)
    為什麼巴勒斯坦人可以指望美國學生而非阿拉伯盟友
    TikTok鼓動美國用戶打爆議員電話抗議 美國會或就此調查
    大聰明!不能抄了,華為又出招伸手美尖端學界(圖)
    日法同意啟動軍隊《相互准入協議》談判 擴大安全網建構
    大溫華人請注意 誰家丟了這個寶?
    債券市場激烈波動 加央行6月降息可能性全面飆升(圖)
    中國官宣:又拿下一個全球第一(圖)
    BC父親憤怒 被迫付去世兒子的罰單
    恐怖!紐約17歲少女公寓外 慘遭持刀刺胸噴血亡
    周末大溫超市優惠搶先看 掃貨指南
    此次事故最大教訓:開車要麼快,要麼慢(圖)
    震驚!加國母親帶嬰兒醫院等17小時
    CMHC預測現房價格將飆升20% 奇怪?
    女經紀分享看房視頻 網友直呼驚悚
    重磅!引加印沖突的謀殺案凶嫌被捕
    白紙運動後 我在看守所地獄般日子
    誰需要打?加國秋季新冠疫苗指南
    起火 五一假日,中國電動車事故多
    川普:“我沒睡覺,只是閉上我美麗的藍眼睛”(圖)
    中俄首次 習普重磅交易開始露鋒芒
    美多所大學清場 騷亂者面罩下華人面孔引關注(圖)
    特斯拉空中翻滾重摔落地無人亡 中網友齊酸華為(圖)
    一聲歎息 清華大學校慶感覺很怪(圖)
    河南大學大禮堂失火,修繕項目中標公司曝光(圖)
    用跑步機虐待6歲兒致其身亡 男子面臨終身監禁(圖)
    維吾爾外科醫生揭露恐怖真相,曾參與器官移植(圖)
    大溫華女穿睡衣家門口被捕 告皇家騎警索賠35萬(圖)

    更多方式閱讀論壇:

    Android: 加西網
    [下載]

    Android: 溫哥華論壇
    [下載]

    PDA版本: 論壇

    加西網微信

    加西網微博


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

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

    頁面生成: 0.0737 秒 and 9 DB Queries in 0.0040 秒