Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I never understood how import plugins
#1
I use a windows operating system.


I wanted to learn Python, but I never knew how to import plugins necessary for the programs to work. Can anyone help me out?
Reply
#2
Mostly you just import them on a need basis. If you need something special, a simple google search can help you. And also you may need to download them off supporting websites.
"Death smiles at us all. All a man can do is smile back".
[Image: siggy.png]
MSN: Xzotic@live.com
Reply
#3
import whateverthepluginiscalled

That pretty much sums it up.

Like...
Code:
import time
time.sleep(5)

If you're using a third party plugin download it to your Python folder and then use it the same way.
Code:
import wx
class Hello(wx.Frame):
........

Edit: The import part was showing you how you do it and the following lines are examples of there use.
Reply
#4
These plug-ins are called modules

They contain information that is needed to run a certain function.

Usually in:
C:\Python26\Lib
[Image: idgjkO.png]
Reply
#5
Thanks for sharing this post.I am very pleased to read this article.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)