Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: numpy 2-dimentional
Post: numpy 2-dimentional

I am trying to learn numpy and I am trying to print some data as shown below: import numpy as np names = np.array([["Rami", "Taher", "Wahdan"],["First", "Middle", "Last"]]) print(names[[0,0],[1,0]])...
rwahdan Data Science 2 146 Sep-11-2021, 04:54 PM
    Thread: redirect to page
Post: redirect to page

I have a site that has some free items to show and one link in the menu to show the paid items. When I click the link I want to be redirected to a page in a different project. Is it possible? Example...
rwahdan Web Scraping & Web Development 1 210 Aug-15-2021, 03:49 PM
    Thread: running project from github
Post: running project from github

Hi I downloaded a project from GitHub so I can learn more about Django. What are the steps that needs to be done to run the project?
rwahdan Web Scraping & Web Development 2 1,000 Aug-13-2021, 03:43 PM
    Thread: Django - slide duration
Post: RE: Django - slide duration

(Aug-05-2021, 03:09 PM)ndc85430 Wrote: Did you already look at the docs for Bootstrap's carousel (https://getbootstrap.com/docs/4.0/components/carousel/), trying things out? You'll of course need to...
rwahdan Web Scraping & Web Development 4 335 Aug-06-2021, 12:11 AM
    Thread: Django - slide duration
Post: RE: Django - slide duration

(Aug-04-2021, 04:10 PM)ndc85430 Wrote: Django doesn't do anything in the browser - it's a server-side framework. Looking at the CSS classes in your template, I notice that one of the classes on line...
rwahdan Web Scraping & Web Development 4 335 Aug-05-2021, 02:36 PM
    Thread: Django - slide duration
Post: Django - slide duration

Hi, I am starting to learn Django and I have been trying to see where to look in css or js folders to change the duration of slideshow in the site. <section class="welcome-area"> <!-- W...
rwahdan Web Scraping & Web Development 4 335 Aug-04-2021, 03:32 PM
    Thread: remove file from current project
Post: remove file from current project

Hi, I created a file and after done it is opened and saved by user. I then need to delete from my current directory in my project. I tried the remove method but not working! file = str(pdf_file_name...
rwahdan GUI 2 298 Jul-24-2021, 03:02 PM
    Thread: load sqlite3 data into pdf
Post: RE: load sqlite3 data into pdf

I did use the dialog like this: saveFilePath = filedialog.asksaveasfile(mode='w', title="Save the file", defaultextension=".pdf", initialfile=pdf_file_name, filetypes=(...
rwahdan GUI 4 381 Jul-24-2021, 01:36 PM
    Thread: load sqlite3 data into pdf
Post: RE: load sqlite3 data into pdf

(Jul-23-2021, 07:58 PM)Larz60+ Wrote: use pandas. Here's an example: https://newbedev.com/export-pandas-dataf...ing-pythonThank you very much this worked for me. Now, I have created the pdf and it i...
rwahdan GUI 4 381 Jul-24-2021, 12:19 PM
    Thread: load sqlite3 data into pdf
Post: load sqlite3 data into pdf

Hi, I searched for code sample to learn how to put one of my db. table fields into pdf with many pages. Is there any tutorials out there that teaches how to deal with that, I heard about the reportla...
rwahdan GUI 4 381 Jul-23-2021, 06:56 PM
    Thread: comparing 2 lists
Post: comparing 2 lists

Hi, I have problem comparing 2 lists. one list has 10 records and the other have less than 10 so it is between 1 and 9 records. What I am trying to accomplish is to compare the 2 lists and create new...
rwahdan General Coding Help 2 352 Jul-18-2021, 05:37 PM
    Thread: field in db as text
Post: RE: field in db as text

(Jul-15-2021, 02:54 PM)deanhystad Wrote: This is the kind of question you should be answering yourself. The skills learned doing so will make you a better programmer. The first question you should...
rwahdan GUI 6 453 Jul-16-2021, 07:07 AM
    Thread: field in db as text
Post: RE: field in db as text

(Jul-15-2021, 11:40 AM)deanhystad Wrote: Really? You are asking how to get an item from a tuple? No I am getting the value from database and its data type is text. My question is why it is printed ...
rwahdan GUI 6 453 Jul-15-2021, 01:38 PM
    Thread: field in db as text
Post: field in db as text

Hi, I am trying to get a field from db which is a text but when trying to print it it gives me in form of list. how to print the value as string instead! conn = sqlite3.connect('emsat_data.d...
rwahdan GUI 6 453 Jul-15-2021, 08:25 AM
    Thread: previous and next buttons
Post: previous and next buttons

Hi I have a db and i got the data and put them in python lists so I can get the records places 0,1,2... for the first record i am able to assign the right data having the index of the first element w...
rwahdan GUI 1 792 Jul-13-2021, 09:39 AM
    Thread: using different frame for some widgets
Post: using different frame for some widgets

Hi, I am trying to have some widgets in main frame and others in another frame: available_exams.destroy() exam_started = Toplevel(screen) #DONT ALLOW CLOSING THE WINDOWS exam_started....
rwahdan GUI 1 768 Jul-13-2021, 07:51 AM
    Thread: image inside button
Post: RE: image inside button

(Jul-12-2021, 06:26 PM)deanhystad Wrote: Does that fix the problem? Yes it sure did thanks for pointing out global variables.
rwahdan GUI 4 441 Jul-12-2021, 07:05 PM
    Thread: image inside button
Post: image inside button

I am trying to add image inside a button. It is empty, I have the image in the exact location and no errors. photo1 = PhotoImage(file="imgs/math/1.png") photoimage1 = photo1.subsample(3, 3) ...
rwahdan GUI 4 441 Jul-12-2021, 05:54 PM
    Thread: sqlite3 update statement
Post: sqlite3 update statement

Hi, I am trying to update 2 columns, one of which will take its value from a label "thetoken". def assign_exam(): global thefullname global assign_exams global names global namechoos...
rwahdan GUI 1 275 Jul-12-2021, 05:42 AM
    Thread: sqlite3 insert date
Post: RE: sqlite3 insert date

I replaced it with: date.today()it is working now.
rwahdan GUI 1 227 Jul-07-2021, 08:58 PM

User Panel Messages

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