My Cool pix 500, button off blinks green but the camera does not turn on

Battery exchange network

The Stack Exchange network includes 175 question and answer communities, including Stack Overflow, the largest and most reliable online community for developers who want to learn, share knowledge and develop their careers.

Visit Stack Exchange

javascript – Hide a div when selecting a button

I have a div with a selection, an entry and a button
In my function I have to show the input and the button I have to select something from the selection and this shows me if it does it correctly

But i'm trying to hide all of this div, when i select a button it will display a modal and what i want is that if the div is seen the entry and button will hide everything that and will only show me my modal

This is the function that shows me the entry and text and my search button

mostrarBuscar = function ()
 {                                                                                          
      var select = $("#selectDiv").val();
      if (select === "alumno" || select === "maestro" || select === "director")
          {
                 $("#inputBuscar").attr("style", "display: show"); 
          } else {
                      $("#inputBuscar").attr("style", "display: none");
                  }
};

And the modal I want to show is

ocultarSelectBuscar = function()
 {
      var reasingar = $("#reasignarCard").val();
      var select = $("#busquedaSelect").val();

      if(reasingar === 0 && select !== "0")
        {
            $("#rowSelectBuscar").attr("style","display: show");
        } else {
                    $("#rowSelectBuscar").attr("style","display: none");
                 }
};

python – how to print the widget in the tk window by clicking on the button?

I wrote an algorithm for a calendar style that I found online. I would like it to print the algorithm in the tk window on the click of the button after entering a year. unfortunately, this will not be the case. I tested the algorithm alone using this code as an algorithm test tool.

def make_calendar(year, start_day):
    tup =   (('Early Winter', range(1, 37, + 1)),
            ('Mid Winter 37,', range(37, 1, + 1)),
            ('Late Winter   ', range(38, 71, + 1)),
            ('Leap Day      ', range(70, 69 + 1)),#tup(3) is this line i need to delete if not leap year
            ('Late Winter   ', range(71, 74, + 1)),   
            ('Early Spring  ', range(1, 37, + 1)),
            ('Mid Spring 37,', range(37, 1, +1)),
            ('Late Spring   ', range(38, 74, + 1)),
            ('Early Summer  ', range(1, 37, + 1)),
            ('Mid Summer 37,', range(37, 1, +1)),
            ('Late Summer   ', range(38, 74, + 1)),
            ('Early Autumn  ', range(1, 37, + 1)),
            ('Mid Autumn 37,', range(37, 1, +1)),
            ('Late Autumn   ', range(38, 74, + 1)),
            ('Early Fall    ', range(1, 37, + 1)),
            ('Mid Fall 37,  ', range(37, 1, +1)),
            ('Late Fall     ', range(38, 74, + 1)));
    week = ('Mer', 'Ven', 'Ear', 'Mar', 'Jup', 'Sat', 'Ura', 'Nep', 'Plu')
    start_pos = week.index(start_day)
    def is_leap(year): 
        if (not year%4 and year%100 or not year%400): # algorithm to determine leap year
            return True
    if not is_leap(year):
        del tup(3)
    for month, days in tup: 
    # Print month title
        print('{0} {1}'.format(month, year).center(20, ' '))
        # Print Day headings
        print(''.join(('{0:<3}'.format(w) for w in week)))
        # Add spacing for non-zero starting position
        print('{0:<3}'.format('')*start_pos, end='')

        for day in days:
            # Print day
            print('{0!s:<3}'.format(day), end='')
            start_pos += 1
            if start_pos == 9:
                # If start_pos == 9 (Sunday) start new line
                print()
                start_pos = 0 # Reset counter
        print('n')
start_day=(input('Enter start day of the year Mer,Ven,Ear,Mar,Jup,Sat,Ura,Nep,Plu'))
year=int(input('Enter Year'))       
make_calendar(year, start_day)

here i have designed a tkinter window on which the algorithm is supposed to print, but it will not print in the tk window and i am not getting any error message.
So basically the algorithm will work and print in the terminal but when it is coded to work in a tkinter window it does not return anything. the widget i created is useless if the algorithm does not print on it. I have tested the algorithm and it works. I tested the tkinter buttons and they don't seem to print. I do not know how to solve this problem.

