WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Python Editor  (Read 2971 times)

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Python Editor
« on: July 16, 2014, 12:31:26 AM »
Hi I need a C/python source code editor, colour syntax would be nice.

I usually use Geany on Raspbian, but will settle for Idle.
Bluefish is too slow and the normal TC editor has issues with indentation.

Is there any GUI editors hidden in the tcz's?
Vim/Nano are so old school, not good for these old eyes.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Python Editor
« Reply #1 on: July 16, 2014, 12:43:38 AM »
Personally I'm using mc (Midnight Commander) built-in editor.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Python Editor
« Reply #2 on: July 16, 2014, 06:33:07 PM »
Thanks, did not even know it had a built in editor.
Some colour options are ok but it's not GUI, getting Borland/DOS flash backs:)

Only just got back to TC after months with Raspbian.
Need to shrink my IoT stuff down for easy backup, on Raspbian 4-8GB, on TC 128MB.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Python Editor
« Reply #3 on: July 17, 2014, 02:22:41 AM »
If the issue with vim/nano is only the font (/font size), do you know you can change that?
The only barriers that can stop you are the ones you create yourself.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Python Editor
« Reply #4 on: July 17, 2014, 06:08:37 PM »
No idea how to change font size, yet.
Now used to black text on white background.

But the editor in MC is ok, cut and paste would be nice.
Probably need to read the manual:)
Would not like to develop code with it but it is fine for fixing/changing file names and doing bash scripts.

SuperPutty on Putty/PSCP with FileZilla on Windows seems to work ok.
TinyCore server maybe in the future, TC IoT auto updates?

Now just need to fix the datetime stuff for time stamping log files.
Do I need NTP to get the network time?

Also hard to install tcz's from behind the Uni firewall.
Ok if I have a browser and graphical login, command line login is new(very  old) to me.

Might have to setup a mirror here.
Hmm TC mirror img?


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Python Editor
« Reply #5 on: July 17, 2014, 11:44:17 PM »
MC built-in editor: use F3 to select text, than F5/F6 to copy/move. Or F1 to get help.

System date/time is set automatically during startup from the network using ntp server. Run getTime.sh to set it manually. A BusyBox ntpd applet is part of the base, you can run it as a daemon. The full ntpd package is also available in the repo.

BTW, did you try Idle, the official Python editor, which is part of the package?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Python Editor
« Reply #6 on: July 18, 2014, 12:06:42 AM »
Thanks again.

Had to learn how "find -name xxx" works to find them ;)
GetTime works
Idle works, apart from tab/space issues :(

Yippee, it works but now got smtp problems :'(

Getting close to ditching Raspbian :P

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Python Editor
« Reply #7 on: July 18, 2014, 12:57:42 AM »
You can change your terminal colors, too.

xterm -bg white -fg black
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Python Editor
« Reply #8 on: July 18, 2014, 01:18:50 AM »
You can use MC to find files. More convenient.

Never use TAB in Python source, only space!
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Python Editor
« Reply #9 on: July 20, 2014, 11:38:52 PM »
Thanks for the clues guys.
Learning curve for TC is leveling off.