I was looking for a good Language/GUI combo for bioinformatics and Java was so difficult (from a biologist perspective). Glad to see wxPython works on Mac.
@speedyguy8 why are you watching this video if your not a noob yourself? And he knows many many languages, he is not a noob haha. You sir, are an idiot =]
@MrNeemer I do think he could have done a better job of explaining what's happening more than just "that's just the way it is". It's entirely possible to create a frame without classes in just as many lines, it's not required, but it makes it easier. It's called a frame because it doesn't always have to be a window. A frame is simply anything that can contain a window that isn't another frame or dialogue. In WX you aren't manipulating windows because, some systems have different functions.
great tutorials and all--amazing. Well done... Just a piece of advice: don't take the first minute explaining what you did in the last video; it's kind of annoying.
when i try to run it, its comes up with a syntax error and says "unindent does not match any outer indentation level" what do i need to do to make it work
if it says 'no module named wx' you probably installed the wrong bit #. I downloaded the 64 bit and that error popped, then downloaded 32 and wrote over 64 and it works. :D
@marttiliveshere One reason should be because you must of downloaded a different wxPython version than your Python has. Ex Problem: wxPython2.6 / Python2.7, make sure your wx is the same version.
alright, i followed this to the T and some how i got an error?
if __name__ == '__main__' :
right at that semicolon is where i get it at. i'm not to sure if its because i'm running the 2.7 version of python or not, but havn't seen anyone else with this issue. if someone could help thats be great.
@9mankaido3 No, it's not an issue with Python 2.7. try typing __name__ in the python shell and if it returns '__main__' the error is somewhere else. Or you could get rid of the conditional statement and go directly to app=wx.PySimpleApp()
sorry for taking a while, just been a bit busy and kept forgetting to reply. but you gotta make sure you got all of the caps in the same spot the buck has them in. took me roughly twenty mins to figure it all out.
@wakao56 this means you haven't downloaded the wx libraries, or if you installed them it's corrupted. Check the video description video if you don't know what I'm talking about...
bucky i am able to convert .py to .exe using py2exe for a normal python program but it doesnt work for wxpython !! :( it ll be great if u could help me on that
How would i change the color of the background? and how would i attach the program I made in python to the frame and button i made for it please help thanks in advance could anyone help please?
For those of you using IDLE in Linux wondering why it will only run once, and then throw an exception the second time: The problem is in the last 5 lines of code. I'm pretty sure that 'app' never gets deleted after the first time you run it, therefore it doesn't create a new one each subsequent time you run it, and it collides with itself.
My fix:
1)Change 'app' to 'app1' or whatever variable you choose (just not app)
Whenever i run this program the frame pops up but after about 5 seconds it fades to gray. I can still see the frame and the letters but i just changes color. Whenever i close the frame it closes python as well. Any help??
I am really enjoying your tutorial series',especially Python and Blender, but I was wondering: where did you learn how to use python? did you learn a different lang first?
This is too shallow of an explanation. You didn't say what are the Parent and the Id parameters are for. I don't like to just copy what you do here. I'd like to actually understand it.
Leave it to thenewboston to put up easy to understand tuts about programming. Your videos provide a great companion learning guide to the (sometimes) more rigorous textbooks. I like watching your videos when I need some clarity on something related to Java programming or wxPython. I hope you put up some tuts for Python, even if it's a pretty simple language to learn- might find something in your videos that I didn't find in the books. Thanks for all your uploads, very helpful.
help me anyone i keep getting stuff like this Traceback (most recent call last): File "C:/Users/Kavun Nuggihalli/Desktop/kavun.py", line 1, in <module> import wx
ImportError: No module named wx
i cant do any wx python i have watched every vid and i cant get wx python
well, application works but i don't understand how... if somebody has a link to a site explaining with a normal languge all this functions, please throw a link here...
I sorted my error guys, If your getting a error on the colon after '__main__' It was due to me not including the second closing parenthesis after stating the window size
I am getting some issues at my side, i use the same program shown in this video....but after executing it, name is not coming in my window and there is no effect of size parameter either. :(
did you import wx? because when an object 'has no attribute x' then that means x is not a method or variable of that object, which either means you forgot to add it, the object dose not exist, or there is a spelling error
RED4MIX learn to listen dude... he saied that the tutorial on how to install wx is on the video description========> just listen first then talk later. Great Video! Great Tutorials!
i followed and listened to all the 44 python tutorials in 1 night, specially tutorial 44, and that didn't help me so much to install wxpython. now i solved my probleme cause it have nothing to do with what presented in that tutorial.
Tanks a lot bucky this tutorial is very clear and useful
eaguilarSanchez 4 days ago
I was looking for a good Language/GUI combo for bioinformatics and Java was so difficult (from a biologist perspective). Glad to see wxPython works on Mac.
IFoundMyUsername 1 week ago
@ fyrestarz how did you get wxpython to work on python 2.7 ? What link did you download from wxpython.org?
freakyfrackle 1 week ago
Can you update it? I'm using Python 3.2.2
tienthanh21697 1 week ago
@speedyguy8 why are you watching this video if your not a noob yourself? And he knows many many languages, he is not a noob haha. You sir, are an idiot =]
MrNeemer 3 weeks ago
@MrNeemer
PLEASE DO NOT FEED THE TROLLS
XoRr0WBi7ch 1 week ago
@MrNeemer I do think he could have done a better job of explaining what's happening more than just "that's just the way it is". It's entirely possible to create a frame without classes in just as many lines, it's not required, but it makes it easier. It's called a frame because it doesn't always have to be a window. A frame is simply anything that can contain a window that isn't another frame or dialogue. In WX you aren't manipulating windows because, some systems have different functions.
jkltech 19 hours ago
Thanks a lot man!!
I have followed your complete Python tutorial and now I am continuing with this one. It is extremelly clear and helpfull. Keep the great work!
(This is the blood, and this is the face, I love it)
danipec74 4 weeks ago
can someone explain why the initialization thing takes in three parameters nd wht exactly is parent and id??
334manoj 1 month ago
python 2.7 does not support wx, i tried but shows error
fuckslipknot21 1 month ago
@fuckslipknot21 it workd for me
FyreStarz 1 week ago
Man these are so much more helpful than the stuff that is online.
Ramshobraja 1 month ago
doesnt work with latest version
lostsh0t1 2 months ago
Mine says invalid syntax on = def__init__(wx.Frame): <---------Says thats a invalid syntax :( ":"
acer120298 2 months ago
great tutorials and all--amazing. Well done... Just a piece of advice: don't take the first minute explaining what you did in the last video; it's kind of annoying.
llewgnolm 2 months ago
when i try to run it, its comes up with a syntax error and says "unindent does not match any outer indentation level" what do i need to do to make it work
juve1010101 2 months ago
This comment has received too many negative votes show
"Make sure None is capitalized, i believe it matters" << LOL
noobs tryin 2 teach noobs :/
speedyguy8 2 months ago
@speedyguy8
He's not a noob, he's teaching many different languages at once... it can get confusing...
minidude22 2 months ago 8
@speedyguy8 you dumb ass dont call him a noob hes really smart he knows just about and probably every programming lanuage
zoomer328 2 months ago
everything works but my title (frame aka window) is not there.
Aulakh750 3 months ago
Can't wait until they come out with wx toolkit for python3.0
Aulakh750 3 months ago
@Aulakh750 any idea of when that might be?
tyebillion 2 months ago
@tyebillion no clue but there are lots of other GUI toolkits available for python 3.0
Aulakh750 2 months ago
wxPython canot download b/c it says it cannot execute my python command line? so i have been trying to reinstall it which one should i choose:
Gzipped source tar ball (2.7.2) (sig)
Bzipped source tar ball (2.7.2) (sig)
XZ source tar ball (2.7.2) (sig)
vfrank66 3 months ago
if it says 'no module named wx' you probably installed the wrong bit #. I downloaded the 64 bit and that error popped, then downloaded 32 and wrote over 64 and it works. :D
24barron 3 months ago
Comment removed
TheQuickscopezPro 3 months ago
thanks buddy ,your tutorials are amazing keep it up.
clarion555 4 months ago
ok how do you close the First window we made.
147humblenerd 4 months ago
ok, can someone help?
when i try ro use the frame code that bucky shows, i get an error:
AttributeError: 'module' object has no attribute 'frame'
WTF??? can anybody help??
marttiliveshere 5 months ago
@marttiliveshere One reason should be because you must of downloaded a different wxPython version than your Python has. Ex Problem: wxPython2.6 / Python2.7, make sure your wx is the same version.
KennyDupp 4 months ago
@KennyDupp I have the same problem but I have redone it multiple times and made sure it is the right one
reaper12300 4 months ago
@marttiliveshere it's case sensitive
youagain1996 3 months ago
You should make yabasic tutorials.
TheAmazingPuppeteer 5 months ago in playlist python tutorials and wx
Ah, so this is the 45th tutorial
TheAmazingPuppeteer 5 months ago in playlist python tutorials and wx
does this work for python 3.2 or 2.7? or does it only work for 2.6?
FangMaxIggy 5 months ago
@FangMaxIggy It works with 2.7 for me ;) idk about 3.2 though
Kamilk12l 5 months ago
@FangMaxIggy I had to uninstall 3.2 and install 2.7, it worked.
xFelicianoX 5 months ago
@FangMaxIggy All python includes have the python version number at the end i.e wxPython2.6 is for python 2.6 and etc..
XxLeurxX 5 months ago
what is the id for?
ThePyable 5 months ago
You should always capitalize a class!
WingChuApprentice 5 months ago
For everyone that gets the 'no module wx' message, I solved it by uninstalling wx and reinstalling it without having Python open.Hope that helps!
Svidrigailoff 6 months ago
when i run wx python it shows an error says no module named wx plssssssssssssssss help me
dinkleva 6 months ago
How can you embed your own icon to app using wxpython? or can you do it using py2exe after you're done with your wxpython code?
Thanks.
vacano192 6 months ago
everyone having problems use this
from wxPython.wx import *
class MyApp(wxApp): def OnInit(self): frame = wxFrame(NULL, -1, "Hello from wxPython") frame.Show(true)
self.SetTopWindow(frame) return true
app = MyApp(0)
app.MainLoop()
WeAreTheDawnPatrol 6 months ago
hey,, hmm ,, im wondering where do i need to set to get the pop up methods or instances when type "." or "="
Keepsmilingzxoxo 7 months ago
It shows me an error
TheJuli1241 7 months ago
Can you Show how it works on Mac?
BigBoesche 7 months ago
This has been flagged as spam show
Its says ImportError: No module named wx what do i do
blitzkrieg6778 7 months ago
<3 PyQt4
roejames12 8 months ago
alright, i followed this to the T and some how i got an error?
if __name__ == '__main__' :
right at that semicolon is where i get it at. i'm not to sure if its because i'm running the 2.7 version of python or not, but havn't seen anyone else with this issue. if someone could help thats be great.
(sorry for mispellings)
9mankaido3 8 months ago
everyone can ignore this. turns out i forgot caps.
so everyone remember, put your caps where bucks got them. it'll help you out in the long run.
haha
9mankaido3 8 months ago
Comment removed
noel4037 7 months ago
@9mankaido3 No, it's not an issue with Python 2.7. try typing __name__ in the python shell and if it returns '__main__' the error is somewhere else. Or you could get rid of the conditional statement and go directly to app=wx.PySimpleApp()
noel4037 7 months ago
@9mankaido3 well thats my error too
TheJuli1241 7 months ago
@9mankaido3 i get this exact same problem. its been a while since you posted this, so im wondering if you figured out a solution?
DanielYeller 7 months ago
@DanielYeller
sorry for taking a while, just been a bit busy and kept forgetting to reply. but you gotta make sure you got all of the caps in the same spot the buck has them in. took me roughly twenty mins to figure it all out.
9mankaido3 6 months ago
mine wont show up.. the test from the installation tutorial worked... but this doesnt. What should i do?
sciman001 9 months ago
Hi bucky
I am getting SyntaxError: invalid syntax in (def__init__(self,parent,id):)
can u please assist
motivaraskamlesh0405 9 months ago
@motivaraskamlesh0405 you need a space after def, I believe. And I do not think you need the first and last parentheses
Zeldakitteh 9 months ago
i get error with one of my : des__init__(self,parent,id)>:<thats where it is help
triggers4life 9 months ago
ohhhhhhhhhh very very very helpful!!!!!!!!!
reyhades 10 months ago
ok , i fixed the problem , to those who face the same problem as mine . try reading the previous comment , it help a lot
wakao56 10 months ago
erm , guys , im having a trouble , it said ImportError: No module named wx . any suggestion ?? please
wakao56 10 months ago
@wakao56 this means you haven't downloaded the wx libraries, or if you installed them it's corrupted. Check the video description video if you don't know what I'm talking about...
dcs1892 10 months ago
oh so you change the name to wxpython tutorial okay so your not that guy speaking spanish or something cool
araullo 11 months ago
I already watched every tut now i am going to watch again and put them together to make one program.
virman123 11 months ago
Comment removed
adamwitte 11 months ago
bucky i am able to convert .py to .exe using py2exe for a normal python program but it doesnt work for wxpython !! :( it ll be great if u could help me on that
yasu4utube 11 months ago
gives me an 'ImportError'
themooseatestuff 1 year ago
Comment removed
Hackerdude50 1 year ago
Comment removed
EricisSpade 1 year ago 17
@EricisSpade re install wx
Calzep2 1 year ago
@EricisSpade did you install the right wxPython???
noel4037 7 months ago
@EricisSpade a little late or you but for new people here. Make sure to close Phyton before instaling
Wwwmrlol 7 months ago
@EricisSpade You need to download the proper version of wxPython for your version of Python.
wes196 7 months ago
@EricisSpade uninstall it and reinstall without IDLE(GUI) open or running
kristianquirapas 6 months ago
@EricisSpade you didn't install correctly
ThePyable 5 months ago
@EricisSpade if you get wx is not a module that means you either have not installed it or did not install correctly
inuasha880 4 months ago
@EricisSpade Make sure you have the same bit files, and the same version(2.7)
ERPP8 3 months ago
more python please.
chavmusher 1 year ago
very understandable ,thankssssssssssss
pythonkhmer 1 year ago
Adding the space after "def" fixed the syntax error for the :
LVCMS 1 year ago
@LVCMS dude thanks i couldnt figure out the error
TheBChannel1 1 year ago
@LVCMS Thanks alot lol i checked five times and din't notice that!
virman123 11 months ago
when i did this it said syntax error what does that mean
THEACEOFILLUSION 1 year ago
Goodie! More bucky tuts! Thought was gonna run outta stuff to watch :DDD
xero907 1 year ago
Can someone inform me on what does the " Self,parent,id" parameters mean ?
adrianm15 1 year ago
just noticed my error was spelling import with an n
Digby0907 1 year ago
im getting a error message........this is wat i have is it correct?
import wx
class Goon(wx.Frame) : def __init__(self,parent,id) : wx.Frame.__init__(self,parent,id,'frame aka Goon', size=(300,200))
if __name__=='__main__': app=wx.PySimpleApp() frame=Goon(parent=None,id=-1) frame.show() app.MainLoop()
MisterGoon1 1 year ago
@MisterGoon1 i had an error...i deleted my python26 directory and installed python 2.7 with wxpython---it works fine now!
gabelossus 1 year ago
You just helped 27766 people to become programmers
thank you Bucky, THANKS ALOT! :D
iHateMyLifeGr 1 year ago
there is wx for python 3?
would you please give a tutorial about python 3
3deesuk 1 year ago
Im getting the error on the colon following the if statement.
Anybody know why?
Thanks
if __name__=='__main__':
alexmillar 1 year ago
@alexmillar you are missing a space after "if"
hellomarius 1 year ago
@alexmillar languages are picky and your error could just simply be that you didn't put a space after your if statement to separate it from __name__
That error happened to me. If it's highlighting the colon its probably something in the same line before it.
Derekmcvay 1 year ago
How would i change the color of the background? and how would i attach the program I made in python to the frame and button i made for it please help thanks in advance could anyone help please?
TECHHELPERZZ 1 year ago
Gee, so much code and so complicated just to get a very simple gui.
Guess I am spoilt using AutoHotkey as getting a simple gui is erm Simple!
elwoodetubes 1 year ago
@sueroski Bucky may have to start doing English tutorials.
5thElementMods 1 year ago
For those of you using IDLE in Linux wondering why it will only run once, and then throw an exception the second time: The problem is in the last 5 lines of code. I'm pretty sure that 'app' never gets deleted after the first time you run it, therefore it doesn't create a new one each subsequent time you run it, and it collides with itself.
My fix:
1)Change 'app' to 'app1' or whatever variable you choose (just not app)
i.e. app1=wx.PySimpleApp()
2)Add line:
del app1
to the very end of the code.
mumblyjoe6432 1 year ago
This has been flagged as spam show
how to add keyboard event to wxwindow
lanqing1 1 year ago
how to add keyboard event to wxwindow
lanqing1 1 year ago
Whenever i run this program the frame pops up but after about 5 seconds it fades to gray. I can still see the frame and the letters but i just changes color. Whenever i close the frame it closes python as well. Any help??
PautKalun 1 year ago
thanks u
doanhung180389 1 year ago
When I try to import wx it comes up with an error that says there's something wrong in __initi__.py line 45 and _core.py line 4 or something
Any suggestions?
CapitalI6699 1 year ago
does it have to be wx ?????????
SonNickOsUzumaki 1 year ago
I am really enjoying your tutorial series',especially Python and Blender, but I was wondering: where did you learn how to use python? did you learn a different lang first?
KlingonOG 1 year ago
This is too shallow of an explanation. You didn't say what are the Parent and the Id parameters are for. I don't like to just copy what you do here. I'd like to actually understand it.
elad135 1 year ago
@elad135 He said he would explain it later on :)
Iglitchlife 1 year ago
Leave it to thenewboston to put up easy to understand tuts about programming. Your videos provide a great companion learning guide to the (sometimes) more rigorous textbooks. I like watching your videos when I need some clarity on something related to Java programming or wxPython. I hope you put up some tuts for Python, even if it's a pretty simple language to learn- might find something in your videos that I didn't find in the books. Thanks for all your uploads, very helpful.
DMJohns0n 1 year ago
how do you get that drop down list after app=... at 4:34?
it does not apper for me.. :(
/w
hertigtorulf123 1 year ago
BOOM? wtf happened to BAM? :[
HASHlRAMA 1 year ago
try restarting computer after downloading wxpython
eoVertical5 1 year ago
thanks great stuff
running70 1 year ago
now i need to remake my whole calculator D:
tomek123kotek 1 year ago
help me anyone i keep getting stuff like this Traceback (most recent call last): File "C:/Users/Kavun Nuggihalli/Desktop/kavun.py", line 1, in <module> import wx
ImportError: No module named wx
i cant do any wx python i have watched every vid and i cant get wx python
badcurryboy 1 year ago
@badcurryboy why is wx installed on your desktop
MrCorn011 1 year ago
well, application works but i don't understand how... if somebody has a link to a site explaining with a normal languge all this functions, please throw a link here...
annakoiher 1 year ago
I sorted my error guys, If your getting a error on the colon after '__main__' It was due to me not including the second closing parenthesis after stating the window size
nikkcore 1 year ago
ok got it work, needed to put a capital S in show
briishspy 1 year ago 3
@briishspy lol yeh i did that one it wouldnt work til i capitalized the f in Frame
MrCorn011 1 year ago
@briishspy what is the special s
lukesun629 4 months ago
can't get this f*cking thing to work! i've coppied it exactly!!
i'm about to smash my computer through the wal
briishspy 1 year ago
This guy sounds like a young Buffalo Bill - "Uh, are you about a size 14?"
WellConditionedChimp 1 year ago
nice videos!
FMB21 1 year ago
you need to put these in a playlist
theyouthis 1 year ago
i really didnt understand anything in this tut
GGmod 1 year ago
I am getting some issues at my side, i use the same program shown in this video....but after executing it, name is not coming in my window and there is no effect of size parameter either. :(
amithreat 1 year ago
time to get onto the real stuff, finished python and now time to wxpython :P
upcoming pygame :D
saadlulu 1 year ago
I was wondering where your GUI Python tutorials were. Can you put a link in the Python Programming Tutorial - 44 to this string of tutorials, please?
Omnom18 2 years ago
you should do tutorial for GUI stuff using Boa Constructor!! bucky you rock bro
hall0ween138 2 years ago
Can you make the wxpython into Playlists?
I kinda confused in searching. LOL
PsPFreakss 2 years ago
Bucky,
How can I change the color(s) of my GUI frames and buttons.
Thanks for the awesome tuts!
TVA3dfx 2 years ago
4:42
I don't have that box :S I clicked ctrl+space and even typed wx. and waited a bit and never popped up?! If you know whats wrong please reply! Thanks!
mattandmike9496 2 years ago
You need to press TAB
GunnyTunes 2 years ago
I did all of the python tutorials Bucky posted -- now onto these wxpython tut's ... wooohoo!!
hall0ween138 2 years ago 70
yea, me too :D
BackRaw 2 years ago
@hall0ween138 Yep, me too. These are the best
Cadmium77 1 year ago
@hall0ween138 same here!
elementoxygen 1 year ago
@hall0ween138 Me too
virman123 11 months ago
:) need hlp:)...
it says in
"class bucky(wx.Frame):"
'module' object has no attribute 'Frame'
loopedrope 2 years ago
make sure you type "frame.Show" instead of "frame.show"
trb5 2 years ago
did you import wx? because when an object 'has no attribute x' then that means x is not a method or variable of that object, which either means you forgot to add it, the object dose not exist, or there is a spelling error
Jolsonthepirate 2 years ago
ty sooooo much for the tutorials, LOVE them, they have helped alot, keep up the good work :)
54threetwouno 2 years ago
RED4MIX learn to listen dude... he saied that the tutorial on how to install wx is on the video description========> just listen first then talk later. Great Video! Great Tutorials!
felippepavilion 2 years ago
want you please shut it up dude
i followed and listened to all the 44 python tutorials in 1 night, specially tutorial 44, and that didn't help me so much to install wxpython. now i solved my probleme cause it have nothing to do with what presented in that tutorial.
RED4MIX 2 years ago
thanks from Spain, u are a great teacher thanks a lot.
notengonickcojones 2 years ago
can't install wxPython
you did a great job, but you didn't explain the most important and basic thing, how to install wxpython
thaks
>>>import wx
ImportError: No module named wx
RED4MIX 2 years ago
This has been flagged as spam show
Love your tutorials keep em up!
AndrewEpicWins 2 years ago
Can someone please help me. I keep getting a syntax error!
At this line of code:
def_init_(self,parent,id):
it says it is the colon causing the problem.
When i remove the colon it says unexpected indet.
Please Help Me!
Anyone!
Blakerules1206 2 years ago
@Blakerules1206
have you tried adding a space after 'def'?
like def __init__(self,parent,id):
:D
nick19a 2 years ago 2
Comment removed
alexmillar 1 year ago
This has been flagged as spam show
same thing happened to me Blakerules1206 , but just retype everything but do not copy and paste it.
AndrewEpicWins 2 years ago
what does the self means
mogimac 2 years ago
i have a very big problem.
I watched the tutorial and everything, and i came up with an error.
The error says that could not find the wx module.
I dont know what to do.
Please help.
tlarson91119 2 years ago
Must install wxpython
SavageDogg38 2 years ago
Just commenting, you really dont need to use wxPySimpleApp, the App and that are really not so different any more and it is basically easier.
app = wx.App(redirect = False)
the redirect just makes errors still go to IDLE.
So yeah, just saying that perhaps the pysimple app is not necessarily the way to go. Good job though :)
paulthom12345 2 years ago
Very nice Greg, its nice to see tutorials with lots better resolution then mine :P
paulthom12345 2 years ago
This comment has received too many negative votes show
sweet jesus thank you! oh my god. thanks sweet holy father abraham!! wx biatch!
DoesUtubeCensor 2 years ago
This comment has received too many negative votes show
Another serie? Please complete your other series first...
Johan1169 2 years ago
This comment has received too many negative votes show
your stupid....
joejc07 2 years ago
Comment removed
Wowccraft 2 years ago
Description.
XarcZai 2 years ago
coolio
Wowccraft 2 years ago
very helpful Tutorial
nguyennguyenkn 2 years ago 13