« first day (142 days earlier)      last day (611 days later) » 

07:23
@Thingamabobs It was just a very general question about the best practices for arranging menu code. If it makes no difference I'll just do what feels more natural, thanks.
 
8 hours later…
15:06
1
Q: Why does the parameter "disabledwidth" of a tkinter canvas rectangle not work?

Matthias SchweikartI want the outline of a rectangle in a canvas to get a bigger width, when the rectangle is in state "disabled". Therefore I use the parameter "disabledwidth=4". But when the rectangle is in state "disabled", the outline has still a width of 1 instead of 4. This is my code, which shows the problem...

Interesting question I think
Could it be some internal bug?
uh, never heard of this flag before
it's certainly interesting. Maybe Thingamabobs could give some clues on this
Theoretically, I don't see any mistakes with the code on first look
The disabledoutline and disabledfill works, its just disabledwidth not working
 
2 hours later…
17:24
@Inyoka Best practice will always be just a suggestion. Take the button factory for example, for you and me it looks elegant and decent, another Developer might advice you to hardcode these few lines of code because it takes less time to compute it. It's always a tradeoff and becomes in most situations to a personal choice.
@DelriusEuphoria Not quite sure on this one, though. The thing is that some options like stipple for example are not OS independent. It might be that the OS simply does not offer this option and it's been ignored.
@Thingamabobs Okay, I'm probably over analysing it. On to packaging my app now which is fun.
@Inyoka Can relate, that's the awesome thing about coding there is always ways to improve and developers as a species always tend to optimise all over the place. So don't optimise the wrong thing. -- this is actually an advice I got from CodeReview and the struggle is real :D
Happy to hear you have solved your task, again good looking GUI, well done. :)
 
1 hour later…
 
4 hours later…
22:52
made this: gist.github.com/secemp9/0bc9a55ffc9179c3aab29d8237b4574b wondering how I could fix the fact that the "prompt", or to be precise, the line ">>> " isn't correctly inserted, so when pressing the enter key without any input, the prompt just position itself before the cursor. Example of what I want to reproduce: imgur.com/a/PwhN0lH and the result of my attempt: imgur.com/a/MfgQo0K
I'm guessing this has to do with the fact the Enter key is already creating a "\n" character, so it goes under an additional line, instead of positioning the cursor in front of the new prompt

« first day (142 days earlier)      last day (611 days later) »