65 Posted Topics

Member Avatar for G_S

Hi, I have a different question today: how do I call the python interpreter AND tell it to open a python program from inside another program UNDER WINDOWS? My program is running fine, and it even has a text mode without any graphical interface. Under Linux, you click on the …

Member Avatar for G_S
0
375
Member Avatar for G_S

Hi, I'm trying to make a frontend for the compile module in python. Everything works just right, except when the file has mistakes in the code that lead to a syntax error. It does raise the invalid syntax error in the terminal, but instead of executing the block inside the …

Member Avatar for G_S
0
2K
Member Avatar for G_S

Hi I'm using python 3.1 and Windows. My program writes xml code to a text file, the problem is that windows needs to know that this file's encoding is utf-8. Right now it does write the proper code, but other programs (firefox, for instance) fail to read it because it …

Member Avatar for Gribouillis
0
187
Member Avatar for G_S

Hello, I am making a file comparing program, and I want it to display line numbers permanently, like any normal text editor does. Is it possible to do this with tkinter? thanks

Member Avatar for G_S
0
2K
Member Avatar for G_S

Hi people, the title says it all: The user manual of my program is an HTML document, and I want the OS's default browser to open it directly once the user clics on help. The function that the help menu entry invokes is this: [CODE=python]os.popen("/usr/local/firefox/firefox ./html/index.html")[/CODE] Now this only works …

Member Avatar for G_S
0
4K
Member Avatar for G_S

Hello, I've been looking for this here but haven't been able to find an answer that fits my case: I have a tkinter GUI consisting in a button and a Text (a textbox). You write the whole text in the textbox, then press the button and it uses the get() …

Member Avatar for G_S
0
107
Member Avatar for G_S

The question is simple: I have two scrolled text widgets (I'm using tkinter and python 3.x), and I want to synchronize them, that is I want both scrollbars to move at the same time when the user moves the mouse wheel. Both widgets are suppossed to contain the same text, …

Member Avatar for SoulMazer
0
488
Member Avatar for G_S

Hi, I have a very simple question: first of all, my code: [CODE=python] import os def test(): x = "Linux" y = "Windows" if os.name == "posix": print(x) if os.name == "nt": print(y) else: print("there is a problem") [/CODE] Run that code on Linux (don't know about windows) and it'll …

Member Avatar for G_S
0
146
Member Avatar for G_S

Hi, I have a minor quesion today: can somebody tell me how to change basic style options for buttons using ttk. I'd like my buttons and entry fields to have rounded corners. I know this is possible but documentation on ttk (for python) seems to be inexistent on the Web. …

Member Avatar for G_S
0
9K
Member Avatar for thejinx0r

Well, if you don't mind the looks, tkinter is the built-in graphical toolkit for python, so it is cross platform and the user would have to install anything besides python itself. Regarding the code, this would cause the window (named main in this case) to be always on top: [CODE=python]main.wm_attributes("-topmost", …

Member Avatar for thejinx0r
0
134
Member Avatar for G_S

Hi, I have another question: ¿is there a method that allows me to capitalize the first letter of EVERY WORD in a given string? I know that something like: [CODE=python]a = "hello world" print(a.capitalize())[/CODE] would print "Hello world" but I need it to print Hello World. It's for a program …

Member Avatar for TrustyTony
0
893
Member Avatar for G_S

Hi people! I need your help with a find function for a glossary program that I'm writing for my own use. I'm using python 3.x and have already made a find function, but I don't like how it came out. Let me explain with an example: First, let me show …

0
282
Member Avatar for ~s.o.s~

I'm interested in Romance of the Three Kingdoms and Hakuouki, but these are not show... seems like it's gonna be a horrible season...

Member Avatar for ~s.o.s~
0
246
Member Avatar for G_S

Hi everybody, I'm trying to install python 3 from source in my new Mandriva 2010. I have read a lot of posts in this website, but none of the instructions has worked for me. The code compiles and all, but it doesn't install tkinter. I know that tcl/tk are installed …

Member Avatar for G_S
0
243
Member Avatar for G_S

Hello every body. I've been lurking these forums for quite a long time, but I finally decided to join as I see it's pretty well organized and useful. I'm a language professional curently considering either a career switch or a 'career fusion' (i.e complementing my exiting career with another one). …

0
25

The End.