- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
10 Posted Topics
Re: 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" … | |
Re: 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] … | |
Re: 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 … | |
Re: 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 … | |
Re: Try using pyinstaller, there are some tutorials for that, I find it very simple to use. | |
Re: 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 … | |
Re: 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 … | |
![]() | Re: 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 … ![]() |
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 … | |
Re: 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 … |
The End.