611 Posted Topics

Member Avatar for mcenley
Member Avatar for radc

If you want CheckBox in staticbox Try this [CODE]import wx class Frame(wx.Frame): def __init__(self,parent): wx.Frame.__init__(self,parent,size=(400,300),title="STATIC CHECK BOX ") self.pan=wx.Panel(self,-1) wx.StaticBox(self.pan, -1, 'BOXES', (5, 5), size=(100, 250)) self.dat() self.Show() def dat(self): for x in range(1,10): wx.CheckBox(self.pan,-1,"%s %d"%("BOX",x),(15,20*x)) a=wx.App() Frame(None) a.MainLoop() [/CODE]

Member Avatar for richieking
0
658
Member Avatar for matthewl

Can you post your code again with your import modules if any. Just in short what you have provided is not enough to help assist you. :)

Member Avatar for richieking
0
165
Member Avatar for LogicallyInsane
Member Avatar for dos_killer

Yep ...! python got what is takes. go here my friend! [URL="http://www.mobilenin.com/pys60/menu.htm"]http://www.mobilenin.com/pys60/menu.htm[/URL] Happy coding ;)

Member Avatar for dos_killer
0
163
Member Avatar for dos_killer

Well i can thing of these modules 1.os 2.threading (there are many flavours in python) Need for 3.socket 4.time 5.Queue And if you want GUI 6. I recommend wxpython Thats my take. btw i know you can do your project with that. I can any way with what i have …

Member Avatar for Schol-R-LEA
0
279
Member Avatar for frankvw

Pay attention to line 23 of tonyjv+ code. That is the solution to why your data was not what you wanted. Goodluck :)

Member Avatar for frankvw
0
103
Member Avatar for novice20
Member Avatar for Simplified
0
174
Member Avatar for rolfhorror

trim always cleans the data. Expecially if its for a password or user data that needs a check. eg[CODE] $user=" Foo" $pass="pass " [/CODE] This data input will fail without trim to clean the unwanted spaces. Mostly they are not seen but alway do trim exp. when data are comming …

Member Avatar for rolfhorror
0
132
Member Avatar for evertron

[QUOTE] homescore = array('i',[]) visitingscore = array('i',[])[/QUOTE] Python uses [B]list keyword or this sign [] [/B] as array. That is pythonic system.

Member Avatar for TrustyTony
0
114
Member Avatar for Dragonbaki

Strange........ Are you hosting yourself?? If not, then talk to your hoster about this issue ok?

Member Avatar for richieking
0
135
Member Avatar for R3ap3R

This is very simple. Extend the Small list with Uppercase letters. A-Z Just a-z And on line 14. take away [CODE]x.lower()[/CODE] Just put[CODE] x[/CODE] And the job is done. I just tried it and it work fine. Good job. :)

Member Avatar for richieking
0
912
Member Avatar for novice20

As [B]list[/B] in python So is [B]array[/B] in c,c++ They are all the same stuff with different names. :)

Member Avatar for richieking
0
266
Member Avatar for dpd069

Slice what? which part???? can you please provide more info and any code you have . :)

Member Avatar for Thisisnotanid
-1
85
Member Avatar for nosehat

This is another version. You take read the zipfile and use the file type you want to create a new zip file. Simple. [CODE]import zipfile if __name__ =="__main__": ext=["py","txt","doc"] nfile=[] #to take new file list ffile=zipfile.ZipFile("/home/richie/r.zip","w") # New zip zfile= zipfile.ZipFile("/home/richie/GUI2Exe.zip","r")# Main zip for xfile in zfile.namelist(): if xfile.split(".")[-1] in …

Member Avatar for nosehat
0
166
Member Avatar for richieking

This is one of the easiest steps to view and convert dcm image useing the [B][COLOR="Red"]snake(python)[/COLOR][/B] There are 3 modules involved. 1. Search for [B]pydicom[/B] and install 2. Search for [B]matplotlib[/B] and install 3. Search for [B]pylab[/B] and install. If you are on ubuntu destro, Installing matplotlib via the repo …

Member Avatar for richieking
0
4K
Member Avatar for deepakgupta2186
Member Avatar for kuchi
Member Avatar for AmerJamil
Member Avatar for WaltP
-2
478
Member Avatar for Brickmack

Nice one [B]woooee[/B] i think using new as a variable is not ok. I know you know that anyway that new is a reserved object. In all, i like your sleakness . Bravo ;)

Member Avatar for richieking
0
271
Member Avatar for flebber

1. on line 4.... You are missing a coma. [CODE]print "Your net wage is", $netpay [/CODE] 2. This is python not php/perl no need for [CODE]$netpay[/CODE] just [CODE]netpay[/CODE] Unless net pay is a template of which i dont think so. :)

Member Avatar for snippsat
0
2K
Member Avatar for mece

