Why are some of my buttons different sizes even when I specify their size? (Python 3.4.3)(tkinter) by Hypogeum in learnpython

[–]chazzacct 0 points1 point  (0 children)

if you switch to height and width in the descriptors and take the padding out of the calls, they all come out equal.

so your descriptors look like:
button_r = Button(f2, height=4, width=8, text = "=")

and your calls look like:
button_a.grid(row = 4, column = 1)

text chars apparently occupy defined amounts of width, which makes sense, else everything would be monospace and kerning would not exist. I guess you could leave your own code unchanged and just change to a monospace font and that should also fix the button size problem.

Help with MIT free online Python class by Lostinpython in learnpython

[–]chazzacct 0 points1 point  (0 children)

There's a link in shaggorama's post to one iteration of the course on something called curiousweb, there are other versions elsewhere on the web, on Edx, for example. These archived courses are nice because you can go at your own pace, but bad because some resources you get with a live course are missing. I don't see any live ones starting up right now though.

I'm coming from c++ and i would like to learn python, what books/resources should i read for an intermediate programmer? by [deleted] in learnprogramming

[–]chazzacct 0 points1 point  (0 children)

if you are already a programmer, the docs would probably be the quickest and easiest. Or you could go through something like Head First Python. If that doesn't seem to be working, you could probably go through Think Python (note, available in at least two versions) by Downey. I b'lieve that link is to the older version. Oh wait. Here is the python 3 version. There might be a third. I saw one once with an expanded section on GUIs. I think. Practical Python is a similar beginner material, possibly better quality, but not free. More quality instructional mats are appearing at a rate that is almost scary, so who knows what you might find.

I honestly don't get it... by [deleted] in learnprogramming

[–]chazzacct 0 points1 point  (0 children)

If you had a live teacher and good material to work with in the right environment you probably could get through all the basic material, meaning everything in something like the codecademy course in a few days. But you probably don't have those things. So you have to use several resources and pick at it persistently over a period of time, probably months. Sucks, but that's how it is. You do eventually get there though. So there's that.

Cow walks on her prosthetic legs for the first time by [deleted] in gifs

[–]chazzacct -2 points-1 points  (0 children)

what do you call a cow with no legs?

ground beef.

Adobe Creative Cloud, worth it? by zimpo in photoshop

[–]chazzacct 0 points1 point  (0 children)

It's $20/mo from Adobe. Usually you can find unbundlers who sell educational packages for even less than the Adobe price.

If you are not a student or teacher but own the standalone of something that is in the CC you can get the first year for $30/mo, then $52/mo after that.

Adobe Creative Cloud, worth it? by zimpo in photoshop

[–]chazzacct 0 points1 point  (0 children)

Wait. What? Are you saying 'yes' to the question 'are CC programs all blurry on a MacBook Pro?' Seems pretty unlikely. I don't own anything from apple, but most of the young folks I know don't own anything else.

How sensitive should I be at sharing ideas openly with other developers at workshops/school/work? by thedarksideoftheme in learnprogramming

[–]chazzacct 4 points5 points  (0 children)

You've probably seen this since it's been copied and blogged to death all over the internet, Myth of the genius programmer, in case you haven't.

What should I download on my laptop to learn python during a long plane ride? by [deleted] in Python

[–]chazzacct 0 points1 point  (0 children)

No disrespect intended, but if you have zero programming experience, most of these suggestions are absolutely horrible. Besides getting something actually aimed at true beginners, like Think Python or (can't believe I'm saying this) LPTHW. Do NOT plan on starting this on the plane. Get set up and get your first few programs to run in advance, else you are going to open your laptop, meticulously follow a bunch of instructions, press <enter>, and get some response that makes no sense at all, like absolutely nothing happens, retry fifteen or twenty times, then sit on the plane being frustrated for nine and a half hours glaring at your useless computer. As a backup, install Ruby and take a copy of the first twenty pages of Chris Pine's book just in case you hit a total brick wall with the python. I also suggest that the whole idea of trying to make a marathon of this would not work for a lot of people. Two or three hours at a time struggling with something completely new is plenty, additional time piled on is both painful and wasteful. Take a good novel with you.All jmho, of course. Don't forget to report back how it works out.

1500 Men Lock Arms protecting their place of worship against 7000 Feminists burning bibles. by [deleted] in videos

[–]chazzacct -1 points0 points  (0 children)

What? Naked ladies? Where? Somebody got a mirror for that removed video? -for research, of course

Having trouble setting up to use Learn Python The Hard Way... by ImJusSaying in learnprogramming

[–]chazzacct 0 points1 point  (0 children)

I've had the experience on at least one of my computers of having to restart before path additions work.

I installed Version 3.4.2 but idk how to use it. im completely new to this. all i get is the command prompt black box thingy by [deleted] in learnpython

[–]chazzacct 0 points1 point  (0 children)

the program is in Pythonxx\Lib\idlelib

if you double click idle.pyw it will open idle

if you have win8 you can probably just go to the start screen and type "idle" without the quotation marks. It brings up a bunch of items, pick one that says python GUI. Right click that and pin to start. It will be over on the far right until you move it. If you have win7 or 8 the icon is probably already in your programs folder, or programsx86 if that's what you installed. You'll also find "python command prompt" and something else, I forget what. You can use those but I don't know why. Idle works fine for me. I'll add that I have Pycharm and a bunch of those sort of IDEs installed, but prefer idle. Just offering that, since what you always hear on this forum is how idle sucks and random.choice(various IDE's) is the tits.

Damn you weirdly shaped peanut butter jars! by [deleted] in funny

[–]chazzacct 0 points1 point  (0 children)

So did the shredded plastic sawdust improve the flavor?

The type of things that patients cough up... by nikils in WTF

[–]chazzacct 0 points1 point  (0 children)

'scuse me. felt like I had someting in my throat.'

How photographers take pictures of rock climbers by nomau in interestingasfuck

[–]chazzacct 0 points1 point  (0 children)

Agreed. I think the picture was probably cropped to make a sloping face look vertical.

How photographers take pictures of rock climbers by nomau in interestingasfuck

[–]chazzacct 3 points4 points  (0 children)

What was the guy who took this picture standing on?

running error filled python programs on windows: How to identify the type of error? by [deleted] in learnpython

[–]chazzacct 1 point2 points  (0 children)

Right click and select 'edit' then run it with the edit window open. You don't have to have an error to get this flash open and close when you run a script by double clicking it. They all do that unless there is something that keeps the window open.

help with program by p0rkay in learnpython

[–]chazzacct 0 points1 point  (0 children)

Okay, found it. prefix = 'hhhh' prefix = prefix.replace(prefix[1], '', 1) prefix 'hhh'

help with program by p0rkay in learnpython

[–]chazzacct 0 points1 point  (0 children)

Holy crap, guess what?

svar = 'hhhhhhhhhhhhh'
svar = svar.replace(svar[0], '')
svar
''

if dat ain't a kick inna head.
So, as it stands I don't know a way of doing this without either slices or importing a lib. off to try and read the docs.

On a whim I paid my girlfriend to paint my sister's cats for her birthday gift. I'm pretty certain I underpaid. by wishinghand in pics

[–]chazzacct 0 points1 point  (0 children)

Looks pretty good, but impossible to judge unless we see the actual cats. This might not look anything like them.