import tkinter as tk

    #varContent = inputentry.get() # get what's written in the inputentry entry widget
    #outputtext.delete('0', 'end-1c') # clear the outputtext text widget
    #outputtext.insert(varContent)  # print content
    #these functions may be relevant to the solution I cannot figure out their implementation in this code.

HEIGHT = 700
WIDTH = 800


root = tk.Tk() #APPLICATION IS BETWEEN THIS LINE DOWN
canvas = tk.Canvas(root, height=HEIGHT, width=WIDTH)
canvas.pack()

frame = tk.Frame(root, bg='#80c1ff', bd='5')
frame.place(relx=0.5, rely=0.1, relwidth=0.75, relheight=0.1, anchor='n')

button = tk.Button(frame, text="Display Calendar", command=lambda: make_calendar(entry.get()))
button.grid(row=0, column=2)#this makes the buton apear in a grid

label = tk.Label(frame, text="Enter the year")
label.grid(row=0, column=0)#this makes the label apear in a grid 

entry = tk.Entry(frame)
entry.grid(row=0, column=1)#this makes the entry apear in a grid

lower_frame = tk.Frame(root, bg='#80c1ff', bd='5')
lower_frame.place(relx=0.5, rely=0.25, relwidth=0.75, relheight=0.6, anchor='n')

lower_label = tk.Text(lower_frame)
lower_label.place(relwidth=1, relheight=1)#this makes the label apear in a grid 


year=entry.get

def make_calendar(year):
    tup =   (('Early Winter', range(1, 37, + 1)),
            ('Mid Winter 37,', range(37, 1, + 1)),
            ('Late Winter   ', range(38, 71, + 1)),
            ('Leap Day      ', range(70, 69 + 1)),#tup(3) is this line i need to delete if not leap year
            ('Late Winter   ', range(71, 74, + 1)),   
            ('Early Spring  ', range(1, 37, + 1)),
            ('Mid Spring 37,', range(37, 1, +1)),
            ('Late Spring   ', range(38, 74, + 1)),
            ('Early Summer  ', range(1, 37, + 1)),
            ('Mid Summer 37,', range(37, 1, +1)),
            ('Late Summer   ', range(38, 74, + 1)),
            ('Early Autumn  ', range(1, 37, + 1)),
            ('Mid Autumn 37,', range(37, 1, +1)),
            ('Late Autumn   ', range(38, 74, + 1)),
            ('Early Fall    ', range(1, 37, + 1)),
            ('Mid Fall 37,  ', range(37, 1, +1)),
            ('Late Fall     ', range(38, 74, + 1)));
    week = ('Mer  ', 'Ven  ', 'Ear  ', 'Mar  ', 'Jup  ', 'Sat  ', 'Ura  ', 'Nep  ', 'Plu  ')
    start_pos = week.index('Mer  ')
    def is_leap(year): 
            if (not year%4 and year%100 or not year%400): # algorithm to determine leap year
                    return True
    if not is_leap(year):
            del tup(3)
    for month, days in tup: 
        # Print month title
        print('{0} {1}'.format(month, year).center(20, ' '))
                    # Print Day headings
        print(''.join(('{0:<3}'.format(w) for w in week)))
                    # Add spacing for non-zero starting position
        print('{0:<3}'.format('')*start_pos, end='')

        for day in days:
                                # Print day
            print('{0!s:<6}'.format(day), end='')
            start_pos += 1
            if start_pos == 9:
                                        # If start_pos == 9 (Sunday) start new line
                print()
                start_pos = 0 # Reset counter
def make_calendar(year):
    button2 = tk.Button(frame, text="Print Calendar", function=print('n'))
    button2.grid(row=0, column=5)#this makes the buton apear in a grid
start_day=('Mer  ')
make_calendar(year)
root.mainloop()#APPLICATION IS BETWEEN THIS LINE^

stack overflow doesn't allow me to post right now and that seems to be the second most relevant place to ask.

web design – Which micro interaction to use when hovering over a button?

ūüĎč

