I was about to try when I found myself that I have forgotten permutation formula. I'll be back after some Xtra time perruzing
Stefano Mtangoo 455 Senior Poster
I was about to try when I found myself that I have forgotten permutation formula. I'll be back after some Xtra time perruzing
At last tell us which distro convinced you and why!!
I know it isn't free, but does Visio suits your purpose? Or even MS Word can be used to draw blocks and arrows, if that is what you want.
Design GUI with flow Charts and other visual drawings but not M$ Word.
Something like freeware version of Edraw Max
Thanks
Steve:)
Wxpython is a library GUI to be used with python programs. It is not a program like firefox.exe What you do is call the library from your codes and Bang! it fires up the GUI. Just pick up any simple code from zetcode and run them in IDLE. Wing IDE 101 is good for programmer. NOTE: I'm not wingware marketing guy though :)
my hard drive problem was sorted by shrinking the amount of system restore space as i currently had 35G taken up anyway i have reduced this by giving it a max of 3G
I was wondering: 3GB for sys restore? Is that better way to use resources?? :'(
IMHO no! it should be less unless you've big space with feww things to put there! :)
May be it got wrong during finalization process, or your computer have got a problem or it burnt wrong. Many possibilities! But restart your machine or test in another machine. BTW what Burning software do you use???
Steve
mhh! I think you need to monitor when it starts i.e When Bios starts before loading OS - That black screen, and see which key points to recovery (mine is F11)
Run System Restore and you should be fine!
I start with python; I'll then go for PHP and Java and C++ etc.
Python is simple and powerful. No wonder even NASA uses it
Steve
what went wrong, I mean how did it start?
Which OS are you using??
Ubuntu. Why? I love it! of course multiboot with vista!
Hello All,
Greetings
I need freeware that can help me do with drwing Ideas into blocks. I mean design may be codes and GUI visually. I don't know how to put it well but just need that one
Appreciations
Steve
Go to PHP gys in PHP forum. There are google video on issue just find them!
BTW good place to get answers is PHP forum!
Steve
I'm not server man but once a time my college used Ubuntu server. I have heard of Redhat too but just my contribution
In windows you have
windows, prog files, etc
I recently moved to Ubuntu and have no big Idea of what is which. I need help to corresponding folder hierrachy
thanks all
steve
if you have installed nothing since the problem started, backup your things and start system restore!
In addition I think using int(raw_input()) is the best practice!
Boa constructor? Is project living? I thought the IDE is dead!
Anyway, Paul's advice is best. Just play around it and post any difficulty you get IMHO
http://wiki.python.org/moin/OrganizationsUsingPython
http://www.pythonology.com/success
Keep up and you might be next to say what python have done for you!
Ok My 2Cents here:
Download and Install revo uninstaller, and It should help with uninstalling issues.
Install avast, register and enter key (All free)!
Run it,and right click, and schedule boot time scanning.
Then download and Install wise registry cleaner (free/pro if you have $ for it) and scan and fix invalid registry
then feedback us!
Ihonestly don't know but here are my speculations:
Google for Zip console verion if it exists or if the current version can be called from console. Study the switches and call it from cmd/bat. You can google for any other console app that can zip the file
The reason i don't know is I have so looong not played with batch scripts!
Steve
is there standalone AVG 8 Antispyware?
I will visit them later but if it exixts, let me know
from what I know Notepad++ Is editor not IDE. I think you need to Go for something like Netbeans. Their next version will support python (For now it supports to some extent). It does more than that, maaany languages. Just check their main package and nbpython plugin!
Every day i learn py, I see it doing many things and from what I can see, it can do anything. Anyway i plan to do my massive code for my project sometime this year! For now there are some things I must learn!!
Happy Py Programming!
I think it can do anything you want to do
Python+External Modules+Py2exe+nsis = open source/proprietary software
Happy Python Programming!
when i click call button I get:
Traceback (most recent call last):
File "C:\Users\Elijah Ministries\Documents\NetBeansProjects\Learning Python\src\database - Griboullis.py", line 20, in OnCall
dialog = Dialog(self, -1, "Change caption")
File "C:\Users\Elijah Ministries\Documents\NetBeansProjects\Learning Python\src\database - Griboullis.py", line 31, in __init__
self.Bind(self, wx.EVT_BUTTON, self.OnChangeCaption, id = ok.GetId())
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 3885, in Bind
id = source.GetId()
AttributeError: 'function' object has no attribute 'GetId'
#call dialog, type new caption, set it to static text and destroy the dialog
import wx
class Main(wx.Frame):
def __init__ (self, parent, id, title):
wx.Frame.__init__(self, parent, id, title)
panel = wx.Panel(self, -1)
#Make button
bu = wx.Button(panel, -1, "Call")
self.Bind(wx.EVT_BUTTON, self.OnCall, id=bu.GetId())
#create static text ctrl
title = wx.StaticText(panel,-1, "Original Text", style=wx.ALIGN_LEFT)
#Add to sizer
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(title, 1, wx.EXPAND |wx.ALL, 10)
sizer.Add(bu, 0, wx.ALL, 10)
panel.SetSizer(sizer)
panel.Layout()
def OnCall(self, event):
dialog = Dialog(self, -1, "Change caption")
dialog.Show(True)
Main.Hide()
#Dialog box as another class
class Dialog(wx.Dialog):
def __init__(self, parent, id, title):
wx.Dialog.__init__(self, parent, id, title)
self.text = wx.TextCtrl(self, -1)
ok = wx.Button(self, -1, "Ok")
#Bind to event tochange caption of Title=text
self.Bind(self, wx.EVT_BUTTON, self.OnChangeCaption, id = ok.GetId())
sizer2 = wx.BoxSizer()
sizer2.Add(self.text, 1, wx.EXPAND |wx.ALL, 10)
sizer2.Add(ok, 0, wx.ALL, 10)
self.SetSizer(sizer2)
self.Layout()
def OnChangeCaption(self, event):
newlabel = self.text.GetValue()
self.title.SetLabel(newlabel)
app = wx.App(False)
f = Main(None, -1, "Call Children from parent")
f.Show(True)
app.MainLoop()
I don't think you can uninstall it cuz it is now built into the OS but you can disable it by going into system services and disable it.
Stopped services and disabled!
Still love to see what others here use. I have tried Giant Anti.... but is very limited. I want full version, so After gettin what I want I will remove it! AVG? No! Because I want Avast to remain as my Virus scanner!
Thanks Guys, waiting for more Advices
Steve
That is:
s = "---> Increased"
print "Today's stock price: %f %s" % (50.4625, s)
I think you need to go for Vpython,
www.vpython.org . Myself I have not learned it but I tried veeery little
here is a code i took from examples directory of Vpy
from visual import *
dt = 0.1
g = []
for i in range(3):
g.append(display(y = 30 + 200*i, width=600, height=170))
g[0].title="k=6N/m mass=2.0kg"
g[1].title="k=6N/m mass=1.0kg"
g[2].title="k=6N/m mass=0.5kg"
bands = [ curve( x = arange(-50,50), display=g[0], color=color.red, k = 6., mass = 2.0),
curve( x = arange(-50,50), display=g[1], color=color.yellow, k = 6., mass = 1.0),
curve( x = arange(-50,50), display=g[2], color=color.green, k = 6., mass = 0.5),
]
for band in bands:
band.radius = 0.5
band.momentum = zeros((100,3),Float)
### Uncomment exactly one of the following lines: ###
band.momentum[:25,1] = sin(band.x[:25]*pi / 25.0)*3 # half-wave pulse
## band.momentum[:25,1] = sin(band.x[:25]*2*pi / 25.0)*5 # full-wave pulse
## band.momentum[:25,0] = sin(band.x[:25]*pi / 25.0)*5 # compression wave
## band.momentum[:,1] = sin(band.x * 4 * pi / 100.0)*2 # standing wave
## band.momentum[25,1] = 20 # single point impulse (messy)
while 1:
rate(100)
for band in bands:
# Keep endpoints fixed:
band.momentum[0] = band.momentum[-1] = vector(0,0,0)
# Integrate velocity:
band.pos = band.pos + (band.momentum/band.mass*dt)
# force[n] is the force on point n from point n+1 (to the right):
force = band.k * (band.pos[1:] - band.pos[:-1])
# all points but the last experience forces to the right:
band.momentum[:-1] = band.momentum[:-1] + force * dt
# all points but the first experience forces to the left:
band.momentum[1:] = band.momentum[1:] - force * …
On some distros, the installer will check for external packages
And Ubuntu's installers are one of them! :)
py2exe = Create executables
nsis or inno = create setups
Just google for and crawler for their home pages, download them learn them and use them!
If you need $ based go for installshield
Steve
code is self explanatory. However I have to be sure that I grasped the concept and then go for practice:
self.parent.panel2.label.SetLabel(s)
suppose I have two dialog boxes and both have parent called frm and dialogs dia1 and dia2
dia1 a button, and dia2 a button. The dialog1 appears automatically after some time (that is easy to do) and when you press the button it calls dialog2 and get destroyed. I need its theory and even veeery simple example and the rest is my exercise!
Sorry for bothering and thanks for response!
Steve
Just use Unicode version if you are not sure of what you are doing!
Yah, I agree. I think you can make a module of all errors in your program and then import the module and just call them as you call a wx.Button or others. Just my 2cents !
Re install Python and make sure during installation you choose the custom method. make sure ALL packages are selected and install!
Don't forget feedback
hello Ene, Vega and All Daniweb,
Please assist me on how calling is done on this line:
frame.panel2.label.SetLabel(s)
Does it change the label of
self.label = wx.StaticText(self, wx.ID_ANY, " panel2 label ")
????
What are you really doing with this line of codes? Are you appending them to table??
I ask because I have never used before this such way of coding in py
[
frame.panel1 = MyPanel1(frame)
frame.panel2 = MyPanel2(frame)
Thanks for your answers
Hello All,
Greetings!
I have question concerning OOP with Python. I want to know when Python class or being specific, how py class ends in package like wxpython.
What I mean is I have one class let say of frame and another class of a dialog box all in same py file. When Frame runs, uses self i.e self.button = wx.Button. This object belongs to frame. And let say we have text control in the other class (dialog). How do I call method of another class from the other class, i.e how do I call button from dialog and dialog from button.
Suppose I want to manipulate the button, let say its label, but from another class which it doesn't belong (In this case Dialog)?
I hhave done these without grasp thge real concept. I have dug up but I find difficult to grasp it wel; so, need your support!
It is a matter of Choice but my beginning were like this:
I started python, and then roamed around net database (Internet) and Tried two GUI toolkit, TkInter and wxpython. To be honest, I fell in love with wxpython and since then it have been My toolkit. When I was reading I found interested to Learn QT, but pay for it? No! I target to use my Skills later to gain $ but again I have the best wxpy and need not to pay for QT
PyGTK if you want is also Good. Wingware is built aroun GTK as living example
Anyway it is for you to choose. I have read of many programmer who use TkInter.
All are opinions. Try each for yourself if you want but if It was avote, I'll give mine to wxpy!
I love Ubuntu and Fedora Core. I also give my cents to Solaris though not sure if is Linux ro Unix based (I guess Unix based)
try wx.python and there is timer called wx.Timer for your timming
How do I uninstall win defender. It chokes me to be there! I have to remove it, help!
Like when you want to create class that will create simple dialog and then call it from GUI you have created:
import wx
class Dialogi(wx.Dialog):
...........
Grib,
I'm too Jr. in py that I have no Idea of that module. For Now I try to familiarize with Wxpython while learning python extensively. May be some time later I will dig it. BTW what does it do in summary??
-- ---[code=python] ---
Howdy,
Okay, I'm brand new to DaniWeb, and new to programming myself.......... I apologize for the bad format of my coding, as I said, I'm rather new to this.
Welcome Andy!
Don't worry about being new, you learned to speak your language, right? You will learn Python too :)
Just use "
put your code here
" and you will come out with nice pycode!
Happy Pyprogramming!!
Steve
can you give a living example?
For me I don't understand what you are exactly saying! I don't want to redefine it
what I understand is, custom module you import in your python must be on the same directory as the script from which you are importing. Is that so in your case?WHAT ERROR(s) DO YOU GET?
I always use to copy url of video and paste it at <snipped illegal link> and then use free download manager to download it. For conversion, Super is the best I know. Go to freecodecs.com for the rest