14,948 Topics

Member Avatar for
Member Avatar for Ene Uran

Is there a way to verify an exit, if you click on the exit symbol on a wxPython frame?

Member Avatar for Ene Uran
0
75
Member Avatar for biganimal

I have a simple program started and need help enhancing it and making it a more realistic database tool giving easy entry and retrieval. import shelve import string UNKNOWN = 0 HOME = 1 WORK = 2 FAX = 3 CELL = 4 class phoneentry: def __init__(self, name = 'Unknown', …

Member Avatar for bumsfeld
0
110
Member Avatar for rockzZ25

Hi All, I have an algorithm on the server. I want the algortihm to perform calculations based upon the data which is stored from a database to nested lists before the algorithm is run. Is there anyway of keeping the program running without any need of retrieving the data from …

Member Avatar for rockzZ25
0
114
Member Avatar for zx9

hi, This is my problem i have programmed a little word unscrambler i have a file wordlist.txt in my python folder and this program works just fine and unscrambles one word at a time but i dont how how to edit it to make it unscramble 10 words at a …

Member Avatar for jrcagle
-1
2K
Member Avatar for lostpenan

I would like to extract the header info from an image file. For example I would like to search for the key "LINES" and return "2240" as string. And should I use open("r") or open("b") since im only interested in the header. Header: [inlinecode] BANDS = 1 BAND_STORAGE_TYPE = BAND_SEQUENTIAL …

Member Avatar for lostpenan
0
2K
Member Avatar for katharnakh

I am not able to connect to remote MySQL server, using MySQLdb package. I have enough permission on remote machine with all rights set to 'Y' and Host field of USER table in mysql database has a value '%', which allows remote login. I tried using Navicat which requires me …

0
64
Member Avatar for abayden

Hi, I am having trouble with wxPython on SUSE Linux Enterprize Server 9. The Computer has several Itanium 2 processors, and the version of Linux is for these processors. Python works just fine. So do other graphical toolkits Tkinter, pygtk, and qt. However when I try to use wxpython it …

Member Avatar for bumsfeld
0
100
Member Avatar for srired

hi, im kindof new to these things.iv just learnt a little python and am looking to learning something about parsing XML from APIs etc. could anyone give me a few pointers. also any advice as to what should i learn from now on would be very much appreciated(could you please …

Member Avatar for bumsfeld
0
88
Member Avatar for a1eio

hi, i'd like to create something that basically grabbes information from websites, however i havn't any experience in urllib (apart from very basic page reading) and the issue is that the page i want to grab data from checks to see if another page is connected to it or perhaps …

Member Avatar for metabo_man
0
340
Member Avatar for jimmypk

[code] # I have a problem in building class Tree (Binary Search) # function DelNode(self, Key) is not exactly # I Need Help, Please building class Tree (Binary Search) # Is there any different definition of class Tree from string import split class Node: def __init__(self): self.Key = None self.pLeft …

Member Avatar for G-Do
0
135
Member Avatar for jamshid

I start Python Programming Language in these days, when i was trying to understand them i come across to these problems so i will be so happy if you help me in : 1) [code] >>> # Integer division returns the floor: ... 7/3 2 >>> 7/-3 -3 [/code] I …

Member Avatar for jamshid
0
90
Member Avatar for Jayzilla

Hi there, My niece often asks me to quiz her on her times tables, so I thought I'd spare myself any further effort and write a program to ask her random multiplication questions. I used Tkinter to create a GUI with a label asking the question, an entry box for …

Member Avatar for bumsfeld
0
125
Member Avatar for bumsfeld

Why is there a tuple and list in Python. They seemed to perform similar things.

Member Avatar for jrcagle
0
170
Member Avatar for msaenz

:cheesy: hi all, i do not know how many people have worked in biopython before but, i am soo close to this answer i can feel it! just need a lil help again... basically this takes a FASTA file from NCBI and makes it into a dictionary which is wonderful …

Member Avatar for vegaseat
0
126
Member Avatar for msaenz

:mrgreen: hi guys/gals, thanks for the bioinformatics help, im working on tons of independant projects, it feels like im in summer school and im not even in it! oh well, that is how it is. Python and me are like new friends so I have been needing on this journey …

Member Avatar for Ene Uran
0
115
Member Avatar for girish_sahani

hi ppl, Consider a list like ['a.1','b.3','b.4','c.2']. Here 'a','b','c' are objects and 1,3,4,2 are their instance ids and they are unique e.g. a.1 and b.1 cannot exist together. From this list i want to generate multiple lists such that each list must have one and only one instance of every …

Member Avatar for vegaseat
0
82
Member Avatar for JohnJohnUSA

:?: I am using Python IDLE 2.4.3 on Windows XP. I use File->New Window to create a new program. In the Save As dialog, it always takes me to the python program directory (where python is installed). Since this is not where I want to save my source file, I …

Member Avatar for bumsfeld
0
379
Member Avatar for JohnJohnUSA

I ran the following program to retrieve entries from the windows registry on Windows XP: [code] import win32api, win32con aReg = win32api.RegConnectRegistry(None, win32con.HKEY_CURRENT_USER) aKey = win32api.RegOpenKeyEx(aReg, r"Software\Microsoft\Internet Explorer\PageSetup") for i in range(100): Name, [URL="http://www.tek-tips.com/viewthread.cfm?qid=1249756&page=1#"]Data[/URL], Type = win32api.RegEnumValue(aKey, i) print "Index=(", i,") Name=[", Name,"] Data=[",Data,"] Type=[",Type,"]" win32api.RegCloseKey(aKey) [/code] Program output: [quote] …

Member Avatar for a1eio
0
165
Member Avatar for Ene Uran

Does Python have a module to display when a file has been last modified? Also, how do you get the file length?

Member Avatar for bumsfeld
0
622
Member Avatar for msaenz

Hi everyone, I am doing a bioinformatics project and I have this code: [code]def three2one(prot): code = {"G" : "6", "A" : "7", "L" : "1", "I" : "4", "R" : "2", "K" : "3", "M" : "5", "C" : "8", "Y" : "9", "T" : "10", "P" : "11", …

Member Avatar for bumsfeld
0
75
Member Avatar for leb

I need help with my python project. I am supposed to draw something "cool" that includes loops, variables, if-statements, modules, etc. Some ideas given are to draw snails, constellations, a face, daffodils, etc. Anyone help please?

Member Avatar for Jayzilla
0
103
Member Avatar for vegaseat

In case you are curious, I just posted a new tutorial "Python and Multimedia, Part 1, The amazing Webbrowser Module" on DaniWeb at: [url]http://www.daniweb.com/tutorials/tutorial47392.html[/url] I would love some input from our Linux and Unix friends to see how much cross platform the module is. Post any comments in this thread!

Member Avatar for vegaseat
0
197
Member Avatar for Blujacker

In code snippet, there is an example with wx.menu(), but there is only one command in menu. I need moore [code] menu = wx.Menu()#create_menu menu2 =wx.Menu()#menu2 menu2.Append(wx.ID_EXIT, u"Add")#menu2 self.Bind(wx.EVT_MENU, self.a, id=wx.ID_EXIT) #menu2 menu.Append(wx.ID_EXIT, u"PÅ™idat")#menu self.Bind(wx.EVT_MENU, self.Pridat, id=wx.ID_EXIT)#menu menuBar.Append(menu2, "File")#menu2 menuBar.Append(menu, "Soubor")#menu self.SetMenuBar(menuBar) [/code] it doesn't work correct If do i …

Member Avatar for vegaseat
0
142
Member Avatar for Blujacker

Is in wxPython event like root.bind('<Double - 1>,function) i need on one wxButton 2 event, normal and double. How to create this?

Member Avatar for vegaseat
0
97
Member Avatar for Blujacker

How to create an image to wxButton??? this is my button [code] self.button3 = wx.Button(id=wxID_FRAME1BUTTON2, label=u'Hraj', name='button3', parent=self, pos=wx.Point(35, 925), size=wx.Size(20, 20), style=0) self.button3.Bind(wx.EVT_BUTTON, self.OnButton3Button, id=wxID_FRAME1BUTTON2) [/code]

Member Avatar for vegaseat
0
105
Member Avatar for pythonguy

How to activate file typ filter in wxPython file browser I am using wxFileDialog() call for file browsing,I want it to filter all unwanted files in display.

Member Avatar for vegaseat
0
249
Member Avatar for shanenin

I was seeing if I could use python to delete a file upon reboot. I am only able to rename it at reboot, I can't figure out the syntax to set the destination to null. Below is what works to rename the file [code] import win32file import win32api win32file.MoveFileEx("test.txt", "test2.txt" …

Member Avatar for vegaseat
0
434
Member Avatar for Ene Uran
Member Avatar for vegaseat
0
185
Member Avatar for vince_2x

Hi guys! sorry if this question has been asked b4. I just wanna know what is the difference between a==b and a is b? Thanks

Member Avatar for bumsfeld
0
151
Member Avatar for Blujacker

Is possible to display animated image?for example [URL="http://tibia.gamigo.de/images/monster/demon.gif"]this?[/URL] thanks:D

Member Avatar for bumsfeld
0
671

The End.