Python Forum
something is wrong with my code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
something is wrong with my code
#5
(Apr-27-2022, 05:50 AM)ndc85430 Wrote: What is the problem exactly? What is happening? Saying something "doesn't work" isn't helpful. What does "doesn't work" actually mean for this problem? Tell us what happens and what you expect to happen.

my question is this
shoud i use this
conn = sqlite3.connect(get_file_name())
or this
conn = sqlite3.connect(self.get_file_name)
or this
def get_file_name(self):        
    fname = QFileDialog.getOpenFileName()         
    fname2 = fname[0]
   self.fname3 = '"' + fname2 + '"'             
def sqlite_connect(self):            
    conn = sqlite3.connect(self.fname3)
or semething else?
Reply


Messages In This Thread
something is wrong with my code - by 53535 - Apr-27-2022, 04:44 AM
RE: something is wrong with my code - by deanhystad - Apr-27-2022, 05:07 AM
RE: something is wrong with my code - by 53535 - Apr-27-2022, 05:42 AM
RE: something is wrong with my code - by ndc85430 - Apr-27-2022, 05:50 AM
RE: something is wrong with my code - by 53535 - Apr-27-2022, 05:55 AM
RE: something is wrong with my code - by ndc85430 - Apr-27-2022, 06:20 AM
RE: something is wrong with my code - by ibreeden - Apr-27-2022, 07:52 AM
RE: something is wrong with my code - by 53535 - Apr-27-2022, 09:07 AM
RE: something is wrong with my code - by ibreeden - Apr-27-2022, 09:42 AM
RE: something is wrong with my code - by 53535 - Apr-27-2022, 10:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  what is wrong with my code? 53535 11 3,641 Apr-28-2022, 01:52 AM
Last Post: 53535

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020