任何人能否帮助我看一看。 我试图启动我的第一个方案拟订项目。 将在下午实施。
我需要一个文本箱(正使用轮椅)。 如果用户将任何案文输入到该文本箱中,那么我想把它作为阿拉伯文本。 我想通过自动改变用户的方式来做到这一点。 在特定案文箱中 cur泥土地时,阿拉伯布局的关键板。
So i found this pywin32 module, which has a function LoadKeyboardLayout() So i am trying to test this in IDLE, to see if I can make it accept arabic text into IDLE, to see if it works. So I enter, into IDLE:
win32api.LoadKeyboardLayout( 00000401 ,1)
之后,回到了第67175425号,相当于海x:4010401 whcih I 我认为是阿拉伯文的当地身份证。 SO! 我这样做了,但在我尝试打字之后,在IDLE窗上,它继续打造正常的官邸。
Can someone please explain my errors and guide me towards a good solution.
UPDATE
Okay, I ve been trying to solve this problem ever since posting the damn question. No luck. Then, I thought, "ok, screw it, instead of testing it quicly in IDLE, I will just try it out, in situ, in my source code for the project." WTF - it worked first time, giving exact behaviour that I wanted. Then I tried it in a different IDE, in the interpreted window, and again, IT WORKED straight away!
So clearly my issue is with IDLE, in its interpreting mode. Can anyone explain why it doesn t work in the IDLE shell???