Python Forum
Can't write "\" backlash in IDLE
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't write "\" backlash in IDLE
#1
I can't make it work, i press normally AlyGr+the key on top of Tab and it works but not in IDLE and i tried every combination whatsoever...what it appears instead is the yen character.
Reply
#2
well, there is little we can help. It depends on your keyboard layout and you need to find where the backslash is located... :-)
Reply
#3
(Aug-10-2017, 06:52 AM)buran Wrote: well, there is little we can help. It depends on your keyboard layout and you need to find where the backslash is located... :-)

Not my keyboard, did you look at the title? no?,well here:

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

See that?, NOT MY KEYBOARD, it only happens on Python IDLE and i decided to ask in the forums because this is not an isolated case, while looking for an anwer i found MANY people with this problem, there is no solution whatsoever, so i decided it was about time to ask here.
Reply
#4
OK, what OS, Python version?
Reply
#5
That's some bug you got there.
if on windows try to enter it with ASCII code of '\' which is 92.

press ALT then press 9 and 2, release ALT.
NOTE: type 92 via num pad.
Reply
#6
IDLE is a crap IDE, and shouldn't come with python. But we cant control what comes packaged with python on windows. I would suggest to get a different IDE before you find out more problems with IDLE.

based on some google searching i found something you should at least try
idle->preferences->keys
Under Action-Keys replace:

expand-word <Option-Key-Slash>
with something you like for instance:

expand-word <Control-Option-Key-Slash>
This should fix it.
Recommended Tutorials:
Reply
#7
I have been messing up with my keyboard and honestly im fucking tired of this shit, at one point i compeltely messed up my keyboard layout to the point that everything was wrong, i fortunately could go back and kind of "fix" it and look:

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

AND STILL DOESN'T WORK IN IDLE.

So im fucking done with that shit, can someone recommend me another IDE for python that actually uses my fucking keyboard setup and not whatever the fuck he wants to?

Sorry for the many fucks, nothing directed towards you guys.
Reply
#8
There are a lot of IDE's

If you are looking for large IDE's i would say a lot of users use PyCharm, some others are:
Sublime
Eclipse (PyDev)
Komodo

If you just want light-weight IDE's you can just
Notepad++
Geany
Vim

All of which if have a paid version have free version that is just as good.
Recommended Tutorials:
Reply
#9
Thonny is the IDE that should be shipped with Python.
It's IDLE(Python) done right and written in Tkinter.

Spyder is okay.
PyCharm as mention there is a free Community Edition.
All over is geared towards Python,so they easy to start with.

Many use Vim, Atom, Sublime, VS code(the most popular new Editor that many switch to these days).
These are not geared towards only at Python,but can be used with many languages.
There are usually some more setup with these to get a environment as wanted.
Reply
#10
I downloaded Visual Studio... and it had the same problem!!!

BUT

I could fix it in Visual Studio, it actually has an option called International Settings and it lets you use whatever your system is using, what IDLE and Visual Studio were doing was to use whatever they wanted and ignore my system completely.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to write a code to get this kind of output in IDLE kavindu 5 3,590 Oct-28-2018, 07:46 PM
Last Post: wavic
  IDLE not importing pygame (ok outside of IDLE) miner_tom 1 3,338 Sep-14-2018, 07:54 PM
Last Post: Larz60+
  Python IDLE 3.6.2 on WIn7 vs Pyhton 3 IDLE raspberry djdan_23 5 5,735 Sep-07-2017, 12:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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