Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: can you tell me what editor other than geany is the best for linux mint
Post: RE: can you tell me what editor other than geany i...

I use and love both Atom and VS Code. Atom is a bit more configurable for what I need, but VS Code is almost as good and definitely more responsive. VS Code reigns on my laptop, but Atom sees more use...
Fred Barclay Bar 11 189,686 Aug-19-2018, 02:34 AM
    Thread: Compare each n-th element of a nested list
Post: RE: Compare each n-th element of a nested list

Thank you very much heiner55! I don't think that would quite have done what I was looking for (it looks like it expects NEWLJP to already exist and contain strings?) but I did learn a way by using num...
Fred Barclay Data Science 3 8,715 Nov-11-2017, 11:11 PM
    Thread: Which IDE is the best for GUI in python?
Post: RE: Which IDE is the best for GUI in python?

Ditto on don't use IDLE! I use and love Atom. It's really just a highly-customisable text editor, so I can get it to work exactly the way I want. It doesn't have an IDE component by default (though y...
Fred Barclay General Coding Help 6 5,176 Nov-01-2017, 05:42 PM
    Thread: Compare each n-th element of a nested list
Post: Compare each n-th element of a nested list

Hey mates! I've been pounding my head against this problem for the last 2 weeks so I think it's time to get some help! **wall** I have a nested list like oldljp = [[['0:0:0'], 1, 2, 3, 4], [['0:0:1']...
Fred Barclay Data Science 3 8,715 Oct-31-2017, 01:26 PM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

Oh, that's because text.get() apparently automatically appends a newline (or '\n') to your string. [-1] returns the last element in a list or another iterable - for instance, if you had the list a = [...
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 04:05 AM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

Sure! The 1.0 tells the the self.text.get() function where to start on the word you've input. For 1.0 that means get the entire word starting at the first letter (so "password"). If you instead said 3...
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 03:59 AM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

Awesome! Take care and happy coding!
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 03:50 AM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

What does the content line look like now?
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 03:47 AM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

Try this content = self.text.get("1.0","end-1c")About this... the "2.0" was telling tkinter to grab the text starting with the second element (so your first letter, p, was dropped). text.get also appe...
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 03:46 AM
    Thread: Can someone please help me?
Post: RE: Can someone please help me?

Forgive me for not running the code - I don't have time at the moment! But I would recommend you add print("content is %r" % content) line right after you define content in your reveal function and se...
Fred Barclay General Coding Help 12 6,060 Oct-31-2017, 03:10 AM
    Thread: QIcon not displaying
Post: RE: QIcon not displaying

(May-18-2017, 11:56 AM)metulburr Wrote: Notta. But now i am wondering if it is a desktop issue. What desktop are you using? MATE 1.16.1
Fred Barclay GUI 7 15,711 May-18-2017, 03:43 PM
    Thread: QIcon not displaying
Post: RE: QIcon not displaying

Not to rub salt in the wound, but your code works perfectly on my system (Debian Sid). I'm running the script from my Documents folder and the image in in ~/Pictures. The only change I made was provi...
Fred Barclay GUI 7 15,711 May-18-2017, 06:34 AM
    Thread: SOLVED QMessageBox: can't get QMessageBox.Yes to work
Post: SOLVED QMessageBox: can't get QMessageBox.Yes to w...

G'day mates, For a project, I need to return Gui notifications/questions to the user from several different modules. Rather than write an individual QMessageBox each time, I wrote a small module that ...
Fred Barclay GUI 0 5,598 May-18-2017, 06:07 AM
    Thread: Atom editor question
Post: RE: Atom editor question

It's a tad of a late reply, but I maintain the "Termination" terminal plugin for Atom: https://atom.io/packages/termination (assuming you're still looking for a terminal package). You can just launch ...
Fred Barclay Bar 5 4,992 May-17-2017, 05:36 AM
    Thread: Show GPG keys in pyqt5 window
Post: Show GPG keys in pyqt5 window

G'day mates! I'm working on RumpelstilskN and I've exhausted my admittedly meager pyqt5 knowledge. I need a way for all the GPG keys on the system to be listed in a window, much like enigmail does: [a...
Fred Barclay GUI 1 4,645 Oct-21-2016, 08:04 PM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

(Oct-20-2016, 07:30 AM)demosthenesk Wrote: Hello, my name is Demosthenes... I run LMDE2 with Python2.7 and Python3. Yahoo! Another LMDE-er. :)
Fred Barclay Bar 431 232,370 Oct-21-2016, 07:42 PM
    Thread: In the beginning...
Post: RE: In the beginning...

(Oct-04-2016, 06:05 PM)Larz60+ Wrote: I've done a lot of basement programming (not serious) with Tiger Line Files You can still get them from https://www.census.gov/geo/maps-data/dat...-line.html th...
Fred Barclay Bar 12 11,321 Oct-07-2016, 05:29 PM
    Thread: <SOLVED>os.system needs a string in quotes
Post: RE: os.system needs a string in quotes

This works perfectly! cmd = [ "srm", "-rv", path ] subprocess.call(cmd)I can even delete folders and files with really weird names like Quote:/home/fred/Git/this "is" a test of (srm) or Quote:/home/fr...
Fred Barclay General Coding Help 12 17,196 Oct-06-2016, 05:03 PM
    Thread: <SOLVED>os.system needs a string in quotes
Post: RE: os.system needs a string in quotes

(Oct-06-2016, 12:55 AM)Skaperen Wrote: try: cmd = [ "srm", "-rv", path ] I get Error:/home/fred/Git/test (folder) Traceback (most recent call last):   File "/home/fred/.local/share/caja-python/exte...
Fred Barclay General Coding Help 12 17,196 Oct-06-2016, 02:58 AM
    Thread: <SOLVED>os.system needs a string in quotes
Post: RE: os.system needs a string in quotes

(Oct-05-2016, 08:42 AM)Ofnuts Wrote: (Oct-04-2016, 09:02 PM)snippsat Wrote: You should also use Subprocess it replace use of older os.system(). ... and use it to call you srm command directly (ie,...
Fred Barclay General Coding Help 12 17,196 Oct-06-2016, 12:03 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020