• Member Avatar for Niloofar24
    Niloofar24

    Created problem with kivy label

    I want to exchange line 18 text with line 23 lable text, but here line 18 doesn't work in my code? Any idea?! from kivy.app import App from kivy.uix.boxlayout import …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with kivy label

    I want to exchange line 18 text with line 23 lable text, but here line 18 doesn't work in my code? Any idea?! from kivy.app import App from kivy.uix.boxlayout import …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in need help for database and PDO

    I wanted to create db with sqlite3 which i always use. Can i connect to it with PDO?!
  • Member Avatar for Niloofar24
    Niloofar24

    Created getting the current date

    Hi friends. With `datetime.datetime.now()` or `datetime.datetime.today()` i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching getting the current date

    Hi friends. With `datetime.datetime.now()` or `datetime.datetime.today()` i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian …
  • Member Avatar for Niloofar24
    Niloofar24

    Created need help for database and PDO

    Hello. I want to create a database on my pc localhost and then want to use PDO to connect with that database to creating table and so on... What should …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching need help for database and PDO

    Hello. I want to create a database on my pc localhost and then want to use PDO to connect with that database to creating table and so on... What should …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    I understood, thank you @fonzali.
  • Member Avatar for Niloofar24
    Niloofar24

    Created error with a .py and .kv

    Hello. I have copied these 2 files of code from a website. main.py: from kivy.app import App from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.clock import Clock from …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching error with a .py and .kv

    Hello. I have copied these 2 files of code from a website. main.py: from kivy.app import App from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from kivy.clock import Clock from …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    And with this: hours = hour_string.split(':')[0] print hours I get this: `18 ` But with this: hours = hour_string.split(':') print hours I get this: `['18', '19', '45.495552'] ` So it …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    @vegaseat, i have a question. With this: delta = datetime.datetime(2015, 9, 13, 3, 5) - datetime.datetime.now() print delta I will get this: `200 days, 18:37:08.889568 ` And then with this: …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    hi @fonzali and thank you for explanation. So `.format(differ.seconds)` calculate only 18:53:17.230488 and doesn't attention to the days, correct? But `differ.total_seconds()` calculate days too, right?
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    Thank you @vegaseat. Of course the code you typed calculate seconds, but not counting down, but it's ok, i can do it myself, the code was helpful.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    Well, @fonzali, at the moment i tryed your code, the output was: 2015-02-24 07:21:53.769512 2015 2015-03-21 02:15:11 24 days, 18:53:17.230488 There are 67997 seconds till Persian New Year 2141597.23049 I've …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in want to creat a simple CMS with (PHP and PDO)

    ok, i'll try them too, Thank you @Wolf 2.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in want to creat a simple CMS with (PHP and PDO)

    Yes, i'm familiar with the basic, PHP syntax is very easy. Thank you for explanations @diafol.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in want to creat a simple CMS with (PHP and PDO)

    @diafol; I'm not new to programming in general, i'm a python programmer, but i'm new to PHP. I understood your explanation, hope to be successful with programming the CMS i've …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in want to creat a simple CMS with (PHP and PDO)

    I understood, thank you @AleMonteiro.
  • Member Avatar for Niloofar24
    Niloofar24

    Created want to creat a simple CMS with (PHP and PDO)

    Hello. I'm new to PHP, i've started it yesterday. I want to creat a simple CMS with (PHP and PDO), what should i do? I'm going to start with creating …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching want to creat a simple CMS with (PHP and PDO)

    Hello. I'm new to PHP, i've started it yesterday. I want to creat a simple CMS with (PHP and PDO), what should i do? I'm going to start with creating …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to take numbers out from a list to get number 244

    with this: mylist = [2,4,4] number = int(''.join(mylist)) print number I got this error: number = int(''.join(mylist)) TypeError: sequence item 0: expected string, int found
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to take numbers out from a list to get number 244

    oops sorry i waschecking another code sorry @gribouillis!!
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to take numbers out from a list to get number 244

    Thank you @vegaseat. Could you make more clrear this line for me please? number = int("".join(str(n) for n in mylist)) `int` means return `( )` into integer. `"".join` means add …
  • Member Avatar for Niloofar24
    Niloofar24

    Created How to take numbers out from a list to get number 244

    Hello. I have a list: mylist = [2,4,4] How can i take number 244 out from the list? Something like: number = 244 Here 244 is integer.
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching How to take numbers out from a list to get number 244

    Hello. I have a list: mylist = [2,4,4] How can i take number 244 out from the list? Something like: number = 244 Here 244 is integer.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to limit list indexes

    What do you mean by `list("string")`? How can i do that with `colors = "red, blue, pink"`?
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with function arguments

    @vegaseat you didn't get the error with check() because as i said, there was a `def check_to_answer():` that i changed into `def answer():`, then i got some errors again, so …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in Creating time for new year beginning

    oops! This is really bad that we are not able to edit title or our posts! Why this forum is like that?! I wanted to typ "creating countdown for new …
  • Member Avatar for Niloofar24
    Niloofar24

    Created Creating time for new year beginning

    Hello friends. I want to create a countdown program for the new year that is comming. I know i can use this code for example, for short certain time: from …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching Creating time for new year beginning

    Hello friends. I want to create a countdown program for the new year that is comming. I know i can use this code for example, for short certain time: from …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to limit list indexes

    Yes! Thank you @vegaseat. Your last code was helpful.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to limit list indexes

    @vegaseat can you explaine this part for me please? I just don't understand something... dq.append(item) return list(dq) For example we have this `colors = "red, blue, pink"`, now if we …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with deleting a list indexes with both int and str

    Thank you @vegaseat, was helpful too.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with function arguments

    There was a `def check_to_answer():` that i changed into `def answer():`.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with function arguments

    Here is my code: #!/usr/bin/python2 from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.label import Label numbers = [] class CalculatorApp(App): …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in How to limit list indexes

    Thank you @vegaseat, i learnt something new. But is there any way to limit a list inorder not to take a new index? I don't want the list to delete …
  • Member Avatar for Niloofar24
    Niloofar24

    Created problem with function arguments

    Hi, me again :) Look at this error please: File "./kivycal-1", line 103, in number_two self.check() TypeError: check() takes exactly 2 arguments (1 given) The error is pointing to here: …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with function arguments

    Hi, me again :) Look at this error please: File "./kivycal-1", line 103, in number_two self.check() TypeError: check() takes exactly 2 arguments (1 given) The error is pointing to here: …
  • Member Avatar for Niloofar24
    Niloofar24

    Created How to limit list indexes

    Hello again. How can i limit my list indexes? I want my list to take only 3 indexes for example.
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching How to limit list indexes

    Hello again. How can i limit my list indexes? I want my list to take only 3 indexes for example.
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching I started to learn python today and i need your help

    I started to learn python today by myself using this course: https://www.youtube.com/watch?v=bX3jvD7XFPs&list=PLB2BE3D6CA77BB8F7 Is that a good start? which book for beginners do you recommend ? *the problem with that course …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in I started to learn python today and i need your help

    The best start for python is "Python for Kids.pdf". You can download the book from here: http://it-ebooks.info/book/2226/ I started python with that book, it was a great tutorial with so …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with deleting a list indexes with both int and str

    Yes!! Thank you @Gribouillis.
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in problem with deleting a list indexes with both int and str

    Just currect it: numbers = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2]
  • Member Avatar for Niloofar24
    Niloofar24

    Created problem with deleting a list indexes with both int and str

    Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: def clear(self, event): global numbers for i …
  • Member Avatar for Niloofar24
    Niloofar24

    Began Watching problem with deleting a list indexes with both int and str

    Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: def clear(self, event): global numbers for i …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in taking numbers and operators out from the list to run the operation

    Yes @HiHe i know that. But the problem is that i'm trying to create a simple calculator. Every time i press a number-button, it's number will be appended to a …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in taking numbers and operators out from the list to run the operation

    And let me explain something more. in my calculator (wich is a Tkinter button) when we press a button of a number, it's number will be append into the list, …
  • Member Avatar for Niloofar24
    Niloofar24

    Replied To a Post in taking numbers and operators out from the list to run the operation

    Thank you @Gribouillis. The code you gave was the exact thing i was looking for. Of course i will work more on parser and wisent. And also will try to …

The End.