4,305 Posted Topics
Re: @LukeKaim, thanks for the corrections to the dictionary. | |
Re: 10 is a superlative, sort of like the movie "10". | |
Just the very basics on how to draw a rotated text using the Python GUI toolkit PySide (public PyQt). Please experiment and embellish. | |
Re: It depends which forum you were hanging out, "nahhhh-roooo" was my favorite. This user could be as scolding as my granny. | |
| |
Re: The pythonic way would be to use a loop. | |
Re: You might also want to check http://python.org/dev/peps/pep-0263/ | |
| |
Re: What kind of image file does the Visual Logic program produce? | |
Re: Here is one way that I use frequently ... """ tk_setup.py Using cx_Freeze with Python33 to package a Tkinter GUI toolkit program to an executable file (.exe in Windows OS). Module cx_Freeze also is available for Unix systems. Put this setup program and your Tkinter program file into the same … | |
Re: Did you install it? http://www.pyzo.org/downloads.html#installation-instructions After installation click on the pyzo icon to start up their nicely made IDE. | |
Re: Take a look at ... https://www.youtube.com/watch?v=ujOTNg17LjI and https://www.youtube.com/watch?v=mTmJfWdZzbo | |
Re: You might want to post that under Hardware & Software Microsoft Windows | |
Re: One of the ways would be to use slicing ... ''' matrix_slice101.py slice a 5x5 matrix out of a 10x10 matrix ''' # matrix 10x10 matrix10x10 = \ [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, … | |
Re: You might want to take a look at: https://docs.python.org/dev/library/concurrent.futures.html | |
Re: Try something like this ... import subprocess # use the full path you have scriptfile = r"C:\PortablePython3.2.5.1\Scripts\sqlmap.py" python3 = r"C:\PortablePython3.2.5.1\Python-Portable.exe" cmd = '-u "url.com" --batch' subprocess.call([python3, scriptfile, cmd]) | |
![]() | Re: Microsoft has bought up games in the past and simply stopped development. "Age of Empires" sticks out in my lame brain. I always though that game had quite a potential. |
Re: If you have a stuffy audience then humor, particularly forced humor, might go over like a lead balloon. Otherwise simply google for the category of jokes and pick some that fit. | |
Re: I am not a programmer, but I have used programming as a tool for many years to solve science problems, cost analysis, processing of large medical data sets, image processing, plotting and graphing and so on. My advice is to get involved in a meaningful project and apply your programming … | |
Re: I agree, Eric can do this. | |
Re: Reading those horribly biased Yahoo news clips whenever I can. ![]() | |
| |
Re: You might want to check module re | |
Re: Finding the lowest, highest, total, and average of the numbers in a list is easy as slate already mentioned. To develop a user friendly way to enter 20 numbers into a list is your challenge. | |
Re: Using Python3 you are dealing with byte strings. So username has to be a byte string and **'\n'** has to be changed to **b'\n'** | |
Re: "Men won't read any email from a woman that's over 200 words long." ... Douglas Coupland | |
Re: Printing i should not give you a string ... mystr = "str is a function in Python and should not be used as a variable name" for i in range(len(mystr)): print(i) Also explore the string functions isalpha(), islower() and isupper(). | |
With the advent of Python33 the module time has received a high resolution timer/counter. Here we use time.perf_counter() in a decorator to conveniently time two test functions. | |
Re: python = 77777 if python: print("You picked a good language") | |
Re: # another way ... # make string input work with Python2 or Python3 try: input = raw_input except: pass Now just use input() in your Python2 or Python3 code. | |
| |
Re: Organize your program this way ... input_data process_data output_results | |
Re: I guess I have to put that on my Christmas list. | |
Re: This thread started out quite interesting. | |
Re: All that jazz! You obviously wanted something else in your life. | |
Re: I live in the Southwest of the USA, but really don't like Southwest food, it's just too spicy for my taste. My mother was Swiss, so I am used to meat and noodle dishes, probably with a French accent. | |
Re: Much more cumbersome, but an option is to use reverse, pop then extend ... mylist = [0,1,2,3,4,5,6,7,8,9] ix = 3 t1 = [] revlist = list(reversed(mylist)) for k in range(ix+1): t1.append(revlist.pop()) # pop element in position ix and discard t1.pop() # reverse again then extend revlist.reverse() revlist.extend(t1) print(revlist) # [4, … | |
Re: Python has an easy syntax, the trick is to get to know and use its many modules. A number of these modules are already written in higher speed C. Concentrate on your algorithms, you can always optimize for speed later. | |
| |
The idea of this thread is to help the beginning wxPython GUI programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! For info on wxPython modules see: http://www.wxpython.org/docs/api/wx-module.html | |
Re: Another option, insert one element at a time. Do it in reverse order if you want to keep the insert position constant ... mylist1 = [1,2,3] mylist2 = ['a','b','c'] for e in reversed(mylist2): # insert each element e at index 2 of mylist1 mylist1.insert(2, e) print(mylist1) # [1, 2, 'a', … | |
Re: I assume all your modules have been properly stressed and tested using Python's unittest module. There was quite a nice article in Dr.Dobb's ... http://www.drdobbs.com/testing/unit-testing-with-python/240165163 | |
Re: Start out with this simple minded Android tutorial: http://zetcode.com/mob/android/ | |
Re: A good way to start ... http://ipython.org/notebook.html | |
Re: You can also just select another radio button. It will deselect the others. | |
Re: Another way ... # round floats x = 355/113.0 print(x) print(round(x, 2)) | |
Re: The class Accumulator is an example of a functor for closure. |
The End.