O'Reilly Python cookbook code samples ratings review
Welcome, guest | Sign In | My Account | Store | Cart ActiveState Code » Recipes LanguagesTagsAuthorsSets Popular Python recipes Tags: Recipe 1 to 20 of 4591 « Prev 1 2 3 ... 230 Next » View popular, latest, top-rated or most viewed Feed of the popular Python recipes Python Versions Top-rated recipes Python tags more… algorithms database debugging files graphics linux math mathematics network oop programs python shortcuts sysadmin text threads tkinter web windows xml Accounts Code Recipes Feedback & Information ActiveState Privacy Policy | Contact Us | Support © 2021 ActiveState Software Inc.
Creating a GUI using Python, WxWidgets, and wxPython
After putting off this tutorial for as long as I possibly could (I’m not sure why) I have finally decided to buckle down and learn how to use WxWidgets using the WxPython Python bindings. Installing Getting WxWidgets and WxPython installed on my Debian Linux computer was as simple as installing the python-wxgtk2.6 Debian package. If you have any problems installing wxPython on your computer I suggest that you follow the instructions in the wxPython FAQ. Or you can follow the Getting Started instructions on the wxPython wiki. Setting up the Window Now that you have WxWidgets and WxPython installed it’s time to write a quick wxPython application. import wx if __name__ == "__main__": app = wx.App() app.MainLoop() Save the file as wxHello.py, or whatever you would like. The next thing that we do is create a wx.App and then call it’s MainLoop function, which starts the main GUI event loop. Notice the last little instruction there: It’s not much but it’s a start. Adding the Widgets Wrap up
Introductory Computing, using Python as the high level language
5. binary numbers, the bit (b), byte (B) and word Computers have millions of pieces of hardware (memory/registers) that are in one of two states up/down (N/S) (magnetism, harddisk) switch on/off voltage high/low current high/low These states are represented by 0/1 You don't have to know what the hardware is doing or even what the hardware technology is, or whether a 0 is represented by high or low voltage. Some hardware maintains its state without power e.g. floppy disks harddisks flash memory Most hardware looses its state when switched off e.g. RAM (random access memory in the computer) how much memory is in a typical hard disk, flash disk, floppy disk, RAM [1] ? Since there are only two states (two = bi), the state is represented by a binary digit (called a bit). 5.1. The number system in common daily use is called decimal. 5.2. bit, wikipedia ( The value represented by each digit in the number 102 depends on it's position. From this we find 5.5. 6. 6.2.
Swaroop C H, The Dreamer » A Byte of Python
Girish Kadkol and Sampad Swain say: “Aspiring techies and college students recommend to follow @swaroopch , his blogs are good and knowledgeable.” Atul Chitnis says: ”What’s awesome is @swaroopch’s blog posts, and how they MAKE me & others think.” Snehal Pal says: ”His blog is an amazing assortment of advice and contains stories of life as a techie, startups and hacks.” Sreehari says: ”Awesome awesome blog of @swaroopch ! Prashish Rajbhandari says:“Reading @swaroopch ‘s blog. Sitakanta says: ”The blog of @swaroopch is responsible for me leaving job to do this mad thing called a startup. Vinay H R says:“The more I read @swaroopch blogs, the more inspiration I get from it.” Krishna Bharadwaj says: “I consider Paul Graham and Joel Spolsky as some of the greatest technical writers. Avinash Kundaliya says:“Yeah! Chaitanya Nettem says: ”I love your blog. A R Karthick says:“Your blog posts show great clarity of thought.” Chirag Gupta says: “I think I started following his blog like 7 years back.
Related:
Related: