14,945 Topics

Member Avatar for
Member Avatar for vegaseat

sharky_machine Offline Posting Whiz in Training Join Date: Oct 2006 Location: New York City Posts: 253 Rep Power: Re: Starting Python Today, 1:41 pm | Add to sharky_machine's Reputation | Add Infraction | Flag Bad Post | IP | #86 -------------------------------------------------------------------------------- Vegaseat: I have been reviewing this code you had …

Member Avatar for mattyd
0
301
Member Avatar for manukumar05

hi friends, help me in regarding , making a "setup " using py2exe, actually my project contains ( dlls,libs,and icons,sip file) so how can i wirte a steup for the project for example my pj name is : " manukumar " it cotains : m1.py,m2.py,m3.py etc files and it contains:: …

Member Avatar for Ene Uran
0
98
Member Avatar for DarkFlash

hey guys, I'm almost done with my newest project (PythonCMS) pretty much a simple, personal, python-based version of dreamweaver;) anyway, I can build webpages with it upload images, media, updates, anything like that. but what I"m trying to get to work now is something that will resize an image to …

Member Avatar for Ene Uran
0
81
Member Avatar for mattyd

I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to …

Member Avatar for jrcagle
0
77
Member Avatar for Matt Tacular

I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python?

Member Avatar for Matt Tacular
0
80
Member Avatar for nnobakht

hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and …

Member Avatar for nnobakht
0
101
Member Avatar for cambrian

Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me …

Member Avatar for vegaseat
0
1K
Member Avatar for Matt Tacular

When coding in Tkinter, you can make a button, then when the button is pressed, it refers to something that you defined, or whatever its called when you use the def statement. What I'm wondering, is if there is a way to do this in non Tkinter programing. I am …

Member Avatar for Matt Tacular
0
203
Member Avatar for mattyd

Hello: I am trying to use the Python Sleep Function via [I]import time;[/I] I get results but not the results I am looking for. What I am trying to do is rather simple and only for visual effect in a Python GUI: [B]Display GIF --> Sleep (pause) 5-seconds --> Display …

Member Avatar for mattyd
0
395
Member Avatar for mattyd

Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. …

Member Avatar for Ene Uran
0
6K
Member Avatar for Matt Tacular

I am writing a program that has two lists set up, and then the user is prompted for input. I want to tell the program to do one thing if the users answer is found in one list, and do another thing entirely if the variable is in the second …

Member Avatar for Ene Uran
0
83
Member Avatar for danizzil14

Yeah, uhh I've heard about it, but where do i get it and how do i use it? HElp is appreciated

Member Avatar for 7even
0
105
Member Avatar for dunderhead

Hello, I'd like to set a custom style for a textctrl that includes custom tab positions. The script below works on xp and displays custom tab positions for the textctrl, as coded. However, the script fails to set custom tab positions on linux (fedora 5), though it does set custom …

Member Avatar for dunderhead
0
1K
Member Avatar for shappell

What jar file am I supposed to add here. I am not sure what they mean by jar file required by your jdbc driver can someone help me In the “JAR Files” tab, click on “Add…” to add the JAR file required by your JDBC driver. Then go to the …

Member Avatar for Ene Uran
0
83
Member Avatar for sneekula

I have a directory with many subdirectories. Each subdirectory contains a small number of image files (.jpg). I would like to accumulate all these image files in a Tkinter listbox, sort them and be able to select blocks of files and send them to another listbox. Ultimately I would like …

Member Avatar for Ene Uran
0
3K
Member Avatar for hafe4k

Need some help in python. How do i make the user choose wheter or not to pick it up? (i can do picking up an item from a list): [quote]objectsCarried = [] inventory = ['bat'] lengthOfInventory =len(inventory) print 'The room holds:' for item in range(lengthOfInventory): print item, inventory[item] numberChosen = …

0
59
Member Avatar for mattyd

I am a programmer but have just recently ventured into the realm of graphics programming using Python; what I have learned so far is fascinating. It is so thrilling to see a coded design appear on the screen in full color. But, I find, making an image appear is one …

Member Avatar for mattyd
0
131
Member Avatar for shappell

I am trying to convert and sucessfully run my pettycash program in throughthe eclipse IDE in Java. First Ill show where Im at I am lost afterhere then ill show the petty cash program. I am not sure if I am on the right track and dont understand how to …

Member Avatar for vegaseat
0
104
Member Avatar for mattyd

Is it possible to use files such as GIF files as a value in a Python Dict; that is, is it possible to use GIF files in a Dict and access them directly, rendering them to the screen via Tkinter. I have a group of GIF files I plan to …

Member Avatar for vegaseat
0
122
Member Avatar for danizzil14

Ok, so I'm gonna work on a program, and I want to enable a gui for it. I have a few questions though... Question: Are there any out there that wont need a class structure? (I;ve never gotten them, and I'm working on them right now...) Question: How about easily …

Member Avatar for Ene Uran
0
195
Member Avatar for qwester

Hello, I am working on a project that involves modifying a pygame game of space invaders. I have been trying to change the game into a space shooter. I am currently having difficulty right now with changing the levels. If my character does not destroy all the enemies in the …

Member Avatar for qwester
0
43
Member Avatar for dunderhead

Hello, I am having a problem showing a popup menu in my wxpython script on fedora 5 (fc5); this problem does not occur on xp. I am using wxPython-2.6.3.2-1.fc5, unicode version. I need to add an item to a popup menu after the user selects a file using wx.FileDialog, and …

Member Avatar for vegaseat
0
443
Member Avatar for laffer

Hello everyone, I'm new to python, but I do have some c and c++ experience, although not extensive. I was looking through the challenges for new people that is stickied at the top of the forum, and was going to work on the * box challenge. I'm going to have …

Member Avatar for laffer
0
130
Member Avatar for jrcagle

Hi all, We just hit functions, and I assigned my students to write ten short functions to do things like convert Fahr. to Cels., etc. My "brilliant" :rolleyes: plan was to create a test suite and have them import their file and run the tests. Because the filename wasn't absolutely …

Member Avatar for vegaseat
0
109
Member Avatar for sneekula

I have a data file with chemical names (one name per line) and want to load that into a Tkinter GUI listbox and then be able to select it by clicking on the line. Need some help.

Member Avatar for vegaseat
0
2K
Member Avatar for 7even

I have the following sample code: [CODE]]import wx class TestFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, title="tree example", size=(600,30)) self.tree = wx.TreeCtrl(self) root = self.tree.AddRoot("Example") items = [ "test1", "test2", "test3",] self.AddTreeNodes(root, items) self.Bind(wx.EVT_TREE_ITEM_EXPANDED, self.OnItemExpanded, self.tree) self.Bind(wx.EVT_TREE_ITEM_COLLAPSED, self.OnItemCollapsed, self.tree) self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree) self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, self.OnActivated, self.tree) self.tree.Expand(root) def AddTreeNodes(self, parentItem, items): for item …

Member Avatar for vegaseat
0
547
Member Avatar for sneekula

I am experimenting (playing around) with the Python Tkinter Gui, and wondered if there is a way to play a sound like from a .wav or .au file?

Member Avatar for sneekula
0
5K
Member Avatar for MarkWalker84

Hi, So it seems my self-teaching experience isnt going as well as i hoped. Every time i think im starting to understand something new pops up that halts me in my tracks :-) lol Was wondering if someone could just give me a quick pointer in the right direction of …

Member Avatar for vegaseat
0
92
Member Avatar for sliver_752

Hi i am making a simle gui using wxpython and here is the script [code] import wx class bide(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, "just a test", pos=(0, 0), size=wx.DisplaySize()) panel = wx.Panel(self, -1) statusBar = self.CreateStatusBar() toolbar = self.CreateToolBar() #toolbar.AddSimpleTool(wx.NewId(), images.getNewBitmap(),"New", "Long help for 'New'") toolbar.Realize() menuBar = wx.MenuBar() …

Member Avatar for sliver_752
0
102
Member Avatar for sneekula

I know that Pyhon compiles source code to a Byte Code before the interpreter works on it. What does this Byte Code look/behave like?

Member Avatar for vegaseat
0
140

The End.