Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~22.3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for deonis

Hi Guys, I am trying to draw on PlotCanvas using wx.DC module. I have several problems with drawing on WXBufferedPaintDC, for some reason my DC text disappears after windows resizing and it looks that I draw my text in the wrong place. Any help appreciated. Here is my code: import …

Member Avatar for deonis
0
1K
Member Avatar for deonis

Hi everyone, I have a problem to setup a custom lexer using in wx.stc.StyledTextCtrl (wxPython). I have a text file which consit of certain keywords which I would like to highlight. The text file is not related to any of the programing languages and so I cannot use the buildin …

Member Avatar for deonis
0
918
Member Avatar for Gribouillis

Sometimes, you just want to run a system command from python and capture its output. Currently, the standard way to do this is to call the subprocess.Popen with convenient arguments and use the communicate method. After writing such code a few times, I wrote this little Command class to ease …

Member Avatar for deonis
4
3K
Member Avatar for cleve23

How can i highlight the whole line in Styledtextctrl in wxpython????I have been researching on it but i still could not get what i want. I want to highlight a whole line of sentence on the line position that i want. Can anyone help me on this???? Please........... Thanks :D

Member Avatar for deonis
0
89
Member Avatar for adam4u
Member Avatar for Mathhax0r

I'm working on a game in pygame, and I decided I wanted to make it load flash files for the characters in battle so I could animate them in flash. Is there a module that will allow for easy displaying of multiple flash files, and also for skipping to certain …

Member Avatar for deonis
0
89
Member Avatar for deonis

Hello ! I'm wondering is there simple way in python to check for file modifications by external sources similar to what existing in gedit or drpython (text editors). So far I was able to check for file modification but I don't know how to "call" this function(see code bellow). I …

0
52
Member Avatar for deonis

I having a little trouble to figure out how can I replace the specific lines in a text file by the lines from another text file marching certain pattern. !?!? For example: I have two files: file1 and file2 , I want to search lines of the first file for …

Member Avatar for jice
-1
658
Member Avatar for deonis

Hello ! I am trying to make a little program, which would go through the string content, find some keywords inside of it and return their position in the text. Unfortunately my program does not work for the duplicated words like "AFIX" or "CONF" (see example bellow). Is there simple …

Member Avatar for deonis
0
136
Member Avatar for deonis

Hello ! Recently I was doing some text formatting using python and this forum was extremely handy. My problem now is to put any letter in subscript or superscript. Apparently in Unicode there are just a few symbols in superscript but I want to put let say letter "b" in …

Member Avatar for deonis
0
13K
Member Avatar for deonis

Hello ! I'm trying to create the dictionary which would handle Latin characters like (Å), µ and so on. Apparently I'm require some sort of encoding to Unicode. Is there a way to handle this problem? see code bellow [CODE] wordDic = { '_chemical_formula_moiety': 'chemical formula ', '_chemical_formula_weight': 'Fw ', …

Member Avatar for deonis
0
192
Member Avatar for deonis

I am trying to develop a function for my application which would use already opened file (fin) and read certain line from it. Each line in the text starting from given keywords (pos1). Finally this function should return a print of all line containing the keywords pos1. But apparently "linecache" …

Member Avatar for deonis
0
268
Member Avatar for deonis

Hello I'm trying to add highlighting to the specific keywords in the text widget. For instance I would like to highlight : Hello World. where is "hello" - will be coloured in red and "World" coloured green. Any Idea ??? [CODE] from Tkinter import * import os import subprocess import …

Member Avatar for deonis
0
3K