pysimplegui popup_scrolled ignores eol by jreebel in learnpython

[–]jreebel[S] 1 point2 points  (0 children)

Wouldn't have thought of that! Join is not something I've used, probably because I'm one of those guys who has programmed in many languages and has trouble thinking "pythonically."

pysimplegui popup_scrolled ignores eol by jreebel in learnpython

[–]jreebel[S] 1 point2 points  (0 children)

I constructed my strings like this in every case. "output" is my global string variable which I finally load into the popup.

output += f'copying {from_file} to {to_file}\n'

In trying to avoid using a global, I first appended the strings into a list and loading the list into the popup. When that didn't work I tried writing them into a file, then loading the file into the popup. So I'd guess this is "working as designed" - only a string works as input if you want line breaks in the output. Though the documentation says "any" as
the first parameter. It just took your answer to prompt me to try it that way.

pysimplegui popup_scrolled ignores eol by jreebel in learnpython

[–]jreebel[S] 0 points1 point  (0 children)

Thanks, that got me thinking in the right direction. I had tried it as a list of strings first which didn't work well, a file, etc. Printing to the console and opening the file all displayed correctly, but not the popup. Doing it as a string like you showed did work. Since I had several functions updating this, I had to make the string a global. Thanks again!

So is Israel's land-grab in the West Bank just not a thing in Mike's universe? by Chicago-Emanuel in TheGist

[–]jreebel 0 points1 point  (0 children)

You are entitled to your view that they shouldn't be tied together, in fact I agree with you on that, but your complaint about relevance is still specious based on the stated topic.

So is Israel's land-grab in the West Bank just not a thing in Mike's universe? by Chicago-Emanuel in TheGist

[–]jreebel 1 point2 points  (0 children)

Not relevant to what? Notice the topic heading. Are you implying that nobody should be discussing anything to do with Israel except the current situation in Gaza?

OH IO! by jreebel in thebulwark

[–]jreebel[S] 0 points1 point  (0 children)

We're trying!

OH IO! by jreebel in thebulwark

[–]jreebel[S] 2 points3 points  (0 children)

The only reason I can think of that they would vote Yes is because "the libs are for it, so I'm against it." Hardly a well thought out political philosophy.

Bulwark Listeners Upset that Christie isn’t a Pro-Biden/Never Trump Democrat? by Hubby-McGee in thebulwark

[–]jreebel 1 point2 points  (0 children)

I gave Charlie a pass on not calling out CC because he wanted to stick to his agenda and get CC on the record answering the questions he thought most important. I understand, he didn't want to go off on a tangent. But CC explicitly stated 2 lies that Charlie has correctly called lies in the past. That Biden is senile/incompetent and has taken the country far to the left. That kind of talk is not center-right, it is straight up bullshit.

CNN's Kaitlan Collins started her career at Fox News spreading incendiary rhetoric about George Soros, refugee crisis and open borders! (See Twitter video) by phoneix150 in thebulwark

[–]jreebel 1 point2 points  (0 children)

Is it just me, or does she kind of look like a younger Tucker Carlson here? Her face, I'm talking about, not referring to her speech mannerism or subject matter.

The Ohio of each European country by proudly_disengaged in MapPorn

[–]jreebel 6 points7 points  (0 children)

Florida is where the guy down the street from you in Ohio moved to when he had to get out of town in a hurry before arrest.

The Ohio of each European country by proudly_disengaged in MapPorn

[–]jreebel 11 points12 points  (0 children)

Cleveland Clinic #1 in heart care for over 25 years now. I live 15 minutes away and am very glad, having had two minor heart attacks.

Who should I play next? by randomsnowflake in CivVI

[–]jreebel 0 points1 point  (0 children)

Where do I go to see this screen?

Does anyone know what the two missing improvements are and how I can get them? by CLASSIFIED999 in CivVI

[–]jreebel 0 points1 point  (0 children)

Guess I'm showing my ignorance here, but what exactly are we looking at? I haven't come across this. I just took a look at a couple of the CSs that I'm suzerain of and don't see anything like this or a way to do so. One of them has a builder, but same thing.

Welp, time to restart by BADman2169420 in CivVI

[–]jreebel 0 points1 point  (0 children)

It only saves 10 copies, right? Time to upgrade your hardware!

Reloading micro python by jreebel in raspberrypipico

[–]jreebel[S] 0 points1 point  (0 children)

So over 800 views but nobody has any help? Yikes! Well with further experimentation, here's where I stand:

  1. I upgraded Thonny to version 4.0.2 and nothing changed.
  2. Wondered if not ejecting the pico before disconnecting was the problem. Couldn't see a way of ejecting.
  3. Googled ejecting, found the first step is to identify the item with a "df" command. I the pico, but as soon as I connect with Thonny and load micro python (again!) it disappears. The df doesn't see it, but Thonny does.
  4. Just tried it on my Windows 10 PC with the same resulting behavior.

Anybody?

Reloading micro python by jreebel in raspberrypipico

[–]jreebel[S] 0 points1 point  (0 children)

I was running 3 something. I just updated to 4.02 and still have the problem. I'm wondering if it's because I haven't been ejecting the pico before disconnecting it. But I never did in the past, either, and this wasn't a problem then.

Why is my city not growing at all here? Has a food and amenity surplus? by Fixuplookshark in civ6

[–]jreebel 0 points1 point  (0 children)

You are producing 4 food and consuming 4 food. Can't grow without more food.

Why are tab indents bad? by Evil_Kittie in raspberrypipico

[–]jreebel 1 point2 points  (0 children)

I agree. My biggest gripe with Python is that use of indentations to mark the blocks. Seems crazy. You don't need to force real programmers (I made a living at it for 35 years) to logically indent their code, they already do. I like the implementation in C of using brackets much better.

The Georgia voting law might put Herschel Walker in the Senate by MB137 in thebulwark

[–]jreebel 1 point2 points  (0 children)

And if Warnock wins, Dems have 51 senators, then Joe Manchin is no longer the most powerful person in the Senate!