50 Discussion / Question Topics

Remove Filter
Member Avatar for Kruptein

Hey I've released the first alpha of a project of me called Minimal-D It's meant to combine at least 3-development aspects: -text-editing -file browsing -ftp uploading/downloading (-sql) I combine these three in a simple,lightweight and small program and I want to know what you think about it... You can see …

0
74
Member Avatar for Kruptein

I'm fetching a list with all files/folders on a ftp-server, I want to put a [F] before a folder, and leave files like they are, but I can't find a way to check if it's a file or a dir... I already tried: [code=python]from ftplib import FTP import os ftp …

Member Avatar for Sunjay03
0
7K
Member Avatar for Kruptein

Hey, I've been not so active for the past months, but that's because I was working on a litle project called Deditor. It's a text-editor for linux. The thing that makes it special is that it is made for python and thus has some python-specific features like, syntax-highlighting, interactive interpreter, …

Member Avatar for redyugi
0
104
Member Avatar for Kruptein

I'm looking for people to test a program, I've just finished the rewrite of a program and I need people to test for bugs etc... It's a program for developers written in python and wxpython-gui-toolkit It's made with the aim on linux, although windows-testers are welcome as well link: [url]http://launchpad.net/d-cm[/url] …

Member Avatar for Kruptein
0
92
Member Avatar for Kruptein

I have this wx.ListCtrl and I want to get the "Variable" name and the "Value" name, but I can only get the "Variable" name, how to get the second? [code=python]def __init__(...): ... self.list_ctrl_1.InsertColumn(0, 'Variable') self.list_ctrl_1.InsertColumn(1, 'Value') self.list_ctrl_1.SetColumnWidth(0, 200) self.list_ctrl_1.SetColumnWidth(1, 200) for item in ls: self.list_ctrl_1.Append((item[0],item[1])) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.dclick) def dclick(self, event): …

0
72
Member Avatar for Kruptein