We try to learn / understand UX from the first principles and create the most intuitive user interface.
We are creating buttons in an application and want to know what is the ideal micro-interaction when you hover over the button.

We have seen some tutorials decrease the opacity of the buttons when the cursor is over the button, but we think it can be counter intuitive for the user because it is "graying"the button which could mean that the action is unavailable.

Here are the app buttons we are currently building:

buttons-opacity-reduced-hover

Does it make sense to reduce the opacity of the hover button?
What would be a more appropriate UX / mic interaction for a button?

Thank you!

Missing logout button

I am a social media manager for some Twitter accounts, one of them I cannot log out because the button under the view button is gone! Can anyone help me with that, I have sent support tickets but no response from Twitter.
I need to be able to log out and log in to other client accounts.
Thank you

magento2 – How can I check which button is triggered to open Modal

I have a modal which can be opened by two buttons modal_button_a and modal_button_b how can i check which button is clicked to open the modal using jquery


    
        
            actionCancel
            
                
                    
                        Cancel
                        action-secondary
                        
                            actionCancel
                        
                    
                    
                        Clear
                        action-secondary
                        
                            
                                ${ $.name }.testField
                                clear
                            
                        
                    
                    
                        Done
                        action-primary
                        
                            actionDone
                        
                    
                
            
        
    
    
text

javascript – After sending the code returns an alert if the values ‚Äč‚Äčentered are set to zero, by pressing the button the page is locked

-I just started learning JavaScript, so I'm a layman on the subject & # 39; – & # 39;
when the values ‚Äč‚Äčof the entries are set to zero, the good thing was to display an alert and a change in the div, but the page freezes and I can no longer put numbers or click on the button.

function tabuada(){
let ini=document.getElementById('txt1')
let fim=document.getElementById('txt2')
let passo=document.getElementById('txt3')
let res=document.getElementById('res')

if (ini.value.lenght== 0 || fim.value.lenght== 0 || passo.value.lenght== 0){
    window.alert('(ERRO), dados faltando...')
    res.innerHTML='Impossível de contar...'
}
else{
    res.innerHTML='Contando:'
    let i=Number(ini.value)
    let f=Number(fim.value)
    let p=Number(passo.value)
if(i=f; c-=p){
        res.innerHTML+=`${c}u{1F449}`
    }
        res.innerHTML+=`u{1F3C1}`
}
}

}

Sharepoint 2013 – How to add an Expand / Collapse button for 2 levels of grouping

I am not a coder. I have a FAQ page which is a list view with Newsletter style. There are 2 levels of grouping used: 1. Category 2. Question.

I'm looking to add a toggle button or 2 buttons to Expand All and Collapse All.
I tried to use some codes from the net, but it looks like they only work with 1 grouping layer or that they don't expand or collapse a partially open list.

If anyone has a solution for this, help us!

Mistletoe Design – Using Select All With Button Check Boxes

I like the improved usability that the check boxes of the buttons provide – nice big click targets, plus we can add a little colored ribbon which is used elsewhere in our app to communicate a flag of state.

What is tricky is that we want to provide a Select All option which is enabled by default.

Check the All box, with several status buttons checked below

I was also thinking of giving the buttons some sort of subtle highlight color to indicate that they are selected.

My question is this: if the user checks a button in the collection below, should it become the only unchecked button or the only button selected? Clicking on it should uncheck All states, but should it then uncheck all other status buttons (Or is this template totally ridiculous and I should just stick with checkboxes?)

jquery – Table with a send button identical to each line: the first send button does not work (several identifiers identical?)

I have a table that shows the product files. A file can have a note added. If a note has been added, it is displayed on one line. Otherwise, the text box field with the Submit button is displayed instead.

Little story, everything works, except for the first row without note. After typing a note and clicking the Submit button, nothing happens.

HTML:



Possible tips:

  1. When I open the table (it's a pop-up window), the console displays several (DOM) Found X elements with non-unique id mistakes
  2. Checking the elements in the development tools I noticed that the first line does not include the form part. Perhaps linked to the problem of several identical identifiers. Example:
                                                                
   
   
   


VS