You can use wx.Timer to bind to self to do that job. eg. [CODE] import wx class Frame(wx.Frame): """ #Class stuff decl """ def __init__(self,parent): wx.Frame.__init__(self,parent) self.timer=wx.Timer(self) self.count=0 #timer event Always must be bound to self self.Bind(wx.EVT_TIMER,self.evt_timer) self.Bind(wx.EVT_PAINT,self.paint) self.Show() ############### event methods ########### def paint(self,event): self.timer.Start(100)# increase the value for …

Member Avatar for mece
0
2K
Member Avatar for ultimatebuster
Member Avatar for python_user

[QUOTE]Change log 1b8148505b by darcymason on Oct 10, 2008 Diff Started dicom.image module, show_PIL() function which uses PIL to display pixel data. Works for CT and MR and image_defl but needs palette adjustments. The ExplVR_BigEndian image with RGB looks odd, probably not being interpreted correctly. Reorganized Dataset code to keep …

Member Avatar for python_user
0
2K
Member Avatar for nutrion

do this. [CODE]print("\n".join(x for x in dc))[/CODE] The dc is a list. You need to run iter it.

Member Avatar for ckoy
0
296
Member Avatar for MUFC4life

Hi, look on line 21-25 [B][COLOR="Red"]moveFunction[/COLOR][/B] is not a function but a variable. why are you calling [CODE]moveFunction ("bla bla")[/CODE] instead of [CODE]moveFunction ="bla bla"[/CODE] Fix that ok ;)

Member Avatar for TrustyTony
0
292
Member Avatar for kiddo39
Member Avatar for justaguy101

What you need is a language directory with your languages files. So you open the file to read on the fly and use the names to populate where needed in your application. You must have a wx.choice control listing all your languages and as the user make his/her choice , …

Member Avatar for richieking
0
267
Member Avatar for Tcll
Member Avatar for Tcll
0
616
Member Avatar for Mouche
Member Avatar for ChaosKnight11
Member Avatar for richieking
0
164
Member Avatar for newbieha

[QUOTE]# def enqueue(element, queue): """Insert an element into the back of the queue""" newnode = ListNode(element) if empty(queue): queue.up = newnode elif empty(queue): queue.down = newnode elif empty(queue): queue.left = newnode else: queue.right = newnode[/QUOTE] What is the logic here? Very redundant method i see. Besides you do not have …

Member Avatar for richieking
0
252
Member Avatar for bomko

Quick work out. have fun [CODE]from random import * while 1: ime_f = raw_input("Vnesi ime fanta: "); priimek_f = raw_input("Vnesi priimek fanta: "); ime_z = raw_input("Vnesi ime deklice: "); priimek_z = raw_input("Vnesi priimek deklice: "); x = randint(0, 70); if ime_f == "Lojze" and priimek_f == "Slak" and ime_z == …

Member Avatar for seanbp
0
126
Member Avatar for tammy12w
Member Avatar for jjma

Your wish list is very strange however itertool permutation module may help you. Just figure what you are looking for because values entered and results wished are far apart. ;)

Member Avatar for jjma
0
813
Member Avatar for LanierWexford

why not. you can install more than 1 version. Are you on linux ,OSX or windows? if linux, what flavour? ;)

Member Avatar for richieking
0
172
Member Avatar for FAITH2011

simple format print [CODE] stuff=""" Hi folk, I fairly new to Python 2.7 and Python 3 and like to find out how I would get a print to appear in the middle of the output screen without putting in a load of spaces into a print statement. Please keep it …

Member Avatar for FAITH2011
0
167
Member Avatar for chicagoan

Storing images in a php array is the one of the ways. You can also get the from the folder. OR from DB Its all up to your taste . Its very simple. ;)

Member Avatar for branding4you
0
294
Member Avatar for AndersSilva

You will need to time and threading modules very carefuly. They can make your life more easier. ;)

Member Avatar for richieking
0
155
Member Avatar for -ordi-
Member Avatar for TrustyTony
0
140
Member Avatar for mqtgirl
Member Avatar for bob24bob

They work the same, they need the same data type. [CODE]socket.connect((11.11.111.11,"1911")) ##OR socket.bind((11.11.111.11,"1911"))[/CODE] ;)

Member Avatar for bob24bob
0
805
Member Avatar for yellowkaiq

i dont think you wrote this code yourself. Any way what is the problem with your application? ;)

Member Avatar for richieking
-1
419
Member Avatar for HoneyBadger

because seticon only set icon for your frame that is the little icon on the bar far left. What are you trying to achieve? ;)

Member Avatar for richieking
0
2K
Member Avatar for _Nestor

where and on what data you want to use the random, keywords or the txt file?

Member Avatar for pensaf
-1
212
Member Avatar for efregoso
Member Avatar for Nyaki Makgoba
Member Avatar for JJHT7439
Member Avatar for sanjcee

Your code is not bullet proof. its far from ok. And i was thinking why dont you break them apart into methods in a class. It will be more handy and easy to work on it.

Member Avatar for richieking
0
110
Member Avatar for bhysen

The End.