Well like the title says, everything was alined fine, untill I added the Shell, it's the shell I want to resize, but if I pass wx.Size(100,100) of self.console.SetSize((100,100)), it doesn't work :f What am I doing wrong? [code=python]class DEDITOR(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: DEDITOR.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE …

0
73
Member Avatar for Kruptein

somehow this does not work: [icode]self.list_box_1.SetForegroundColour(5,"red")[/icode] SetForegroundColour is though listed in [url="http://www.wxpython.org/docs/api/wx.ListBox-class.html"]the api reference[/url]

Member Avatar for HiHe
0
168
Member Avatar for Kruptein

Hey, I've made a program called d-cm, it's a web-development tool. I want to know if everything works and/or if it works on windows too. Therefore I'm asking if some people are willing to test it... [url="http://code.google.com/p/d-cm/downloads"]googlecode project link[/url] P.S. I'm posting it here because in the Show off your …

0
81
Member Avatar for Kruptein

Okay my syntax highlighter works very well, I only have on problem, Sometimes GetWords() adds "\n" to operatorless although there isn't pressed an enter I think the problem is within the GetWords() function, but I give all functions to be sure.. Main function is OnKeyUp, colorize prints the text colored …

Member Avatar for Kruptein
0
112
Member Avatar for Kruptein

I'm working on an addon system for one of my projects. I'm able to add a new menu item, but the self.Bind(...) is causing me troubles instead of bind the function to the menu-item, it just calls the function. and doesn't bind at all... :s [code=python]self.ID_OPEN=wx.NewId() wxglade_tmp_menu.Append(self.ID_OPEN, eval(menucontent)[i][0], "", eval("wx.ITEM_"+eval(menucontent)[i][1])) …

Member Avatar for Kruptein
0
106
Member Avatar for Kruptein

I'm working on an add-on system, which is till now going pretty good. no I need to assign an id to a menu item, but I don't know which are all in use (by other addons f.e.) so is there a way to either: -get a random integer that isn't …

Member Avatar for Kruptein
0
147
Member Avatar for Kruptein

The SetValue() and GetValue() are to complicated, but it should work with WriteText()... although this always prints a newline if I press the space button...? [code=python] def OnKeyDown(self, event): insp=self.text_ctrl_1.GetInsertionPoint() words=self.text_ctrl_1.GetValue().split(" ") #get all the words hl=[["in","red"]] #syntax list All words=in should become red prev="" #previous words processed wordcount=0 for …

0
60
Member Avatar for Kruptein

Is there a way to catch the text a user types, then do some function on it and then return it to the screen? input(text) -> function(text) -> output(text) I want to colourize certain words, so I want the function to find those words and then colorize them..

Member Avatar for Kruptein
0
392
Member Avatar for Kruptein

I want to fetch a page from a website, which isn't hard at all. But to view that page you have to be logged in (I do have an account on the site). How can I log me in and then fetch the correct page? I thought something with session_id's …

Member Avatar for TrustyTony
0
78
Member Avatar for Kruptein

I was wondering if it was possible to use pygments with wxPython? I want to use it on the text_ctrl widget. If it is not possible on that widget but is possible on an other please tell me...

Member Avatar for Kruptein
0
197
Member Avatar for Kruptein

I'm learning pygame and followed a tutorial about a pong game. Everything is from the tutorial except the score system, I implemented. It does work, but instead that the score is updated, the new score is printed over the previous score.. Which isn't a nice view. How can I solve …

Member Avatar for IsharaComix
0
284
Member Avatar for Kruptein

I have this id that should be default 15px from the bottom (which works). But if I have content larger, the content box should grow in height, how can I specify this? [code=css]#content { position:absolute; top: 85px; left:15px; right:130px; bottom:15px; background-color:#00CC00; font-family: Arial, Helvetica, Tahoma, sans-serif; }[/code]

Member Avatar for Kruptein
0
70
Member Avatar for Kruptein

I have a code in which the user should pass something through raw_input, this works fine for strings less then one line, but when I copy-paste a longer string, only the first line is passed by raw_input, how can I also past the rest of the string?

Member Avatar for Kruptein
0
2K
Member Avatar for Kruptein

I'm using the rsa module (easy_install rsa), and if I use it from command line: [code=python]import rsa public,private = rsa.gen_pubpriv_keys(3) cipher=rsa.encrypt("test",public) rsa.decrypt("cipher",private)[/code] this will return test again. (like expected) but in my code it gives a zlib error -3 incorrect headers [code=python]def RSA(txt): global crypt if crypt=="en": key=raw_input("Public key:") ciphertext=rsa.encrypt(txt,eval(key)) …

Member Avatar for Kruptein
0
112
Member Avatar for Kruptein

I have found a module pycrypto which has an AES encryption and decryption function, in commandline everything works fine both encryption and decryption, but if I want to implement it in my program, it fails =( [code=python]def aes(txt): global crypt message="".join(txt) #format the message which has to be encrypted/decrypted to …

Member Avatar for jcao219
0
231
Member Avatar for Kruptein

I have created a script to encrypt and decrypt a text message based on the bifid cipher([url=http://en.wikipedia.org/wiki/Bifid_cipher]wiki about bifid[/url]) everything works fine [B]IF[/B] the text message does only contain letters. How can I integrate the ability off spaces etc... the best way? by adding them to my alphabet might solve …

Member Avatar for Kruptein
0
2K
Member Avatar for Kruptein

I recently started with developing D-CM, a tool for web-programmers. It is a GUI that bundles a file manager, mysql, ftp, text-editor in one I wanted to know what the daniweb community thought about this so if there are people willing to test it -goto [url]http://code.google.com/p/d-cm[/url] and download the latest …

0
47
Member Avatar for Kruptein

If I do this code in the command line: [code=python]f = open(fl, 'r') txt = "" for line in f: txt+=line f.close() print txt[/code] I get all the output for the file fl, but if I do: [code=python] def editfl(self, fl): f = open(fl, 'r') txt = "" for line …

Member Avatar for vegaseat
0
238
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Member Avatar for Stefano Mtangoo
0
276
Member Avatar for Kruptein

Again I have problems with my classes :s I want to test if there is still text in the text_ctrl, if so it should give a warning in which you can chose to cancel, save or continue; but somehow the [icode]deditor.st = "continue"[/icode] is not passed :s [code=python]#!/usr/bin/env python # …

Member Avatar for Kruptein
0
123
Member Avatar for Kruptein

I really don't see what is wrong =(. First I download via curl a file, then I want to compare it to a local file there are 15 lines in dwnext.ded and there are 14 lines in extlib.ded I want to store in append those lines that have a string …

Member Avatar for Kruptein
0
176
Member Avatar for Kruptein

Are their people willing to help testing/contributing to a python project? (if this is not a 'legal' subject, feel free to delete it; I wasn't sure)

Member Avatar for Kruptein
0
79
Member Avatar for Kruptein

I have a base template which is called every time a template is loaded with the [icode]{% extend 'base.html' %}[/icode] tag In that base file I have a navigation bar with a link to your inbox I want to show after the link a number with how many unread messages …

Member Avatar for Kruptein
0
90
Member Avatar for Kruptein

I currently have my website running on a host: combell but over a half-year I have to upgrade; caus I think it costs very much (although for a student) I'm thinking of start an own server on my laptop; some problems: [LIST] [*]I guess it's not good to turn of …

Member Avatar for amadensor
0
129
Member Avatar for Kruptein

the code on my localhost and on the server are completely the same (django), but it is not shown correctly; I include two screenshots What could be the cause of the difference? (the left one is the online server; the right one is the localhost)

Member Avatar for hondros
0
325
Member Avatar for Kruptein

First: Yes I'm comparing apples to oranges but in this case it is kind of possible to compare them Context: I'm a php-developer for 3-4 years I think and I really like php, I also use python for 2 years. I recently came in contact with django (python framework) and …

Member Avatar for ShawnCplus
0
61
Member Avatar for Kruptein

I do php coding for some time and want to learn something new. After some researsh I ended up with 2 languages/frameworks but I can't choose between them. I'm a python programmer so python Django might be easier to start with. But I don't know a well-known website which is …

Member Avatar for Kruptein
0
527
Member Avatar for Kruptein

I've seen on a lot of sites that when you scroll down a text, the background image stays the same; If I scroll down the image stays on the place and the piece of text that can't fit on the image height is shown on a white background; how can …

Member Avatar for Kruptein
0
73
Member Avatar for Kruptein

I can access my apache server on my localhost, but not on my external ip I don't know how I can make this possible in my Dlink router (DIR-825) Can someone help me ?

0
59
Member Avatar for Kruptein

I have the following code: but for some reason it just won't work if I touch the i the query self works, cause if I just do .Append(str(i)) without the split strip it returns all the tables.. [code=python] def mysql_table(self): self.list_box_3.Set([]) try: self.cursor.execute("SHOW TABLES;") self.query = self.cursor.fetchall() except: self.log("error") for …

Member Avatar for Kruptein
0
87
Member Avatar for Kruptein

I have 2 frames in my wxpython program, MyFrame and OptionFrame if I start my program it shows MyFrame, and if I end it, the frame disappears and the program stops. If I start my program and choose to show the option frame, it will show it, but if I …

Member Avatar for jlm699
0
103
Member Avatar for Kruptein

(Their is not a thread about wakoopa yet so I thought I could make one) If you don't know Wakoopa is a social website like facebook, but for computer applications. You download a tracker which 'tracks' which apps you use for how long and sends them to the site, you …

0
34
Member Avatar for Kruptein

How can I start a launcher from python? if I do: [icode]os.system("~/localhost")[/icode] it just returns a number (probably a process id or something) if this is not possible, how can I start from python a terminal window and execute a code in that terminal? (without closing the python script) Thanks …

Member Avatar for Kruptein
0
203
Member Avatar for Kruptein

Hi I'm trying to find a way to find the first avogadro cipher whose digital sum exceeds 100, I've come to: [code=python]#!/usr/bin/python def dig_sum(n): lst = list(str(n)) ln = len(lst) sm = 0 while(i < ln): sm += int(lst[i]) return sm def avo(i,j,k,c): k = j j = i + …

Member Avatar for Kruptein
0
316
Member Avatar for Kruptein

I have this table(building_lvl): [icode]lvl | building_id | region_id[/icode] And I want to get the region_id for which building_id=3 has lvl 2 and building_id=2 has lvl 5 [code]SELECT * FROM building_lvl INNER JOIN regions ON regions.region_id = building_lvl.region_id WHERE ((building_lvl.building_id='3') && (building_lvl.lvl > 1)) && ((building_lvl.building_id='2') && (building_lvl.lvl > 4)) …

Member Avatar for Kruptein
0
78
Member Avatar for Kruptein

If I run the following code the textCtrl's aren't updated, they stay empty, but if I do [icode]print self.extra201.GetValue()[/icode] I get the value that is set with the code beneath. [code]self.extra101.SetValue(names[1]) self.extra201.SetValue(names[2]) self.extra111.SetValue(str(money[1])) self.extra211.SetValue(str(money[2]))[/code] Why isn't it update !! :(

Member Avatar for Kruptein
-1
167
Member Avatar for Kruptein

1. Is it possible to draw a border line around a table and/or a cell 2. Is it possible to draw a color to the background of a label. 2bis If not, is there an other element that can have background colors 3 How can I set the default height …

Member Avatar for Kruptein
0
137
Member Avatar for Kruptein

In my browser(opera), my background image takes up the full height off the screen, but on my friends(firefox) there appears a large black banner beneath it (black because that is the bgcolor) I give you the css hopefully you guys can help me. [code=css]body { color:#C00; background-color:#000; background-image:url('../background.jpg'); background-repeat:no-repeat; background-position:top; …

Member Avatar for MidiMagic
0
110
Member Avatar for Kruptein

with the function: list(string) you put every letter from the string in a list, I want to put each 2 letters in a list so If I had the string: ThisIsATestt I want to get a list: ['Th','is','Is','AT','es','tt'] (There will never be a letter alone, so you don't have to …

Member Avatar for jice
0
104
Member Avatar for Kruptein

I need to split a float in 2, but the split function doesnt work with floats... What is an alternative for this? If I have 2.4 I want to get 2 and 4 In math you've got a function fpart and ipart, but I don't know this is possible in …

Member Avatar for jlm699
0
262
Member Avatar for Kruptein

okay I tried to make a reverse of finding the num value of a letter bu it returns in an error :f [quote]Traceback (most recent call last): File "/home/darragh/Bureaublad/t.py", line 15, in <module> numtolet('A') File "/home/darragh/Bureaublad/t.py", line 6, in numtolet letters['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] TypeError: list indices must be integers, not tuple[/quote] [code=python]def …

Member Avatar for bumsfeld
0
205
Member Avatar for Kruptein

Is there a built-in function to give the value of a letter? what I mean is a=1 b=2 c=3 d=4 e=5 f=6 ... something like letval(a) would give me 1

Member Avatar for Kruptein
0
9K
Member Avatar for Kruptein

I got a table that is made up as followed: [icode=table]region_id,...nation_id[/icode] the regions are countries, the nations are names users choose. I want to have a world map showing which nation has which region, Is this possible? I'm not sure how to do this, but maybe something with <map> and …

Member Avatar for diafol
0
80
Member Avatar for Kruptein

Can someone help me with this, if I run ftp, the page is downloaded and showed well, but the progress bar only shows 100% and doesn't progress at all.. [code] def progress_timeout(pbobj): # Calculate the value of the progress bar using the # value range set in the adjustment object …

Member Avatar for Kruptein
-1
157
Member Avatar for Kruptein

What am I doing wrong? [code=bash]for filename in /home/darragh/public_html/test/* do sed -i 's/..\/config/.\/config/g' done;[/code] It just gives me: sed: No input files

Member Avatar for sknake
-1
125

The End.