Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~8K People Reached
Favorite Tags

10 Posted Topics

Member Avatar for mahdi68

Hi mahdi68, You need set the orientation of your linear layout to "horizontal" instead of vertical. i.e : [CODE] <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5px" > <TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="URL:" android:layout_alignBaseline="@+id/entry" android:layout_alignParentLeft="true"/> /> <EditText android:id="@+id/entry" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/label" android:layout_alignParentTop="true" /> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:paddingRight="30px" …

Member Avatar for shibby
0
159
Member Avatar for iwanttolearnc

Hi iwanttolearnc, I would use the MultipleLocator class. So, what you would do is in your code add the following: [CODE] from matplotlib.ticker import MultipleLocator #sets the minor ticks to be at multiples of 1 along the yaxis #change the intervals to whatever suits you minorLocator = MultipleLocator(1) mpl.yaxis.set_minor_locator(minorLocator) [/CODE] …

Member Avatar for shibby
0
942
Member Avatar for felix001

The csv reader takes each row in a csv file and converts it to a list so that each column of the row becomes one item in the list. If you have a blank row in the csv file with no data, the corresponding list is empty. If you then …

Member Avatar for shibby
0
2K
Member Avatar for kulrik

I think the problem here is that you are calculating the formula in the wrong way your calculation is: [code] y = Math.pow(n*Math.E, (k*t)); [/code] what this does is multiply E by n, then raise this product by (k*t). Instead what you want to do to get the correct answer …

Member Avatar for kulrik
0
2K
Member Avatar for southafrica1

Try using pyinstaller, there are some tutorials for that, I find it very simple to use.

Member Avatar for shibby
0
707
Member Avatar for mindis

To use a variable from one class in another class you first need to make it available for other classes to use. To do this put "self." in front of the variable. When you create an instance of the class with the variable in, you will give this instance a …

Member Avatar for Ene Uran
0
226
Member Avatar for ihatehippies

You could try to test whether the file is open by using f.closed which will return False if the file is open and True if the file is closed, for example: [code] f = open(somefile, 'r') f.closed [/code] The above will return False but: [code] f.close() f.closed [/code] This will …

Member Avatar for woooee
0
78
Member Avatar for Hatz2619

This should get you started, I have created a small program which makes three lists, one for names, hours and wages. The while loop works as well. The problem with your program was that I think you weren't defining variables before using them, for example you didn't create a salariesList …

Member Avatar for Hatz2619
0
925
Member Avatar for shibby

Hi, First off I would like to say how much I like python, it really is an amazing programming language. Anyway I am using python and wxpython and have made a program with a text entry field. I have added a tooltip, but the tooltip only shows up once every …

Member Avatar for shibby
0
77
Member Avatar for siddhant3s

I agree with paulthom, I started out using pyGTK but then settled on wxPython as it is very powerful and very easy to create great GUIs. Also you can use PyInstaller to create a standalone .exe file of your python program, it works perfectly with applications that have a GUI …

Member Avatar for sneekula
0
772

The End.